Not exactly sure where to post this question, so asking it here.
(Already tried at vB.com -- no replies in 5 days. Trying here and vB.org now.)
Anyway...
Need a little help here.
I can see this in admincp vB options, but it's either too much filtering or not enough:
I want A-Z, 0-9, periods, underscore, spaces and hyphens --- and that's it.Code: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.
Any help on what this would be?
I've had some new users with names like {{JOHN_THE*KING}}|| and that's a ridiculous name.
The forum has been around for years, but only recently has this happened.
And if you know how...
Preferably no "repeat" periods/underscore/hyphen/spaces.
i.e., "--BESTUSEREVER-- ___ -- 123"
Better yet, limit to two total periods, underscores, hyphens, spaces
I don't want any more users trying to use screwball usernames full of ASCII.
Or even overusing what is allowable non-letter/non-number.
Thanks.


LinkBack URL
About LinkBacks





Reply With Quote

