Code: Select all
init_userprefs($userdata);
Code: Select all
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
Code: Select all
if ( $mode == 'viewprofile' )
{
include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
exit;
}
Code: Select all
if ( $mode == 'viewprofile' )
{
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
exit;
}
Code: Select all
// End session management
//
Code: Select all
if ( $userdata['user_id'] == ANONYMOUS )
{
redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx", true));
exit;
}
Wo1f wrote: Open this file --> yourforumroot\groupcp.php
FIND this code:Code: Select all
// End session management //
AFTER, ADD this code:Code: Select all
if ( $userdata['user_id'] == ANONYMOUS ) { redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx", true)); exit; }
Regards,
Wolf
Code: Select all
if ( $userdata['user_id'] == ANONYMOUS ) { redirect(append_sid ("login.$phpEx?redirect=groupcp.$phpEx", true)); exit; }
geesee wrote: When changing the code like this does it matter if what you end up with looks exactly like your example or like this (see below, re: spaces in between stuff and the number of lines used)?