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

Name in wrong format (where to edit phrase)

Discussion in 'XenForo Questions and Support' started by Jaxel, Dec 10, 2010.

  1. Jaxel

    Jaxel Well-Known Member

    I have some obscure rules to my username registration...

    Username Regular Expression Match:
    A username must START with an alpha-numeric character
    A username can only have alpha-numeric, underscore, dash, period, @
    A username must END with an alpha-numeric character
    A username must have between 3 and 15 characters.

    We were using this format in the past due to compatibility with MediaWiki, back when we were still using it. MediaWiki really wasn't designed for user_id; and it's users were stored through usernames... thats why this was done. It has just sort of hung around since then and I haven't seen the need to change it.

    The problem is... if someone tries to register that violates the format they get the following error:
    I would like to give them a more thorough error message. How would I do this?
    Digital Doctor likes this.
  2. Kier

    Kier XenForo Developer Staff Member

    All of that is handled through XenForo_DataWriter_User->_verifyUsername(), though I've not been able to find the text you mentioned at all. The error message I see is

    "Please enter another name. The entered value does not match the required format."

    (phrase: please_enter_another_name_required_format)
  3. Digital Doctor

    Digital Doctor Well-Known Member

    Yes. That was it. Sorry I was paraphrasing from memory. (I usually cut and paste) :)

Share This Page