Hidden "Remember Me" and submit as ticked box.

  • Thread starter Thread starter AdminAdmin is verified member.
  • Start date Start date
Admin

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
Hidden "Remember Me" and Submit as a ticked box.
vBulletin 4.2.1 & above.

A simple template change that will remove the "Remember Me" text and the associated tick box. Upon login the code hides both of functions, but will submit automatically the 'Remember Me' box as ticked. It uses a simple code change and one additional parameter to check the box.

Installation:
Login to your AdminCP -> Styles & Templates -> Style Manager -> Edit Options -> Edit Templates -> header template

Find:
Code:
<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" /> {vb:rawphrase remember_me}</label>

Replace with this code:
Code:
<label for="cb_cookieuser_navbar"><input type="hidden" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" checked="checked"/> <vb:comment>{vb:rawphrase remember_me}</vb:comment></label>

How it works...
All we have done is changed the input type to hidden, added the checked parameter and commented out the Remember Me phrase using vBulletins own comment system.
 

Facebook Comments

Similar threads

Admin
Replies
1
Views
977
hunganh232
H
Admin
Replies
0
Views
474
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
2K
AdminAdmin is verified member.
Admin
Back
Top