Eigentlich sollte es reichen, in der profile.php aus
Code: Alles auswählen
if ( $mode == 'viewprofile' )
{
include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
exit;
}
Code: Alles auswählen
if ( $mode == 'viewprofile' )
{
if ( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("profile.$phpEx?mode=register", true));
exit;
}
include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
exit;
}

Gruß, Philipp