Username Registration (A-Z, 0-9 Characters Only)
This modification is in the archives.
In Reply to this thread: index.php?t=92308
Only accept usernames with no special characters or spaces. Database query: Open up PhpMyAdmin, goto to your vbulletin database, run following query: Code:
INSERT INTO setting ( varname , grouptitle , value , defaultvalue , optioncode , displayorder , advanced , volatile ) VALUES ( 'az09characters', 'register', '1', '1', 'yesno', '101', '0', '1' ) Code:
Phrase Type: Front-End Error Messages Varname: az09charactersonly Text: Only characters A-Z, 0-9 may be used in usernames, no spaces, no special ascii-type letters. Phrase Type: vBulletin Settings Varname: setting_az09characters_title Text: Disallow Special Characters Phrase type: vBulletin Settings Varname: setting_az09characters_desc Text: Setting this to "yes" prevents users from using special characters or spaces in there user name. File Modifications: Open: [forumroot]/register.php Find: PHP Code:
// check username does not contain semi-colons
PHP Code:
// Only A-Z, 0-9 Characters Only */
register.php Now users can not use special chars or spaces in their username when signing up. To disable the function goto, Admin CP > vBulletin Options > User Registration Options. Find the yes/no option under Disallow Special Characters That's all, Gr3³Tz Untold.... Download No files for download. Supporters / CoAuthors
|