View Full Version : Disallow spaces in Username on registration?
pianoman993
01-03-2009, 10:56 PM
Is it possible to disallow spaces in the username during registration? If so how?
All help is greatly appreciated!
- Pianoman993
Kirk Y
01-03-2009, 11:05 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=159222" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=159222</a>
pianoman993
01-03-2009, 11:51 PM
I did that but then it would not let anybody register.
It just keeps saying
That username is already in use or does not meet the administrator's standards. If you are ilovemusic and you have forgotten your password, click here.
To everything, spaces or no spaces. Any ideas why?
Kirk Y
01-04-2009, 12:08 AM
Sorry, Dismounted's REGEX must be off.
Give this a try (little rusty, but should work) --
^[a-zA-Z0-9]+$Should allow only upper/lower alphanumeric.
pianoman993
01-04-2009, 04:40 AM
Great thank you! I'll try that out and get back to you :)
Dismounted
01-04-2009, 04:48 AM
You shouldn't actually need the uppercase "A-Z", as vBulletin automatically makes it case-insensitive.
^[a-z0-9]+$
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.