Log in

View Full Version : User names beginning with letter


Mum
01-29-2007, 06:15 AM
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?

Mum
01-31-2007, 12:36 AM
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.

Mum
01-31-2007, 10:01 PM
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 :)

Mum
02-03-2007, 05:20 AM
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 :)