|
Redirect To Page Viewed Before Login
This modification is in the archives.
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:
exec_header_redirect($vbulletin->options['forumhome'] . '.php');
PHP Code:
$vbulletin->input->clean_gpc('s', 'REQUEST_URI', TYPE_NOHTML);
Next, go to /includes/functions_login.php, and (by default on line 292) find: PHP Code:
$vbulletin->url = $vbulletin->options['forumhome'] . '.php' . $vbulletin->session->vars['sessionurl_q'];
PHP Code:
$vbulletin->input->clean_gpc('s', 'REQUEST_URI', TYPE_NOHTML);
![]() Download No files for download. |
|||||||||