Removing pre-filled username & password in login form

Discussion in 'MyBB Discussions' started by Dan Hutter, May 28, 2009.

  1. Dan Hutter

    Dan Hutter aka Big Dan

    Joined:
    Jul 20, 2006
    Messages:
    1,412
    Likes Received:
    515
    Location:
    New York
    Hi Folks,

    As requested in the vBulletin thread I'm going to show you how to remove the pre-filled user name and password from myBB's header log in form, this is so that people with form fillers, particually Firefox's form filler can login easier.

    MyBB is a bit trickier than vBulletin, I make no guarantees but I tested the edit in Firefox, Safari, and Opera and was able to login just fine.

    Open Templates and Styles > Select Templates > Header Templates > Open the header_welcomeblock_guest template.

    FIND:
    Code:
    lang.username = "{$lang->login_username}";
    REPLACE WITH:
    Code:
    lang.username = "";
    Next FIND

    Code:
    lang.password = "{$lang->login_password}";
    REPLACE WITH:
    Code:
    lang.password = "";
    Now you're all set. :)

    -Dan
     
  2. Chris

    Chris Regular Member

    Joined:
    Dec 27, 2007
    Messages:
    5,422
    Likes Received:
    86
    Thanks, Dan. Thread stuck. :)
     
  3. Tyler

    Tyler The Badministrator

    Joined:
    Dec 23, 2007
    Messages:
    3,079
    Likes Received:
    63
    Location:
    Long Island, NY
    First Name:
    Tyler
    Another great tutorial. Thanks, Dan.
     
  4. Tom

    Tom Regular Member

    Joined:
    May 27, 2009
    Messages:
    153
    Likes Received:
    18
    Location:
    New York
    Dan, thank you SO very much man, it'll come to great use.

    Expertize at its finest.
     
  5. Dan Hutter

    Dan Hutter aka Big Dan

    Joined:
    Jul 20, 2006
    Messages:
    1,412
    Likes Received:
    515
    Location:
    New York
    Thanks, anytime Tom. :)
     

Share This Page