Register Members List Search Today's Posts Mark Forums Read

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

Hi,

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

wls

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

Thanks,
Gabriel.
Reply With Quote
  #2  
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)

Examples:

^[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.
Reply With Quote
  #3  
Old 19 Mar 2010, 23:43
gabrielt gabrielt is offline
 
Join Date: Apr 2007
Awesome, this was exactly what I was looking for.

Gabriel.
Reply With Quote
Reply



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 01:07.

Layout Options | Width: Wide Color: