Log in

View Full Version : Limit Usernames


|Jordan|
03-12-2007, 01:28 AM
How can i limit usernames in 3.6.5 to only contain characters from A - Z and 0 - 9 and replace spaces with underscores?

Marco van Herwaarden
03-12-2007, 08:07 AM
AdminCP -> vBulletin Options -> User Registration Options -> Username Regular Expression

See admin help for examples.

|Jordan|
03-12-2007, 03:48 PM
I looked through admin help and on the net for examples, but it doesnt work. I'm getting the syntax wrong. Does preg_replace work in that field too?

Marco van Herwaarden
03-12-2007, 05:56 PM
Just click on the Question Mark behind the field.

|Jordan|
03-12-2007, 10:02 PM
I did, it takes me to a page with preg_match, but doesnt say if preg_replace can be used too.

Ah, i see what you mean now. I didnt click the ? graphic, i clicked the text link. It works now though.

Marco van Herwaarden
03-13-2007, 11:32 AM
The "?" is where the admin help is located. ;)