badmeetsevil-
Wed 17th Oct '01, 11:16pm
Here's a little mini-addon to a very popular hack by RobAC. You can view the original hack here. (http://vbulletin.com/forum/showthread.php?threadid=23524)
When Rob released this hack, it would log you in, and bring you to the Forums home. This was very fustrating to some, who put the logon on their mainpage, and it'd bring them to the Forums Home, and not back to where they logged in.
I decided to do it myself, and found it pretty simple.
What this little addon will do, is when you login, it'll bring you back to the page you were previously on when you logged on. So, lets say you had Rob's login code on your mainpage, and you logged in, it'd bring you back to your mainpage saying "Welcome Back, Username". This will work with any page since it uses "$HTTP_REFERER". "$HTTP_REFERER" is just a little code that tracks the last page you've been on.
To install this, you'll need to change one line in your member.php.
Find
eval("standardredirect(\"".gettemplate("redirect_login")."\",\"index.php?s=$session[dbsessionhash]\");");
and replace it with
eval("standardredirect(\"".gettemplate("redirect_login")."\",\"$HTTP_REFERER\");");
Once you do this, this should bring you back to the page you were on while logging in.:)
Thanks Rob for the great hack!:D
Does this work for you?
When Rob released this hack, it would log you in, and bring you to the Forums home. This was very fustrating to some, who put the logon on their mainpage, and it'd bring them to the Forums Home, and not back to where they logged in.
I decided to do it myself, and found it pretty simple.
What this little addon will do, is when you login, it'll bring you back to the page you were previously on when you logged on. So, lets say you had Rob's login code on your mainpage, and you logged in, it'd bring you back to your mainpage saying "Welcome Back, Username". This will work with any page since it uses "$HTTP_REFERER". "$HTTP_REFERER" is just a little code that tracks the last page you've been on.
To install this, you'll need to change one line in your member.php.
Find
eval("standardredirect(\"".gettemplate("redirect_login")."\",\"index.php?s=$session[dbsessionhash]\");");
and replace it with
eval("standardredirect(\"".gettemplate("redirect_login")."\",\"$HTTP_REFERER\");");
Once you do this, this should bring you back to the page you were on while logging in.:)
Thanks Rob for the great hack!:D
Does this work for you?