http://www.icyphoenix.com/viewtopic.php?f=4&t=1524
-----------------------------------
Zuker
Thu 05 Apr, 2007 16:21

CUSTOMIZATION - Removing Restrictions On Using Some Special Characters In Username
-----------------------------------
OPEN [b]includes/functions_validate.php[/b]

FIND
[code]	if ( !preg_match("/^[a-z0-9&-_ ]+$/i", $username) )[/code]

REPLACE WITH
[quote]	if ( !preg_match("/^[a-z0-9&-_ [b]Add here your new permitted charachters[/b]]+$/i", $username) )[/quote]

OPEN [b]language/lang_english/lang_main.php[/b]

FIND
[code]$lang['Forbidden_characters'] = 'Allowed characters for usernames are a-z, 0-9, -, _ and spaces.';[/code]

REPLACE WITH
[quote]$lang['Forbidden_characters'] = 'Allowed characters for usernames are a-z, 0-9, -, _ [b]Add here your new permitted charachters[/b] and spaces.';[/quote]

Remember that you should not allow other chars, because you may be exposed to security issue... do it at your own risk.


-----------------------------------
Jdaw
Tue 30 Dec, 2008 01:29

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


-----------------------------------
Informpro
Tue 30 Dec, 2008 11:53

Re: Removing The Restriction Of Using Some Characters On Nicks
-----------------------------------
too long because you've to replace ' by ' everywhere


-----------------------------------
Ripley
Sat 06 Mar, 2010 23:35

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, -, _ &#1072;-&#1103; and spaces.',
or this ?
 'Forbidden_characters' => 'Allowed characters for usernames are a-z, 0-9, -, _ &#1072;-&#1103;, 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]&#1090;&#1077;&#1089;&#1090; : this username is not available[/quote]


-----------------------------------
Mighty Gorgon
Sun 14 Mar, 2010 09:59

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.


