The Arcive of vBulletin Modifications Site. |
|
Username Registration (A-Z, 0-9 Characters Only) Details »»
|
|||||||||||||||||||||||||||
|
Username Registration (A-Z, 0-9 Characters Only)
Developer Last Online: May 2011
In Reply to this thread: https://vborg.vbsupport.ru/showthread.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:
PHP Code:
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.... Supporters / CoAuthors Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
I did something like this that is less intensive...
I wont put the link to highjack your thread but maybe we can do something that is better for both hacks... a new cleaner version? Up to you. |
|
#3
|
|||
|
|||
|
thx,
that way my users can have a subdomain. |
|
#4
|
||||
|
||||
|
This should really be standard with vB.
|
|
#5
|
||||
|
||||
|
I would love to see this hack ported to vB3.5
Thanks. |
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
||||
|
||||
|
I have a question.....
What are the symbols that YOU SHOULD RESTRICT, if you use mod re-write to make profiles be www.site.com/username Because i know that there are some characters that either might effect the LINK itself, can be used to ppossible "hack" the site, etc. |
|
#8
|
||||
|
||||
|
Maybe this is what your looking for? http://forum.modrewrite.com/viewtopic.php?t=571
Update: http://forum.modrewrite.com/viewtopic.php?t=127 |
|
#9
|
||||
|
||||
|
I think those are for subdomains...... mines isnt username.site.com it's site.com/username Perhaps all i should exclude is /?
|
|
#10
|
||||
|
||||
|
I loved this in vb3.0... Does anybody plan to port it? I am going to try, but I haven't used the hook system yet. I think this could be made as a product or plugin, but I'm not really sure.
|
![]() |
|
|