Logout redirect
Posted: 9. May 2008 13:36
Hi, what is necessary to do to have redirect after logout to portal page (instead to index page)?
Thanks
Thanks
Hm, I guess you have to modify your .htaccess-file (in forum-root) about like this:JirkaX wrote:Hi, what is necessary to do to have redirect after logout to portal page (instead to index page)?
Thanks
Code: Select all
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
DirectoryIndex portal.php index.php index.html index.htm
Code: Select all
meta_refresh(3, append_sid("{$phpbb_root_path}index.$phpEx"));
$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a> ');
Code: Select all
$portal_logout = request_var('portal_logout', 0);
if( !$portal_logout )
{
$redirect_link = append_sid("{$phpbb_root_path}index.$phpEx");
} else {
$redirect_link = append_sid("{$phpbb_root_path}portal.$phpEx");
}
meta_refresh(3, $redirect_link);
$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . $redirect_link . '">', '</a> ');
Code: Select all
{U_LOGIN_LOGOUT}
Code: Select all
{U_LOGIN_LOGOUT}&portal_logout=1
Code: Select all
$portal_logout = request_var('portal_logout', 0);
if( !$portal_logout )
{
$redirect_link = append_sid("{$phpbb_root_path}index.$phpEx");
} else {
$redirect_link = append_sid("{$phpbb_root_path}portal.$phpEx");
}
meta_refresh(3, $redirect_link);
$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . $redirect_link . '">', '</a> ');
Code: Select all
if( !$portal_logout )
{
$redirect_link = append_sid("{$phpbb_root_path}index.$phpEx");
} else {
$redirect_link = append_sid("{$phpbb_root_path}portal.$phpEx");
}
Code: Select all
$redirect_link = append_sid("{$phpbb_root_path}portal.$phpEx");