Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post CUSTOMIZATION - Removing Restrictions On Using Some Special Characters In Username 
 
OPEN includes/functions_validate.php

FIND
Code: [Download] [Hide]
  1.     if ( !preg_match("/^[a-z0-9&-_ ]+$/i", $username) ) 


REPLACE WITH
Quote:
    if ( !preg_match("/^[a-z0-9&-_ Add here your new permitted charachters]+$/i", $username) )


OPEN language/lang_english/lang_main.php

FIND
Code: [Download] [Hide]
  1. $lang['Forbidden_characters'] = 'Allowed characters for usernames are a-z, 0-9, -, _ and spaces.'; 


REPLACE WITH
Quote:
$lang['Forbidden_characters'] = 'Allowed characters for usernames are a-z, 0-9, -, _ Add here your new permitted charachters and spaces.';


Remember that you should not allow other chars, because you may be exposed to security issue... do it at your own risk.
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Removing The Restriction Of Using Some Characters On Nicks 
 
I am unable to add a single quote ' to the allowed list of the usernames. I am not sure how much of a security problem this would be but is there a way around this.

Version of Icy Phoenix:      1.2.0.27c      
Version of phpBB:      2.0.23
Version of PHP:     5.2.0-8+etch13     
Version of MySQL:     5.0.32-Debian_7etch6-log
Board started:     2008/10/03 - 09:13     
Avatar directory size:     29.16 KB
Size of the database:     2.80 MB     
Gzip compression:     ON


THANKS
 



 
JdawSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Removing The Restriction Of Using Some Characters On Nicks 
 
too long because you've to replace ' by ' everywhere
 



 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: CUSTOMIZATION - Removing Restrictions On Using Some Special Characters In Username 
 
Is this correct
 'Forbidden_characters' => 'Allowed characters for usernames are a-z, 0-9, -, _ а-я and spaces.',
or this ?
 'Forbidden_characters' => 'Allowed characters for usernames are a-z, 0-9, -, _ а-я, and spaces.',
I tried first one, but nothing work  
I did everything, also with lang russian/ lang main.php but it's not working
Quote:
тест : this username is not available

 



 
RipleySend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: CUSTOMIZATION - Removing Restrictions On Using Some Special Characters In Username 
 
Unfortunately current Icy Phoenix doesn't fully support UTF-8 and special chars.

I'm working hard to the project to enhance and fix this aspect, so you should wait the next version to have a new try with special chars usernames.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events