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

XF 1.1 Prohibit registering with space in nick

Discussion in 'XenForo Questions and Support' started by paul1, Oct 17, 2013.

  1. paul1

    paul1 Member

    Hi,

    Is possible prohibit the registration of users that includes space in the nick?

    Example:

    John Doe < I want to block registering of nicks like this
    JohnDoe < Allowed

    Thanks.
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    ^[^\s]+$

    Add that as your user name validation RegEx in your options and it should work (I'd test it).
     
  3. paul1

    paul1 Member

    Didn't work. :(
     
  4. Martok

    Martok Well-Known Member

  5. Brogan

    Brogan XenForo Moderator Staff Member

    The code posted above works.
    I tested it on my local.

    upload_2013-10-17_14-25-46.png
     
    Jeremy likes this.
  6. paul1

    paul1 Member

    Works!

    I had set this RegEx in the wrong place.

    Thank you.
     

Share This Page