PDA

View Full Version : 'Remember Me' Checked by Default in Navbar


Phooey
01 Oct 2006, 17:57
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): <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:
<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 (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=128001).

Phooey
01 Oct 2006, 17:58
Reserved, just in case. :D

Paul M
01 Oct 2006, 18:02
Shouldn't it be checked="checked" ?

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

basilrath
01 Oct 2006, 18:04
whats the reason for the hack...........................

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

Phooey
01 Oct 2006, 18:07
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
01 Oct 2006, 18:26
there problem ................i have to say happens on mine to but hey arcade scores arnt that important ........unless there mine of course !

Icheb
01 Oct 2006, 18:45
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.

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.

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
02 Oct 2006, 03:02
That had to have been the most difficult mod I've made so far! :D

Thanks for sharing,
Mark

SleekSkins
02 Oct 2006, 11:34
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
03 Oct 2006, 12:24
So where do i must put the code??? Under the <!-- login form --> or over???

Phooey
03 Oct 2006, 12:51
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
03 Oct 2006, 13:05
I dint understood!!! Can you explain me step by step pls???

Phooey
03 Oct 2006, 13:15
Just sent you a PM, it should help you out. Also updated the hack here so that it reads a bit more clearly.

Icheb
03 Oct 2006, 13:48
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
03 Oct 2006, 19:34
Ok thnx to Phooey!!! He saved me!!!

Phooey
03 Oct 2006, 21:43
Glad to be of assistance. :)

Lysithea
03 Oct 2006, 23:05
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
04 Oct 2006, 11:02
One of my older 3.x hacks made it to vborg, sweeet - thanks for updating it to 3.6.1 :)

Phooey
04 Oct 2006, 12:39
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
04 Oct 2006, 14:38
nice idea and thx 4 share .. ;)

iLLoGIc
05 Oct 2006, 20:10
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
06 Oct 2006, 05:17
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
06 Oct 2006, 13:37
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
06 Oct 2006, 18:15
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
06 Oct 2006, 20:05
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
06 Oct 2006, 21:05
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
09 Oct 2006, 10:02
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
25 Jan 2007, 07:50
works a treat in 3.6.4 * installed thanks!

Shazz
25 Jan 2007, 13:31
thanx
/me installs

Quarterbore
25 Jan 2007, 16:20
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
25 Jan 2007, 21:07
Thank you Phooey

Install

Phooey
26 Jan 2007, 15:34
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
26 Jan 2007, 18:16
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
27 Jan 2007, 08:08
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
27 Jan 2007, 15:53
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
28 Jan 2007, 03:20
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
20 Jun 2007, 11:52
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
28 Oct 2007, 00:56
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
28 Oct 2007, 03:46
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.

Pure Dope
08 Dec 2007, 19:14
this is a bad hack. this produces unexpected behavior.

people dont expect that value to be checked by default. what if logging on at a public computer?

Shazz
08 Dec 2007, 19:15
this is a bad hack. this produces unexpected behavior.

people dont expect that value to be checked by default. what if logging on at a public computer?

Then uncheck it ;)

Pure Dope
08 Dec 2007, 19:41
Then uncheck it ;)
this hack is evidently for people who DO NOT NOTICE the checkbox.

so do you think they are going to uncheck it? obviously not. and then on top of that...people who do know its there but do not expect it to be checked wont even look over to see that its checked.

anyway...like i said. bad hack. i wouldnt install. when you program its best to stay away from programming things like this. a better option would be fore a javascript popup to appear and point to the remember me checkbox when the user mouses over the login area.

Shazz
08 Dec 2007, 21:42
what if logging on at a public computer?


this hack is evidently for people who DO NOT NOTICE the checkbox.

Then uncheck it...

Pure Dope
08 Dec 2007, 22:29
ah man. it dont matter.

its just a usability issue. but who am i. ask that usability guy. he probably know better than me so ima shut up.

Phooey
17 Dec 2007, 20:05
ah man. it dont matter.

its just a usability issue. but who am i. ask that usability guy. he probably know better than me so ima shut up.
If you don't like it, then feel free to not use it. Some people might prefer that it be checked by default, some won't.

deezelpope
17 Dec 2007, 20:06
I LOVE it!!:up:

Where in Wisconsin are you from? I'm from Sheboygan, originally.:)

Phooey
21 Dec 2007, 15:49
I LOVE it!!:up:

Where in Wisconsin are you from? I'm from Sheboygan, originally.:)
Thanks! Glad you like it. I was born in, raised in, and currently reside in Milwaukee. I've driven through Sheboygan countless times on my way up to Door County and Green Bay. I've stopped off there a few times to eat, too. It's a nice city.

I see you're stuck in St. Paul now? I'm sorry to hear that. I lived in Minneapolis for several years. How are you dealing with the Vikings fans? ;)

deezelpope
24 Dec 2007, 12:22
Thanks! Glad you like it. I was born in, raised in, and currently reside in Milwaukee. I've driven through Sheboygan countless times on my way up to Door County and Green Bay. I've stopped off there a few times to eat, too. It's a nice city.

I see you're stuck in St. Paul now? I'm sorry to hear that. I lived in Minneapolis for several years. How are you dealing with the Vikings fans? ;)
I hope the places you've eaten in Sheboygan were local...there are some excellent greasy spoon-type diners with delicious cheeseburgers on hardrolls...just brought 2 dozen rolls home with me! That's the one thing I miss the most about living there, but thank goodness I can still buy Johnsonville brats here! Sheboygan used to be a nicer city, like when I was a kid...Sheboygan Falls is a nicer place.

I love living here in Saint Paul! Can't stand Minneapolis, though. And dealing with the Viking fans is a real pain in my butt!:D I can tell you've totally got me pegged for a die-hard Packer fan, and you'd be 100% right!:up:

Gharibe
27 Dec 2007, 08:33
Simple but great ,
Modified thanks

cafenetland
05 Apr 2008, 23:12
thx

installed

ArnyVee
08 Apr 2008, 12:07
Thx :)

installed

Coop1979
09 May 2008, 16:06
After I upgraded to 3.7 a bunch of my members started complaining that they were getting logged-out by the system for an unknown reason in the middle of making a post. I did hours of research until I realized that I just hadn't re-done this mod. My board would die without it!

BANDiT600
19 Jun 2008, 15:56
/me uninstalled
Many users getting logged-out...

ArnyVee
23 Jun 2008, 22:04
I completely forgot to update this since upgrading to 3.7.1 P1 a couple of weeks ago.

Now, it's back! Thanks for this hack! :D

webcosmo
24 Nov 2008, 17:21
cool bean, installed:)