Couldn't set permission to viewing profile...

This mod will make it posible to specify permissions to all "special pages, like MEMBERLIST, PROFILE VIEW and so on.
The permissions support USERGROUP, making this tool very powerfull

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Couldn't set permission to viewing profile...

Postby mushy on Sun 19. Oct, 2003 08:15

I tried but I couldn't set the permissions for user profile. I copy pasted the following code in profile.php file but no profile link appear in permissions in admin panel.

Code: Select all
// Added for Extra permission MOD
// Start auth check
//
$is_auth = array();
$is_auth = auth(AUTH_READ, PAGE_INDEX_PERMISSION, $userdata);
if( !$is_auth['auth_read'] )
{
   if ( !$userdata['session_logged_in'] )
   {
      $header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
      header($header_location . append_sid("login.$phpEx?redirect=index.$phpEx", true));
      exit;
   }
   $message = sprintf ($lang['Sorry_no_auth'],$is_auth['auth_read_type']);
   message_die(GENERAL_MESSAGE, $message);
}
//
// End auth check
//


Can somebody help me what exactly I have to do. I think I misunderstood the trick.
mushy
Poster
Poster
 
Posts: 27
Joined: Tue 04. Mar, 2003 06:47

Return to Extra permission [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron