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

ikorolis 10-03-2006 11:24 AM

So where do i must put the code??? Under the <!-- login form --> or over???

Phooey 10-03-2006 11:51 AM

Quote:

Originally Posted by ikorolis
So where do i must put the code??? Under the <!-- login form --> or over???

It's not directly under that tag. The code to find is within the login form section of the template. Find the code that I listed in the section and insert the part that's in green, you'll need to scroll to the right in the code box to see the part in green.

ikorolis 10-03-2006 12:05 PM

I dint understood!!! Can you explain me step by step pls???

Phooey 10-03-2006 12:15 PM

Just sent you a PM, it should help you out. Also updated the hack here so that it reads a bit more clearly.

Icheb 10-03-2006 12:48 PM

Quote:

Originally Posted by ikorolis
I dint understood!!! Can you explain me step by step pls???

Find the HTML code, insert the highlighted part, done. How detailed do you want it? It's a miracle you were able to install vBulletin, let alone run it.

ikorolis 10-03-2006 06:34 PM

Ok thnx to Phooey!!! He saved me!!!

Phooey 10-03-2006 08:43 PM

Glad to be of assistance. :)

Lysithea 10-03-2006 10:05 PM

reserved. I'm not sure how many of my members actually log in from home even though a lot of them complain they keep getting logged out since they don't remember to check that box for themselves.

:) Good modification!

Floris 10-04-2006 10:02 AM

One of my older 3.x hacks made it to vborg, sweeet - thanks for updating it to 3.6.1 :)

Phooey 10-04-2006 11:39 AM

Yeah, I figured I wasn't the first person to post this. It's probably not too different (if at all) from your 3.x version, i just couldn't find it posted here at all, so I figured I'd share. :cool:

nerofix 10-04-2006 01:38 PM

nice idea and thx 4 share .. ;)

iLLoGIc 10-05-2006 07:10 PM

I have a request? Anyway to make this default off but once clicked it would remember each time you come back. As well as an option in the usercp to set default yes or no.

Hornstar 10-06-2006 04:17 AM

Quote:

Originally Posted by iLLoGIc
I have a request? Anyway to make this default off but once clicked it would remember each time you come back. As well as an option in the usercp to set default yes or no.

once clicked you remain logged in until your cookie expires, thus once your cookie expires it wont remember you ticked it ;)

so the answer is no. sorry.

Phooey 10-06-2006 12:37 PM

Quote:

Originally Posted by iLLoGIc
an option in the usercp to set default yes or no.

See the previous post for an answer to that first part, but I really like this idea. Look for it in a future release. I can't guarantee it'll be in the next few weeks because I'm pretty busy irl, but I'll definately work on it.

iLLoGIc 10-06-2006 05:15 PM

Quote:

Originally Posted by hornstar1337
once clicked you remain logged in until your cookie expires, thus once your cookie expires it wont remember you ticked it ;)

so the answer is no. sorry.


I know this is possible. May not be how the code is designed but its possible.
I am saying some people want this on by default and some don't. I think if its up to the user to have it on or off and leave it up to them because depending on if they are an admin having it save their info is not cool if the its a huge board thats a huge security risk if they forget to uncheck the save password. If it would remember that you check it and then when you come back what ever it was last set would be cool. maybe if there was some type of cookie that would save to remember this on that computer or when you type your user name if it could check the userr name and the user name's setting in their cp for this password remember as you click on password then the check box would change value based on what the userscp is set to. I am not trying to get into a debate about it I am just trying to find a way to make this mod a better mod and less of a security hazard but if the way i am thinking is too complex and is not possible and more of a security hazard then whatever. But i do see what your saying Hornstar about the it not able to know who to check into the db becuz everyone is a guest.

:cool: :cool: :cool: :cool:

Phooey 10-06-2006 07:05 PM

Well, that's way above my level of coding for vB, but I'll defiantely work on implementing an on/off switch somewhere in the admincp. :)

iLLoGIc 10-06-2006 08:05 PM

Quote:

Originally Posted by Phooey
Well, that's way above my level of coding for vB, but I'll defiantely work on implementing an on/off switch somewhere in the admincp. :)

That would be cool. Keep up the good work.

Hornstar 10-09-2006 09:02 AM

im fully with you, it would be cool, but the chances of seeing it anytime soon are quite slim. and im no expert but i feel doing some of the above may actually make it a little more insecure then secure lol but i aint no expert so i dont know for sure.

mrkhm 01-25-2007 06:50 AM

works a treat in 3.6.4 * installed thanks!

Shazz 01-25-2007 12:31 PM

thanx
/me installs

Quarterbore 01-25-2007 03:20 PM

Thanks! I was tired of all the issues from people losing their session and always telling them to remember to click that box... I wanted to hack this myself but you saved me the effort... Thanks!

Nathan2006 01-25-2007 08:07 PM

Thank you Phooey

Install

Phooey 01-26-2007 02:34 PM

Glad you guys like it. I've never created a product or plugin before, but I'm (very slowly) working on turning this in to a nice simple and small product that would automatically make the template change.

RFViet 01-26-2007 05:16 PM

I'm not sure what I thought was correct . Why don't you guys just set cookies time higher, like 99999 instead of modifying the template to force "Remember me" checked ???

Dead End Society 01-27-2007 07:08 AM

Quote:

Originally Posted by Quarterbore (Post 1167069)
Thanks! I was tired of all the issues from people losing their session and always telling them to remember to click that box... I wanted to hack this myself but you saved me the effort... Thanks!

Same here, I had to explain every single day.

Great hack! Thank you.

Shazz 01-27-2007 02:53 PM

Quote:

Originally Posted by Dead End Society (Post 1168212)
Same here, I had to explain every single day.

Great hack! Thank you.

LOL
Even though it saves on less click of the moust :)
But its nice to have

Nathan2006 01-28-2007 02:20 AM

Quote:

Originally Posted by RFViet (Post 1167884)
I'm not sure what I thought was correct . Why don't you guys just set cookies time higher, like 99999 instead of modifying the template to force "Remember me" checked ???


Because if they are auto logged in and you use the hack to remove the logout button once you have banned them then they cannot log out ;)

Ekka 06-20-2007 10:52 AM

Installed, what a ripper of an idea. On other forums I visit I forget at times and get dropped out now and then.

For those visiting internet cafe's they'd be pretty darn thick to not clear their sessions prior to leaving, liken it to leaving your card in the ATM and walking off!

kewl1uk 10-27-2007 11:56 PM

Thank you for this. I've had problem with this for a while and kinda tired of saying "check the remember me checkbox when logging in". Hopefully, this will solve the problem. Thanks again.

yoyoyoyo 10-28-2007 02:46 AM

here is the TMS (template modification system) XML file for this modification. Users that have TMS installed can simply download this file and upload it in their ACP and it will take care of the edits for them.


All times are GMT. The time now is 04:54 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.01298 seconds
  • Memory Usage 1,818KB
  • 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
  • (13)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