Announcement

Collapse
No announcement yet.

Disallow spaces and special chars in usernames?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Disallow spaces and special chars in usernames?

    How can I set it to disallow spaces, -, _, and special chars in the username?

  • #2
    You have to use a regular expression. You can set these in the Admin CP under vBulletin Options -> User Registration Options. If you click the inline help icon, there are examples that can be used or you can find a regular expression at www.regexlib.com.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #3
      So would ^[A-Z0-9]+$ be alphanumeric characters only and not allow spaces or underscores?

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X