r_deckard9 wrote:
Correction on the last post I made.
From the link I posted I was able to hide the Memberlist from un-registered users. However, I just discovered that if you still click on an individual member, you see their profile without having to login.
Does anyone know how to fix this? I want to be able to hide all members from un-registered users.
Change also the profile.php that way:
#
#-----[ OPEN ]---------------------------------------------
#
profile.php
#
#-----[ FIND ]---------------------------------------------
#
if ( $mode == 'viewprofile' )
{
#
#-----[ AFTER, ADD ]---------------------------------------------
#
//
// Begin 'Restrict Guest Access' MOD
if ( !$userdata['session_logged_in'] )
{
redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=viewprofile", true));
}
// End 'Restrict Guest Access' MOD