Icy Phoenix


Documentation And How To - CUSTOMIZATION - Removing Restrictions On Using Some Special Characters In Username



Zuker [ Thu 05 Apr, 2007 16:21 ]
Post subject: CUSTOMIZATION - Removing Restrictions On Using Some Special Characters In Username
OPEN includes/functions_validate.php

FIND
Code: [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: [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.


Jdaw [ Tue 30 Dec, 2008 01:29 ]
Post subject: 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 ]
Post subject: 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 ]
Post subject: 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


Mighty Gorgon [ Sun 14 Mar, 2010 09:59 ]
Post subject: 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.




Powered by Icy Phoenix