no space in username?

Discussion in 'Customization & add-ons' started by jasondavis, Apr 8, 2005.

  1. jasondavis

    jasondavis New Member

    Joined:
    Aug 1, 2003
    Messages:
    85
    Is it possibble to edit a file to not allow spaces in the usernames on registration? liek if they put "jason davis" it would make it "jasondavis" I have a script that is conflicting when a user makes a space in there username
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    yes, edit file
    amember/signup.php
    and replace line
    if (preg_match('/[^0-9a-zA-Z_ ]+/', $vars['login'])){
    to
    if (preg_match('/[^0-9a-zA-Z_]+/', $vars['login'])){

Share This Page