PDA

View Full Version : How do I prevent all numeric usernames?


bboylen
08-21-2006, 09:09 PM
I need the ability in vBulletin to prevent all numeric usernames.

Is there an option for this or would I need to modify register.php?

Shazz
08-21-2006, 09:12 PM
I would just go to
AdminCP>Vb options>User Registration Options >Illegal User Names(toward the bottom) add all the things you don't want 0 1 2 3 4 5 6 7 8 9
________
green crack (http://trichomes.org/marijuana-strains/green-crack)

bboylen
08-21-2006, 09:13 PM
Well, that would just prevent users from having numbers in their username, which I don't want.

I don't want anyone to sign up with a username that is ALL numeric, such as 93452852 or 8234892.

Shazz
08-21-2006, 09:16 PM
Well, that would just prevent users from having numbers in their username, which I don't want.

I don't want anyone to sign up with a username that is ALL numeric, such as 93452852 or 8234892.
If someone had the name 11111112
and you had censored = 2
It would make them pick a different name, So if you had all the numbers 0-9 They wouldn't be able to.
________
roll blunts (http://howtorollablunt.net/)

bboylen
08-21-2006, 09:24 PM
If someone had the name 11111112
and you had censored = 2
It would make them pick a different name, So if you had all the numbers 0-9 They wouldn't be able to.

Yes, but I'm not trying to prevent numbers ENTIRELY. For example, I want the name Shazz2 to be allowed, but with your example, it wouldn't be.

bboylen
08-23-2006, 06:52 PM
Anyone know?

Mauu
08-24-2006, 06:28 AM
Try setting "Username Regular Expression" to *[a-zA-Z]*

This will require a letter in the alphabet. So:

1234 = bad
1234b = good
b1234 = good
1234^$%$@ = bad

bboylen
08-24-2006, 07:26 PM
Try setting "Username Regular Expression" to *[a-zA-Z]*

This will require a letter in the alphabet. So:

1234 = bad
1234b = good
b1234 = good
1234^$%$@ = bad


Thanks a ton, exactly what I was looking for.