Discussion in 'General XenForo Discussion and Feedback' started by cmeinck, Jul 18, 2013.
Has anyone seen this? Not even sure how they managed to pull this off.
Emoji are actually characters just like letters are. However, only some have made it from the original Japanese character set to the Unicode character set (looks like the soccer ball is one of them):
WTF??? Screenshot please of the member card!!
Not having migrated yet, I have to ask... Is there an ACP option to limit usernames to alphanumeric characters?
Yes, there is. You can also disallow certain usernames or phrases (see screen shot).
Perfect, thanks. The following should work there to accomplish that and prevent the Emoji, yes?
No. That will reject a decent amount of usernames. You'll want to use:
Your RegEx disallows lower case.
But yes, such RegEx will prevent Emoji. It also removes the possibility of punctuation.
Glad I checked, that's different from vB. Thanks again.
If you are using that RegEx in vBulletin you should only be getting capital letters, numbers, and spaces.
The difference between yours and mine is I allow lower case.
I'm using mine in vB and there are no issues with lowercase registrations, but I appreciate the difference between yours and mine as it speaks to what I need (yours) on XF. Apologies for the soft hijack here, cmeinck.
I don't really bother if emoij is being used in the username... only if it goes out of hand..i will just ban them...
Thanks to @wcbryant for indulging my curiosity and giving me some information about vBulletin that lead me to figuring out that both of our RegEx's will work in XenForo for the same reason his works in vBulletin. Its due to the fact that both vBulletin and XenForo utilize the Caseless flag in the RegEx.
You learn something new every day.
@Jeremy Where do I implement this?
User registration options.
I've been using this.
The one you posted looks cleaner, much difference?
Not a RegEx master, that's @Mike. But a quick search of the Internet returned this for the double ++:
Probably not necessary in this case. Yours seems to enforce two words as a maximum of two words. Although you do use a non capturing group. I'll have to research it more tonight. Where did you get it?
However, mine does as it is stated above.
I think I got it here but I really don't remember.
Are there any real potential problems with allowing these type of chars or it's just to avoid its tackiness?
This is what I use:
Must START/END with an alpha-numeric.
Can contain alpha-numeric, _ - . and space.
So I placed it here ACP > Options > User Registration >
Separate names with a comma.