vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Remember me box automatically ticked vB 4.0.x INC vb 4.0 PL 1 (GOLD) (https://vborg.vbsupport.ru/showthread.php?t=231609)

Welshy2008 12-29-2009 10:00 PM

Remember me box automatically ticked vB 4.0.x INC vb 4.0 PL 1 (GOLD)
 
1 Attachment(s)
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:

Code:

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

Code:

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

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:

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

Welshy2008 12-30-2009 10:12 AM

Quote:

Originally Posted by utahraves (Post 1942036)
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

Quote:

Originally Posted by voglermc (Post 1942662)
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

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

Quote:

Originally Posted by g00gl3r (Post 1943355)
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

Quote:

Originally Posted by Videx (Post 1999540)
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...

Quote:

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

1 Attachment(s)
hi

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


PHP Code:



$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

Quote:

Originally Posted by bahattab (Post 2099594)
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

Quote:

Originally Posted by bahattab (Post 2099611)
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

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" checked=checked"/> {vb:rawphrase remember_me}</label>
be changed to this:

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

Quote:

Originally Posted by samiro (Post 2129176)
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

HTML 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

Quote:

Originally Posted by Sforums (Post 2137472)
I can't make this work on 4.1, can't find exact code

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

<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

Quote:

Originally Posted by Yaung Sein (Post 2139219)
Find this in 'header' template
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:

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


All times are GMT. The time now is 02:20 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01495 seconds
  • Memory Usage 1,847KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (11)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete