The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Auto-login with cookie.
I need to tweak the register script, so as after the registration, a user would get logged in automatically, and set the login cookie.
I was looking over the register.php file. But it was a little too complex to comprehend. Any help would be appreciated. |
#2
|
|||
|
|||
Just get the member to tick the "Remember Me" box. It's hardly takes a huge amount of effort and they click the "Login" button right next to it every time they login. Also sometimes the user might not want to save their login like if they are using a shared computer or something of the sort.
|
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
One trivial change to make things a little easier would be to add 'checked="checked"' to the cookieuser checkbox in the navbar login form, so it's set by default.
If you are determined to set the cookie after registering, you might try a plugin on the register_addmember_complete, which just does: Code:
vbsetcookie('userid', $vbulletin->userinfo['userid'], true, true, true); vbsetcookie('password', md5($vbulletin->userinfo['password'] . COOKIE_SALT), true, true, true); -- hugh |
#5
|
|||
|
|||
The previous hack I already did. But some people were still having trouble, as they tend to forget their Username or password, and would just re-register.
I will test the other hack, thank you. |
#6
|
||||
|
||||
I have a site with a similar requirement to spoonfeed the users. One thing I found that helped slightly was to put a "Forgot your password?" link on the navbar if they aren't logged in. As the only place that link shows usually is in the error message if you get your password wrong, and the kind of user we are talking about doesn't typically read past the first three words of any given error message before giving up, this helped a little bit.
But I've also found that pandering too much to their willful ignorance and/or laziness is a losing proposition. So I still enforce unique emails and account verification, so they can't just create another account. -- hugh |
#7
|
|||
|
|||
Been there and done that... Still had problems with some...
that code above just does a session based cookie... This seems more promising: https://vborg.vbsupport.ru/showthrea...ghlight=cookie |
#8
|
|||
|
|||
You could change the "Remember Me" from a checkbox to a hidden input that is always true.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|