Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Remember me box automatically ticked vB 4.0.x INC vb 4.0 PL 1 (GOLD) Details »»
Remember me box automatically ticked vB 4.0.x INC vb 4.0 PL 1 (GOLD)
Version: 1.00, by Welshy2008 Welshy2008 is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.x Rating:
Released: 12-29-2009 Last Update: Never Installs: 143
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

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

Screenshots

File Type: gif remembermeunchecked.gif (9.4 KB, 0 views)
File Type: gif remembermechecked.gif (10.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-01-2010, 08:38 AM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's strange,

It works for me after an Upgrade from 4.02 - 4.0.3 PL1. Have you reverted the templates back?
Reply With Quote
  #23  
Old 07-21-2010, 04:15 AM
Juggernaut Juggernaut is offline
 
Join Date: Dec 2009
Location: California
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love this, it works in vB 4.0.5
Reply With Quote
  #24  
Old 07-25-2010, 04:11 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank You for confirming that it works in vB4.0.5, Destron.
Reply With Quote
  #25  
Old 08-10-2010, 09:52 AM
bahattab bahattab is offline
 
Join Date: Jun 2005
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi

can you make this mode as auto Template as a product

i hope that pleas pleas pleas

thanks
Reply With Quote
  #26  
Old 08-19-2010, 01:51 PM
miket1234 miket1234 is offline
 
Join Date: Dec 2009
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works also on 4.0.6
Reply With Quote
  #27  
Old 09-17-2010, 01:54 AM
bahattab bahattab is offline
 
Join Date: Jun 2005
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Attached Files
File Type: xml product-autorememberbox.xml (1.8 KB, 10 views)
Reply With Quote
  #28  
Old 09-17-2010, 05:59 AM
sticky sticky is offline
 
Join Date: Sep 2003
Posts: 934
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed 4.0.2, works great.
Reply With Quote
  #29  
Old 09-17-2010, 11:44 AM
bahattab bahattab is offline
 
Join Date: Jun 2005
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #30  
Old 09-17-2010, 12:20 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bahattab View Post
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.
Reply With Quote
  #31  
Old 09-17-2010, 01:06 PM
bahattab bahattab is offline
 
Join Date: Jun 2005
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:51 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04808 seconds
  • Memory Usage 2,344KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete