![]() |
Redirect To Page Viewed Before Login
This hack simply makes the browser redirect back to the page you were viewing before you logged in when you log in. I myself was getting pretty pissed off when I'd get logged out of the admin panel and log in, to find myself at the bloody forum home. Also useful for login boxes outside of the forums.
Anyway, this is what you do. First, go to login.php and (by default line 136) find: PHP Code:
PHP Code:
Next, go to /includes/functions_login.php, and (by default on line 292) find: PHP Code:
PHP Code:
|
Well there is the link by default that says return to page previously viewing, I suppose this just makes it auto, but it was never a huge concern for myself. Thanks for sharing it anyway.
|
No, not when you logout, I mean when you login, it automatically takes you to the forum homepage.
|
great hack.. too bad it can't be a plugin :(
|
There's a little bug with this.. for some reason it creates an endless loop in some places because of the little redirecting thing vbulletin has. If anyone wants to help out and fix that bit too, I'd be eternally grateful. :)
|
any update on this?
|
I'm afraid not, I haven't been able to find a way around this without doing some serious modifications to more than just a few files.
|
Is this for if you don't tick the remember me box and it logs you out.
|
All times are GMT. The time now is 09:13 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|