Restrict usernames to alphanumeric and underscore
This modification is in the archives.
In response to
http://www.vbulletin.com/forum/showthread.php?p=772614#post772614 User memobug wanted (and myself too) to have a way to restrict usernames to alphanumeric chars and underscore. To me it has been a headache with a lot of users because their password didn't work, just to find after investigation that their usernames had an space and they were writing it without it. I hope this helps others as it has helped me. Here are the instructions to do it. 1) Go to your Admin Control Panel, Phrases Manager and create a new phrase named "username_invalidchars" in the "Front-end error messages" section. For the text use something like "Username has invalid characters. Only characters allowed are letters, numbers and underscore." 2.- Open /forums/register.php Somewhere around line 187 you will find the following PHP Code:
$errors = array();
PHP Code:
//--------------------------------------------------
That's it, enjoy it. Download No files for download. |
Similar Mods
Restrict usernames to alphanumeric and underscore | vBulletin 3.5 Add-ons |
Mini Mods Restrict usernames to alphanumeric and underscore | vBulletin 3.7 Add-ons |