PDA

View Full Version : Logout --> Portal


WhiteOx
07-01-2004, 04:05 AM
When users logout of my forum I'd like them to be taken to the portal page instead of vb3s default logout page.
How can this be done ?

Thanks :)

Brian
07-01-2004, 11:44 AM
In /forum/login.php, look for:

$url = fetch_replaced_session_url($url);
eval(print_standard_error('error_cookieclear'));


If you always want them taken to the portal, replace with:
$url = '/index.php';
eval(print_standard_redirect('error_cookieclear'));


Or, if you would like them always returned to the page they came from (which is just personally the way I think it should be done):
$url = fetch_replaced_session_url($url);
eval(print_standard_redirect('error_cookieclear'));

Our Sponsors
 

WhiteOx
07-01-2004, 04:56 PM
Thanks Brian, I'll give it a go :)

WhiteOx
07-01-2004, 05:30 PM
Hmm, I can't find that exact code in login.php, the only thing I can find that's close to that is:
$url = fetch_replaced_session_url($url);
if (strpos($url, 'do=logout') !== false)
{
$url = "$vboptions[forumhome].php?$surl";
}
eval(print_standard_error('error_cookieclear'));

Our Sponsors
 

WhiteOx
07-03-2004, 03:32 AM
I was unsure about the above code, but I replaced it with what you said and it all works ok :)
Thanks Brian :)

Brian
07-03-2004, 08:34 PM
Ahhh, sorry about that. It looks like they changed the code slightly in 3.0.1+, which I wasn't aware of.