Quote
The member account could not be created.
User name contains invalid characters.
Return to Members Admin
Return to Admin Index
bad code deleted
bad code deleted
preg_match("/^[-0-9A-Z_@\s]+$/i", $username)
preg_match("/^[-.0-9A-Z_@\s]+$/i", $username)
Quote
preg_match("/^[-0-9A-Z_@\s]+$/i", $username)
Quote
preg_match("/^[-0-9A-Z_@\s]+$/i", $user_name)
Quote
preg_match("/^[-0-9A-Z_@\s~|]+$/i", $username)
Quote
SaltyBob wrote:
Caboose2099,
Just like TehDagda said...
update the following files:
/administration/members.php
/administration/updateuser.php
/includes/update_profile_include.php
/register.php
Where it says:Quote
preg_match("/^[-0-9A-Z_@\s]+$/i", $username)
orQuote
preg_match("/^[-0-9A-Z_@\s]+$/i", $user_name)
Within updateuser.php
Where it says the [-0-9A-Z_@\s] you want to put your special characters in the []'s so for example :Quote
preg_match("/^[-0-9A-Z_@\s~|]+$/i", $username)
There is more information about using the special characters in PHP on this site : http://www.inrialpes.fr/vasy/cadp/man...egexp.html
Note: it may be a bit confusing the first read, but if you read it a couple of times, you may get it...
I had to play with it a bit when i wanted the {} 's to be accepted in user names...
preg_match("/^[-0-9A-Z_@\s[]~|]+$/i", $username)
Quote
* ^ (carat)
* . (period)
* [ (left bracket}
* $ (dollar sign)
* ( (left parenthesis)
* ) (right parenthesis)
* | (pipe)
* * (asterisk)
* + (plus symbol)
* ? (question mark)
* { (left curly bracket, or left brace)
* \ backslash
Category Forum
Official Core Support - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions