Heres the bit of PHP that logs a user out of Joomla and the integrated forums i use (PunBB), at the moment it logs the user out of everything but redirects them to the forum, but i would prefer it to redirect them to the Joomla homepage, i have tried changing the path from index.php to http://richl.com but it will just put the URL as:
http://DOMAIN/index.php?option=com_punbo&Itemid=34&task=http://richl.com
The path the logout script is: http://domain/components/com_punbo/board/
I want the person to go to: http://domain/
How can i change the code to do this?
I also tried changing it to header
"Location: http://richl.com"); but that doesnt work either as i beleive it needs to be before the rest of the page and i cannot do that as all these scripts are nestled inside the main Joomla core...
Help!
http://DOMAIN/index.php?option=com_punbo&Itemid=34&task=http://richl.com
The path the logout script is: http://domain/components/com_punbo/board/
I want the person to go to: http://domain/
else if ($action == 'out')
{
if ($pun_user['is_guest'] || !isset($_GET['id']) || $_GET['id'] != $pun_user['id'])
{
redirect('index.php', "", true);
exit;
}
// logout from joomla
$mainframe->logout();
// logout from punBB
PUNlogout();
redirect('index.php', $lang_login['Logout redirect'], true);
}
How can i change the code to do this?
I also tried changing it to header

Help!