Log in

View Full Version : Mini Mods - Remember me box automatically ticked vB 4.0.x INC vb 4.0 PL 1 (GOLD)


Welshy2008
12-29-2009, 10:00 PM
Default Check 'Remember Me'



What does this do?


This small template modification will make the 'Remember Me' checkbox automatically checked.


Instructions:


Admin Control Panel -> Styles & Templates -> Style Manager -> The Style that you Use (mine is Default Style) -> << >> -> header


FIND:

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



REPLACE WITH:

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



ON vB 4.0.1:

FIND:

<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:

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


SAVE




And - Job Done!


Please Click Install if you use this.


Only recommended for private Computers!


** Worth mentioning that if your members do use a public computer (a shared pc; such as in a Internet Cafe or Library etc). They should remember to untick the box; Manually, Also clear the cookies.


Use or Don't use - it's there for you to choose. :)


UPDATES:

** 18/01/2010 - Updated Code for vB 4.0.1 Version

Welshy2008
12-29-2009, 10:50 PM
** Reserved **

Charlie98902
12-29-2009, 11:08 PM
Installed :D

utahraves
12-30-2009, 12:19 AM
I always recommend remember me for users that complain about being logged out after so many minutes while typing a thread... I even had the timeout set high but I've never had a problem when they tick the box... this should help them. :D

blake247
12-30-2009, 03:55 AM
Installed.

Dr.osamA
12-30-2009, 06:03 AM
Installed

thanxx man
________
Vl1500/t (http://www.cyclechaos.com/wiki/Suzuki_VL1500/T)

Welshy2008
12-30-2009, 10:12 AM
I always recommend remember me for users that complain about being logged out after so many minutes while typing a thread... I even had the timeout set high but I've never had a problem when they tick the box... this should help them. :D


It certainly WILL. :D

voglermc
12-30-2009, 04:36 PM
I used this and made the box hidden permanently

Welshy2008
12-30-2009, 04:37 PM
I used this and made the box hidden permanently


Interesting. :) Feel free to share how you did it - If you wish to. :D

voglermc
12-30-2009, 04:46 PM
I added style="display:none;" and deleted the remember me code


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

g00gl3r
12-31-2009, 12:56 PM
Coooool.

Installed. :)

Is there a version of this for 3.8? I have a few 3.8's that this would be useful on.

Welshy2008
12-31-2009, 01:09 PM
Coooool.

Installed. :)

Is there a version of this for 3.8? I have a few 3.8's that this would be useful on.



I am using a version on vB 3.8.x too. I will do it Tomorrow for you. Sorry, I won't have time Today. :(

Markos
03-02-2010, 06:27 PM
does this work for 4.0.2 ???

Welshy2008
03-02-2010, 08:27 PM
I have a 4.0.2 PL1 testboard and it works on there. :)

GONUMBER6
03-06-2010, 09:06 PM
Thanks! :)

CFodder
03-07-2010, 12:44 AM
Great little tip/mod thanks ... have rated it 5 stars for ya :).

Videx
03-08-2010, 01:47 AM
Dumbest idea I've seen in a while. The whole point of the box being unchecked by default is security. By checking it by default, you're forcing users on public computers to remember to uncheck it, and if your users are too dumb to check it, then they're certainly too dumb to uncheck it.

My members aren't the brightest bulbs in the box, but on the rare occasions I have to tell them to check it, they do. If they're really too stupid to check it, then I really don't want them as members.

Welshy2008
03-08-2010, 08:06 AM
Dumbest idea I've seen in a while. The whole point of the box being unchecked by default is security. By checking it by default, you're forcing users on public computers to remember to uncheck it, and if your users are too dumb to check it, then they're certainly too dumb to uncheck it.

My members aren't the brightest bulbs in the box, but on the rare occasions I have to tell them to check it, they do. If they're really too stupid to check it, then I really don't want them as members.

Good Grief,

Someone has a chip one their shoulder, don't they?!

Here is a quote from my OP...

Only recommended for private Computers!


** Worth mentioning that if your members do use a public computer (a shared pc; such as in a Internet Cafe or Library etc). They should remember to untick the box; Manually, Also clear the cookies.


Use or Don't use - it's there for you to choose. :)


I think the world of ALL of my members and without them, my forum won't be the huge success it is Today.

I respect my ALL my members and YOU will do well to do the same to yours.


If you don't like it - DON'T install it! No-one is forcing you too!!

mallick
03-09-2010, 02:45 AM
perfect! thanks..

CFodder
05-01-2010, 05:15 AM
Do we have any update for 4.03 for this, it doesn't seem to be working now I've upgraded :(

Welshy2008
05-01-2010, 08:38 AM
That's strange,

It works for me after an Upgrade from 4.02 - 4.0.3 PL1. Have you reverted the templates back?

Juggernaut
07-21-2010, 04:15 AM
Love this, it works in vB 4.0.5 :D

Welshy2008
07-25-2010, 04:11 PM
Thank You for confirming that it works in vB4.0.5, Destron. :)

bahattab
08-10-2010, 09:52 AM
hi

can you make this mode as auto Template as a product

i hope that pleas pleas pleas :p :p :p

thanks

miket1234
08-19-2010, 01:51 PM
works also on 4.0.6

bahattab
09-17-2010, 01:54 AM
hi

is this right code to make a plugin from this hack:





