Quote:
Originally Posted by pcwfreak
Is there a way of making it remember a user without the 'Remember me?' checkbox?
Thanks.
|
Im at work at present so I havent had a chance to try this yet.
It may or may not work, and make sure you back up your login_inc.php first.
Find
PHP Code:
// Display login boxes + button
// You can style this with html or CSS as normal if desired.
echo"
<form action=\"".$forumpath."/login.php\" method=post onsubmit=md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)>
<script type=text/javascript src=\"".$forumpath."/clientscript/vbulletin_md5.js\"></script>
User Name:<br>
<input name=vb_login_username type=text id=navbar_username onfocus=if (this.value == '$vbphrase[username]') this.value = ''; size=10 />
<br>Password:<br>
<input name=vb_login_password type=password size=10 />
</br>
<label for=cb_cookieuser_navbar><input name=cookieuser type=checkbox id=cb_cookieuser_navbar value=1 checked=checked />
Remember Me?<br /></label>
<input type=submit title=$vbphrase[enter_username_to_login_or_register] value=\"Log In\" />
<input type=hidden name=s value=$session[sessionhash] />
<input type=hidden name=do value=login />
<input type=hidden name=vb_login_md5password />
<input type=hidden name=vb_login_md5password_utf />
</form>
";
And replace with
PHP Code:
// Display login boxes + button
// You can style this with html or CSS as normal if desired.
echo"
<form action=\"".$forumpath."/login.php\" method=post onsubmit=md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)>
<script type=text/javascript src=\"".$forumpath."/clientscript/vbulletin_md5.js\"></script>
User Name:<br>
<input name=vb_login_username type=text id=navbar_username onfocus=if (this.value == '$vbphrase[username]') this.value = ''; size=10 />
<br>Password:<br>
<input name=vb_login_password type=password size=10 />
</br>
<input type=submit title=$vbphrase[enter_username_to_login_or_register] value=\"Log In\" />
<input type=hidden name=s value=$session[sessionhash] />
<input type=hidden name=do value=login />
<input type=hidden name=cookieuser id=cb_cookieuser_navbar value=1 checked=checked />
<input type=hidden name=vb_login_md5password />
<input type=hidden name=vb_login_md5password_utf />
</form>
";