vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - Auto Check Remember Me Box (https://vborg.vbsupport.ru/showthread.php?t=246583)

Hell Bomb 07-14-2010 10:00 PM

Auto Check Remember Me Box
 
1 Attachment(s)
Hey everyone, I am releasing another template modification, its basically shows you how to manually make the "Remember Me" box.

Why I made this small release.
Well I don't know about you but I only have one theme and about 25 modifications and am tired of adding plugins for such a simple thing when it takes almost less then 30 seconds to manually do this. Plus manually adding simple stuff like this expands your knowledge of HTML and PHP so that you can learn to do things like this yourself. Anyways enough of my mindless rambling and lets get to it.
STEP 1
Open up your forum navbar template and find the following line of code.
Code:

<input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />
Step 2
Add the following code anywhere in their
Code:

checked="checked"
now your code should look something like the following
Code:

<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" checked="checked" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />
For highly customized templates they might have placed the login check box in some other template and you may not know exactly which one well here is how you can find which that template it is in.

Step 1
Go to admincp >> Styles & Templates >> Search in Templates. Now in the top box labeled "Search Templates" First select which theme you want to seach in then in the search box search for the following
Code:

cb_cookieuser_navbar
Step 2
Open up the highlighted template and below the code box it should already have the searched phrase in there so you should be able to just click "Find" and it will bring you to the code.
Step 3
Ok, now just use the steps provided above to make it auto check the remember me box.
This should work for any check box :) Well I hope you learned something today, I know its small tweak but it is very nice addition to any website.

merk_aus 11-14-2010 12:23 AM

Thanks mate this is awesome - simply by awesome and your time in typing it up is much appreciated.

CK 01-22-2011 10:18 PM

Where would I find this in 4.1.1?

Boofo 01-22-2011 11:06 PM

Quote:

Originally Posted by ChemicalKicks (Post 2153127)
Where would I find this in 4.1.1?

https://vborg.vbsupport.ru/showthread.php?t=244573


All times are GMT. The time now is 09:13 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.01009 seconds
  • Memory Usage 1,720KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete