vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   'Remember Me' Checked by Default in Navbar (https://vborg.vbsupport.ru/showthread.php?t=128001)

Phooey 09-30-2006 10:00 PM

'Remember Me' Checked by Default in Navbar
 
Ok, so this is a painfully simple Template Modification, but I'm sure there are plenty of vBulletin users who would love to have the 'Remember Me' box on the navbar login form checked by default, so here it is:

Find the following in your navbar template (Its within the <!-- login form --> section):
Code:

<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
Change it to this:
Code:

<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />$vbphrase[remember_me]</label></td>
You'll be adding the part that's highlighted in green at the end of the 'replacement' code and telling the browser to check that box by default.


If you use this template mod, please, click INSTALL.

Phooey 10-01-2006 04:58 PM

Reserved, just in case. :D

Paul M 10-01-2006 05:02 PM

Shouldn't it be checked="checked" ?

We also edit the various error message templates as you can login with them as well. :)

basilrath 10-01-2006 05:04 PM

whats the reason for the hack...........................

Phooey 10-01-2006 05:05 PM

Both "checked" and "on" seem to work, but I think "checked" might be more common, so I'll edit that. Thanks. :cool:

Phooey 10-01-2006 05:07 PM

Quote:

Originally Posted by basilrath
whats the reason for the hack...........................

So that cookies are automatically set when users are logging in via the navbar. For example, I have plenty of users who log in, don't check that box, play in the arcade, and by the time they've finished the game their cookie has expired and it doesn't save the score.

basilrath 10-01-2006 05:26 PM

there problem ................i have to say happens on mine to but hey arcade scores arnt that important ........unless there mine of course !

Icheb 10-01-2006 05:45 PM

There is actually a very good reason why it is off by default. When people use internet caf?s or the likes and they forget to log off, they don't have to worry about their account getting hijacked.

Quote:

Originally Posted by Phooey
Both "checked" and "on" seem to work, but I think "checked" might be more common, so I'll edit that. Thanks. :cool:

You could put checked="humptydumpty" there and it would still work, because all you need is checked by itself. The rest is there for XHTML compliance.

Quote:

Originally Posted by basilrath
there problem ................i have to say happens on mine to but hey arcade scores arnt that important ........unless there mine of course !

If you don't like it, don't install it. And if you wasted less time writing dots you could spend more time learning the difference between there, they are and their.

smoknz28 10-02-2006 02:02 AM

That had to have been the most difficult mod I've made so far! :D

Thanks for sharing,
Mark

SleekSkins 10-02-2006 10:34 AM

Quote:

Originally Posted by Icheb
If you don't like it, don't install it. And if you wasted less time writing dots you could spend more time learning the difference between there, they are and their.

Amen

great hack


All times are GMT. The time now is 12:57 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.02279 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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