To redirect a user back to where he was when he logged in (instead of to the main forum page)...
Find:
PHP Code:
print("<align='center'><span class='sectionheader'>Welcome back, $username!<br>");
Add Below:
PHP Code:
foreach($_GET as $option => $value){
if($add_to_link != NULL){
$add_to_link .= "&$option=$value";
} else {
$add_to_link = "?$option=$value";
}
}
Find:
PHP Code:
<input type='hidden' name='vb_login_md5password' />
Add Below:
PHP Code:
<input type="hidden" name="url" value="<?php echo $_SERVER[PHP_SELF].$add_to_link;?>"/>