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

Username length and character requirements?

Discussion in 'Forum Management' started by Moddis, Jan 28, 2014.

  1. Moddis

    Moddis Active Member

    Do you set a max length to the username someone can register with? What is it and why? Also,if you use a regex for username standardization, what is it and is there a reason for it besides the looks?

    With my current site style, 15 characters is causing the username to overflow to another line and my dilemma is whether to slightly redesign and/or limit the username size so that it does not go over.

    Update: After analyzing a forum with a little more then 18k users (and never had a username limit), here are the stats for username length of current users.

    21-25 characters: ~ 30 Users ( About 10 actually posted at least once)
    16-20 characters: ~ 200 Users(About 50 actually posted at least once)
    15 characters: ~800 Users
    11-14 characters: ~6.5k Users
    1-10 characters: ~ 11k Users

    With that in mind, there is no need to allow over the 15 char length (in the case of the forum analysed).
     
    Last edited: Jan 28, 2014
    AndyB likes this.
  2. AndyB

    AndyB Well-Known Member

    These are my settings:

    Min: 3
    Max: 15
    Regular Expression: ^[a-zA-Z0-9]+$

    I suggest leaving it at 15 and adjusting your style. I prefer to have usernames with no special characters.
     
    maszd, RoldanLT and Moddis like this.
  3. RoldanLT

    RoldanLT Well-Known Member

    Mine has:
    Minimum = 5
    Maximum = 25
     
  4. RoldanLT

    RoldanLT Well-Known Member

    This regular expression: ^[a-zA-Z0-9]+$
    Removes special character?
     
  5. AndyB

    AndyB Well-Known Member

    Correct. It will only allow alphanumeric characters.
     
    maszd and RoldanLT like this.
  6. RoldanLT

    RoldanLT Well-Known Member

  7. RoldanLT

    RoldanLT Well-Known Member

    Registration via Facebook/Twitter/Google doesn't undergo on this check?
     
  8. AndyB

    AndyB Well-Known Member

    I don't know. I don't have Registration via Facebook/Twitter/Google enabled.
     
  9. Moddis

    Moddis Active Member

    Just updated the OP with stats that prove this is probably a good standard to go by.

    Good point, will need to test some day.
     
  10. RoldanLT

    RoldanLT Well-Known Member

    Mine changed to:
    Min: 3
    Max: 20
     
  11. RoldanLT

    RoldanLT Well-Known Member

    To allow spaces, underscore and hyphen?
    or this?
     
  12. Moddis

    Moddis Active Member

    This works: ^[a-zA-Z0-9\_\-\ ]+$
     
    RoldanLT likes this.
  13. Bob_R

    Bob_R Active Member

    Where are these username length and requirement in the AdminCP?
     
  14. AndyB

    AndyB Well-Known Member

    Admin CP -> Options -> User Registration
     
    T Money, maszd and Bob_R like this.
  15. ModdingOnline

    ModdingOnline Member

    How do set the limmits to max 15? please help me
     
  16. AndyB

    AndyB Well-Known Member

    Admin CP -> Options -> User Registration

    pic001.jpg
     
    ModdingOnline likes this.

Share This Page