FusionBB
Back to FusionBB Forum | Purchase FusionBB | Features | FusionBB FAQ | Documentation Wiki | License

(edit)




Installation Documentation




Installation: Narrated Tutorials




Administrator-Developer Documentation



General Administration

General Customizations

Troubleshooting


Feature-Specific Topics


FusionBB Calendar

MyPaymentPal

MySQL

Particle Boxes



Users: FusionBB Profile Options




Users: FusionBB-Related FAQ



Users:General Site FAQ



Users: Information & How To's


Narrated Tutorials (.mov format)

Images

Making Posts

Posting & Viewing Messages FAQ

Managing Files & Polls

Searching

Troubleshooting



Recent Changes Printable View Page History Edit Page

(Applies to: all versions of FusionBB)


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->setTemplateVar("REMEMBER_OPTION",$this->createCheckBox("remember_me",1,"",3) . " {$lang_str['R_ME']}");

to:

$ltemplate->setTemplateVar("REMEMBER_OPTION",$this->createCheckBox("remember_me",1,1,3) . " {$lang_str['R_ME']}");

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

$template->setTemplateVar("REMEMBER_OPTION",$html->createCheckBox("remember_me",1,"",3) . " {$lang_str['R_ME']}");

to

$template->setTemplateVar("REMEMBER_OPTION",$html->createCheckBox("remember_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 Jason 'Stix' Buckley and Ian at FusionBB for this information!)


©2003-2007 InteractivePHP, Inc.
Page last modified on July 07, 2007, at 04:00 PM