Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 19 Mar 2010, 23:23
gabrielt gabrielt is offline
Join Date: Apr 2007
Mod to limit username character types?


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?

Reply With Quote
Old 19 Mar 2010, 23:36
final kaoss final kaoss is offline
Join Date: Apr 2006
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 for more information on regular expressions.
Reply With Quote
Old 19 Mar 2010, 23:43
gabrielt gabrielt is offline
Join Date: Apr 2007
Awesome, this was exactly what I was looking for.

Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 19:03.

Layout Options | Width: Wide Color: