View Full Version : how to Filter usernames at registration
mdrs2
10-18-2010, 10:51 PM
hi every body ...
i'm admin of a forum and i've a problem in new users registrant.
i'd like to prevent usernames which are ecxact digit. for example : "1294030" or "848392" , but no problem if the numbers are associated with word, for example : "david1232" or "12dani34"
could some one help me plZ ?!
You could put a regular expression in the Username Regular Expression field of the User Registration Options. I think something like [a-zA-Z@\._ ] would require at least one of those characters to be in the user name, and so it couldn't be all numbers. (I haven't thought about this a whole lot so that might not be the ideal regexp to use. For instance, maybe you'd rather use [a-zA-z] to require at least one letter somewhere in the name to disallow things like 123_456.)
mdrs2
10-19-2010, 08:13 PM
tnx
any one more ?
--------------- Added 1287530565 at 1287530565 ---------------
my vBulletin version is 3.8.4
BirdOPrey5
10-20-2010, 12:58 AM
A regex is the solution like kh99 said... this site has hundreds of regular expressions to do specific things you can browse it and find one that will work best for your needs:
http://regexlib.com/
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.