1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New forum member has username with emoji

Discussion in 'General XenForo Discussion and Feedback' started by cmeinck, Jul 18, 2013.

  1. cmeinck

    cmeinck Well-Known Member

    Has anyone seen this? Not even sure how they managed to pull this off.

    Screen Shot 2013-07-18 at 12.01.55 AM.png
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    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):

  3. DRE

    DRE Well-Known Member

    WTF??? Screenshot please of the member card!!
    Claudio likes this.
  4. wcbryant

    wcbryant Active Member

    Not having migrated yet, I have to ask... Is there an ACP option to limit usernames to alphanumeric characters?
  5. Jeremy

    Jeremy XenForo Moderator Staff Member

    Yes, there is. You can also disallow certain usernames or phrases (see screen shot).

    Attached Files:

    HenrikHansen and wcbryant like this.
  6. wcbryant

    wcbryant Active Member

    Perfect, thanks. The following should work there to accomplish that and prevent the Emoji, yes?

    ^[A-Z0-9 ]+$
  7. Jeremy

    Jeremy XenForo Moderator Staff Member

    No. That will reject a decent amount of usernames. You'll want to use:
    ^[a-zA-Z0-9 ]+$

    Your RegEx disallows lower case. ;)

    But yes, such RegEx will prevent Emoji. It also removes the possibility of punctuation.
  8. wcbryant

    wcbryant Active Member

    Glad I checked, that's different from vB. Thanks again.
  9. Jeremy

    Jeremy XenForo Moderator Staff Member

    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.
  10. wcbryant

    wcbryant Active Member

    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.
  11. peterzwijnenberg

    peterzwijnenberg New Member

    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...
  12. Jeremy

    Jeremy XenForo Moderator Staff Member

    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.
    Taxi and wcbryant like this.
  13. tommydamic68

    tommydamic68 Well-Known Member

    @Jeremy Where do I implement this?
  14. Jeremy

    Jeremy XenForo Moderator Staff Member

    User registration options.
  15. Blue

    Blue Well-Known Member

    I've been using this.

    The one you posted looks cleaner, much difference?
  16. Jeremy

    Jeremy XenForo Moderator Staff Member

  17. Blue

    Blue Well-Known Member

    I think I got it here but I really don't remember.
  18. arr0w

    arr0w Member

    Are there any real potential problems with allowing these type of chars or it's just to avoid its tackiness?
  19. Jaxel

    Jaxel Well-Known Member

    This is what I use:
    Must START/END with an alpha-numeric.
    Can contain alpha-numeric, _ - . and space.
  20. tommydamic68

    tommydamic68 Well-Known Member

    So I placed it here ACP > Options > User Registration >

    Screen Shot 2013-11-01 at 5.18.49 AM.png

Share This Page