19 Jun 2013 
Support Center » Knowledgebase » Customizing FusionBB » Remember Me Checked By Default
 Remember Me Checked By Default
Article

To have the 'Remember Me' checkbox automatically checked for the users of your messageboards, you can change the following code in the files listed below.

(PLEASE NOTE: As with any time you are making changes to files, you should make a back up copy of the affected files before you make any changes)





You will need to change the code in the /includes/common.php and /login.php files as follows:


1.)In the /includes/common.php file, change the line:


$ltemplate->setTemplat eVar("REMEMBER_OPTION",$t his->createCheckBox("r emember_me",1,"",3) . " {$lang_str['R_ME']}");


to:

$ltemplate->setTemplat eVar("REMEMBER_OPTION",$t his->createCheckBox("r emember_me",1,1,3) . " {$lang_str['R_ME']}");


2.)In the /login.php file, change the line:


$template->setTemplate Var("REMEMBER_OPTION",$ht ml->createCheckBox("re member_me",1,"",3) . " {$lang_str['R_ME']}");


to


$template->setTemplate Var("REMEMBER_OPTION",$ht ml->createCheckBox("re member_me",1,1,3) . " {$lang_str['R_ME']}");


This will cause the 'Remember Me' checkbox in the users pop-up login to be preselected as well as making the appropriate change in the login.php file behind the scenes.





(Thanks to FusionBB members Jason 'Stix' Buckley and Ian for this information!)





Article Details
Article ID: 75
Created On: 10 Nov 2008 7:29 PM

 This answer was helpful  This answer was not helpful

 Back
 Login  
Email Address:
Password:
Remember Me:
 
 Search
 Article Options
Home | Submit a Ticket | Knowledgebase | Downloads
Language:

Help Desk Software by Kayako eSupport v3.30.02