$repl = array(
array(
'<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>',
'<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" checked="checked"/> {vb:rawphrase remember_me}</label></div>'
));

foreach ($repl as $r)
{
$vbulletin->templatecache['navbar'] = str_replace($r[0],$r[1],$vbulletin->templatecache['navbar']);
}
unset($repl, $r);

$repl = array(
array(
'<input type=\"checkbox\" name=\"cookieuser\" value=\"1\" id=\"cb_cookieuser_navbar\" class=\"cb_cookieuser_navbar\" accesskey=\"c\" tabindex=\"103\" />'
'<input type=\"checkbox\" name=\"cookieuser\" value=\"1\" id=\"cb_cookieuser_navbar\" class=\"cb_cookieuser_navbar\" accesskey=\"c\" tabindex=\"103\" checked=\"checked\"/>'
));

foreach ($repl as $r)
{
$vbulletin->templatecache['register_rules'] = str_replace($r[0],$r[1],$vbulletin->templatecache['register_rules']);
}
unset($repl, $r);







thanks

sticky
09-17-2010, 05:59 AM
Installed 4.0.2, works great.

bahattab
09-17-2010, 11:44 AM
i have vb 4.0.7 and it does not work in my site ???

the file: product-autorememberbox.xml is defrent from the code, i hope if some one can fix the code, the file is vb 3.5 and the code for vb 4.0

thanks

Welshy2008
09-17-2010, 12:20 PM
i have vb 4.0.7 and it does not work in my site ???

the file: product-autorememberbox.xml is defrent from the code, i hope if some one can fix the code, the file is vb 3.5 and the code for vb 4.0

thanks


You have the wrong mod there Mate. There are no files to upload on this one. ;)

bahattab
09-17-2010, 01:06 PM
i am talking about the file i uploaded i want some one to fix it so we can use it as product and we do not need to change the style code.

thanks

Welshy2008
09-18-2010, 10:36 AM
i am talking about the file i uploaded i want some one to fix it so we can use it as product and we do not need to change the style code.

thanks

That may be, But you didn't upload a "File" from this mod, because it only needs template changes.

Therefore, you would be better to ask that question on the thread, where ever you uploaded your original file from.


Regards,
Welshy2008.

bahattab
09-19-2010, 02:15 PM
hi

seriously, i don't remember from ware i downloaded the file. all what i need is to have this node in a product so i am not going to add anything in the template.

i hope if some one can help.

thanks

djbaxter
11-09-2010, 01:48 AM
It looks like there are mismatched quotes around "checked". Shouldn't this

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

be changed to this:

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

?

samiro
12-04-2010, 11:50 AM
you need to fix this line - and add (checked="checked")

djbaxter
12-04-2010, 03:46 PM
you need to fix this line - and add (checked="checked")

Yep. See my post just above yours.

Sforums
12-22-2010, 03:20 AM
I can't make this work on 4.1, can't find exact 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>

Can someone help me please?

Yaung Sein
12-26-2010, 01:26 PM
I can't make this work on 4.1, can't find exact 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>

Can someone help me please?

Find this in 'header' template
<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
<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" checked="checked" /> {vb:rawphrase remember_me}</label>

OldSchoolDSL
12-27-2010, 04:07 PM
Find this in 'header' template
<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
<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" checked="checked" /> {vb:rawphrase remember_me}</label>

This worked for me

4.1 PL2

COL NIL SATIS
12-29-2010, 05:08 PM
nice one !!!

bulldog51981
01-16-2011, 10:13 PM
Does not work with moded skin style on 4.1PL2 (at least mine anyway)

RK KINGKONG
01-23-2011, 01:49 AM
4.1.1 worked great thank you sir .......... this also helps for ppl having issues with arcade signing members out after submitting a score. if youre having this problem they say its good for them to check off remember me to avoid this happening ,.well this is a helpful solution

Videx
01-23-2011, 02:29 AM
... this also helps for ppl having issues with arcade signing members out after submitting a score. if youre having this problem they say its good for them to check off remember me to avoid this happening ,.well this is a helpful solution... Only if they're too stupid to actually check the box themselves. In which case I don't want them on my forum.

Sforums
01-28-2011, 01:41 AM
Find this in 'header' template
<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
<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" checked="checked" /> {vb:rawphrase remember_me}</label>

Belated thanks!

sisterhood
04-11-2011, 07:21 AM
Belated thanks!

Great! Big Thanks

vnairp11
04-23-2011, 01:48 AM
will not work for 4.1.2

<li class="rememberMe"><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 save}?</label>

this is the code for me

vnairp11
04-23-2011, 01:51 AM
Nm it worked i replaced it regardless thanks.

HMBeaty
04-23-2011, 01:54 AM
will not work for 4.1.2

<li class="rememberMe"><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 save}?</label>this is the code for me
Try replacing yours with
<li class="rememberMe"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" checked="checked" tabindex="103" /> {vb:rawphrase save}?</label>

SpikedRocker
11-29-2011, 05:53 PM
Can a moderator change the orginal post to have correct syntax? Both Replace codes has:
checked=checked"/>

When it should be:
checked="checked"/>

RyanIsra.net
12-06-2011, 06:48 AM
What about remember me on the login page?

gariksher
01-11-2013, 10:10 AM
working on 4.2PL3 !
Thanks!

stevieb
08-05-2013, 02:17 PM
working on 4.2PL3 !
Thanks!

it doesn't work on 4.2.0 :confused: