PDA

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


Phooey
09-30-2006, 10:00 PM
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=128001).

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
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.

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
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
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
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
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
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
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
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
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
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
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
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.

Pure Dope
12-08-2007, 06:14 PM
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
12-08-2007, 06:15 PM
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
12-08-2007, 06:41 PM
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
12-08-2007, 08:42 PM
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
12-08-2007, 09:29 PM
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
12-17-2007, 07:05 PM
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
12-17-2007, 07:06 PM
I LOVE it!!:up:

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

Phooey
12-21-2007, 02:49 PM
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
12-24-2007, 11:22 AM
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
12-27-2007, 07:33 AM
Simple but great ,
Modified thanks

cafenetland
04-05-2008, 10:12 PM
thx

installed

ArnyVee
04-08-2008, 11:07 AM
Thx :)

installed

Coop1979
05-09-2008, 03:06 PM
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
06-19-2008, 02:56 PM
/me uninstalled
Many users getting logged-out...

ArnyVee
06-23-2008, 09:04 PM
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
11-24-2008, 04:21 PM
cool bean, installed:)