vBulletin Mods

The Official vBulletin Modifications Site

Mod to limit username character types?
by gabrielt
19 Mar 2010 23:23


A problem we are facing is people creating usernames using non-standard ASCII characters, which make our forums to look unprofessional, IMHO. Fresh example:


How can we block users from using this kind of characters?


final kaoss 19 Mar 2010 23:36

look in the user registration options in your admin cp. You can toggle the settings so they can't use those characters in a username


Username Regular Expression
You may require the username to match a PCRE-type regular expression.

(Do not start or end the expression with an escape character)


^[A-Z]+$ - Characters from A-Z only
^[A-Z ]+$ - Characters from A-Z including space
^[A-Z0-9 ]+$ - Alphanumeric characters including space
^((?!&#\d+;)[\x20-\x7E])+$ - ASCII characters from 32-127

See PHP.net for more information on regular expressions.

gabrielt 19 Mar 2010 23:43

Awesome, this was exactly what I was looking for.


All times are GMT. The time now is 05:04.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.