Log in

View Full Version : How to move the "remember me?" checkbox position


InfoAddict
05-28-2010, 10:46 AM
I found the answer once in the past, but for the life of me can't re-find it.

I'd like the move that "remember me?" area to the left of the login area, rather than below it.

Can anyone spare the code?

--------------- Added 1275061949 at 1275061949 ---------------

Managed to work it out myself. It's now on the far right of the very top bar.

Find:
<ul class="nouser">

Directly under it, dump:
<li><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></li>

Remove the other reference to the remember me checkbox by searching for "remember" and deleting it outright.

--------------- Added 1275062532 at 1275062532 ---------------

Actually, that doesn't seem to work. "Remember me" doesn't remember me anymore. :/

Anyone have the answer?

--------------- Added 1275094880 at 1275094880 ---------------

Still no luck here. Any suggestions?

tonmo
01-16-2011, 03:54 PM
has anyone figured this out?

Infopro
04-19-2011, 02:47 PM
This seems to work.

In header template find:

<div>
<input type="text" class="textbox<vb:if condition="!$username"> default-value</vb:if>"

Change it to:

<div id="remember" class="remember">
<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> &nbsp;
<input type="text" class="textbox<vb:if condition="!$username"> default-value</vb:if>"

Down below that find:

<div id="remember" class="remember">
<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>
</div>

Change it to:

<!-- <div id="remember" class="remember">
<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>
</div> -->


In vbulletin-chrome.css find:

.toplinks .remember {
margin: -{vb:math {vb:stylevar padding}/3} 0 0 {vb:math {vb:stylevar padding}*2};
font-size: {vb:math {vb:stylevar font.fontSize}-3}px;
color: {vb:stylevar toplinks_text};
}

Change to:

.toplinks .remember {
margin: -{vb:math {vb:stylevar navbar_padding}/3} 0 0 {vb:math {vb:stylevar navbar_padding}*2};
font-size: {vb:math {vb:stylevar font.fontSize}-3}px;
color: {vb:stylevar toplinks_text};
}

Works fine so far.

SkyStryder
05-18-2011, 06:07 PM
There should be a selection in AdminCp to turn this whole
remember thing on and off. We have a multi server site
so we always need cookies. I had to modify the templates
to set the cookie but turn off the display.

This is an example that removes the display and sets the cookie:

<div id="remember" class="remember">
<input type="checkbox" style="display:none;" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" checked="checked"/></div>

tonmo
08-01-2011, 11:59 PM
I can't figure out why my "save" button is so off. Any ideas on how to get it back in line? I reviewed versions of the "header" template and can't see any difference.