The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Only allow letters, numbers, and underscore in usernames
I hate it when people sign up with ASCII characters in their usernames. There was a hack for 3.7 that made it so people could only use letters, numbers, and underscores in their usernames.
This would be so convenient to have for 3.5, especially since now that I upgraded, people have started signing up with annoying ASCII names again. I'm sure everybody could use this as well. I have no clue why it's not a default feature by now.. but either way, there are a lot of vb owners who would love to see this based on how popular the last hack was. Thanks to anybody who wants to take this on. It should just be a line or two of code, most likely possible as a plugin... but I don't understand 3.5 enough to know where to do it, or how exactly. ~007 |
#2
|
||||
|
||||
Slightly modified from http://www.vbulletin.com/forum/showthread.php?t=152162
|
#3
|
||||
|
||||
To also allow hyphens and spaces would I put this? [a-zA-Z0-9_- ]
Thanks. Just had an idea. Would it be possible to restrict these characters in realtime using AJAX? So if they type in a character that isn't allowed, it won't even show up in the field? If it's possible that would be pretty cool.. Like how in some fields you can only type so many letters and then it autodeletes any extras as you type. That's how Google Adwords works when you set up your ads.. |
#4
|
||||
|
||||
delete
|
#5
|
||||
|
||||
What would I put in order to only allow one space or underscore per username, and not at the beginning or end? A user signed up recently with multiple ___ in it before having any letters. It looks really stupid like that and I want to stop people from doing it. It would also be nice to stop people from SHOUTING in usernames.
Thanks for any ideas. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|