phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
two other problem with UTF-8 persian
Goto page Previous  1, 2
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
::  
Author Message
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15414

two other problem with UTF-8 persianPosted: Fri Dec 08, 2006 3:55 pm    Post subject: Re: two other problem with UTF-8 persian

Oh I see, this is because the characters used are already passed through htmlspecialchars(), most likely because they where not posted in your forum's char-set.

Anyway, to sort this out the above fix should now read as follow :

Open :

Code:
Includes/funtions_validate.php


Find:

Code:
function validate_username($username)
{
   global $db, $lang, $userdata;



After add :
Code:

   // www.phpBB-SEO.com BEGIN
   $username = ereg_replace('&#[0-9];', " ", $username);
   $username = rawurlencode(trim($username));
   $username = ereg_replace('%[a-zA-Z0-9]{2}', " ", $username);
   // www.phpBB-SEO.com END



Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
Page 2 of 2 Goto page Previous  1, 2

Navigation Similar Topics

Jump to: