Well... logically you made a mistake there in profile.php. It is only a couple lines, so you should be able to find your mistake easily.
Code: Select all
if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
{
$mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
}
if ( $mode == 'viewprofile' )
{
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
else if ( $mode == 'editprofile' || $mode == 'register' )
I dont know where I messed up...it worked well on memberlist.php..but the profile page is messed up...after I log in and try to see profile a blank page comes, same when I try to register without loging in (assuming I am a guest).
I made the changes only on memberlist.php and profile.php