View Full Version : User names beginning with letter
I have members with user names starting with numbers, or ~ or that sort of thing. I'd like to make it so that it MUST start with a letter when they register. How can i do this?
Bumping this hoping someone can help?
webmazter
01-31-2007, 02:40 AM
you will have to add a preg_match() to validate the username.
I'm sorry i'm a newbie, that means nothing at all to me. Could you explain more?
Adrian Schneider
01-31-2007, 10:18 PM
Go to your AdminCP > User Registration Options, and enter this value for "Username Regular Expression" ^([a-z])(.*)$
Nathan2006
02-01-2007, 06:23 AM
I still use this mod :)
Restrict usernames to alphanumeric and underscore (https://vborg.vbsupport.ru/showthread.php?t=106877)
Plus its a nice plugin :)
Go to your AdminCP > User Registration Options, and enter this value for "Username Regular Expression" ^([a-z])(.*)$Does that just stop anything except letters at the beginning? They can use them elsewhere, just not at the start of the name?
I still use this mod :)
Restrict usernames to alphanumeric and underscore (https://vborg.vbsupport.ru/showthread.php?t=106877)
Plus its a nice plugin :)Thanks Nathan, that doesn't appear to do quite what i want, as i want it to stop anything but letters at just the beginning.
Adrian Schneider
02-05-2007, 03:31 AM
Does that just stop anything except letters at the beginning? They can use them elsewhere, just not at the start of the name?
Yeah - just the first character.
giotmuadong
02-05-2007, 07:47 AM
great tips, thanks :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.