View Full Version : Username in lowercase on registation
giorgino
02-27-2010, 01:04 PM
Is there a way I can set up so that user names must be in first capital letters and rest in lowercase?
For example: Not USERNAME, not username but Username?
Can I use an preg_match formula in vB registration user options?
Thanks.
Lynne
02-27-2010, 01:42 PM
vboption s> user registration option s> username regular expression
giorgino
02-27-2010, 02:16 PM
Thank you Lynne, but I need to know the correct preg_match phrase. I already know where setup the option :)
(sorry for my english)
RustyDogma
02-27-2010, 05:06 PM
I was looking for the exact same thing, I tried a couple, but was still getting things I didn't want, like numbers and special characters in the name.
ChopSuey
02-27-2010, 05:19 PM
<a href="http://www.php.net/manual-lookup.php?function=preg-match" target="_blank">http://www.php.net/manual-lookup.php...ion=preg-match</a>
Check there for Preg Match.
giorgino
02-27-2010, 06:03 PM
http://www.php.net/manual-lookup.php?function=preg-match
Check there for Preg Match.
I haven't see any related istruction for lowercasing ... :(
RustyDogma
03-01-2010, 12:25 PM
The documentation is very confusing to me.
What do I need to get:
Username
First letter always capitalized and no 'special characters' (meaning no ΓΏ, just want y) and no numbers.
RustyDogma
03-04-2010, 03:30 PM
I PMed the original poster, and neither of us have been able to do this correctly. I'm not a programmer, and the information from the PHP site reads like Greek to me. Any help would be greatly appreciated. I've tried Googling for the info as well, but I keep running into very complex stuff, rather than just the right phrase to put in to force the 'Username'
Lynne
03-04-2010, 11:14 PM
Have you thought instead of just using css to make it capitalized - "text-transform:capitalize;" - or all lowercase "text-transform:lowercase;"
RustyDogma
03-06-2010, 12:29 PM
Hmm... is the log-in not case sensitive? Was thinking I had to force it while they registered or they wouldn't be able to log-in. And unfortunately that doesn't resolve the issue of not wanting numbers in the name.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.