forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: fabian86 on May 21, 2007, 08:08:36 pm

Title: All can see membership list
Post by: fabian86 on May 21, 2007, 08:08:36 pm
Hello, i have installed the Coppermine Photo Gallery(a very good Gallery, Gratulation!)

I miss a setting(cant find) in admin controlpanel
I will setting can all see the Membership list! in admin Control panel can i only set that see Member yes or no and not see Guest Yes or no...
Wo most i midificate the php file that all guest see the Membership List?

Thanks and sorry for my very bad english!

Fabian
Title: Re: All can see membership list
Post by: Nibbler on May 21, 2007, 10:38:25 pm
usermgr.php, find

Code: [Select]
if (USER_ID !='') {
 if (GALLERY_ADMIN_MODE) {
  $lim_user = 0;
  $number_of_columns = 9;
 }
 elseif ($CONFIG['allow_memberlist']) {
  $lim_user = 1;
  $number_of_columns = 7;
  show_memberlist;
 }
 else {
  $lim_user = 2;
  cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
 }
}
else {
 $lim_user = 3;
 cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}

change to

Code: [Select]
if (GALLERY_ADMIN_MODE) {
$lim_user = 0;
$number_of_columns = 9;
} else {
$lim_user = 1;
$number_of_columns = 7;
show_memberlist;
}
Title: Re: All can see membership list
Post by: fabian86 on May 22, 2007, 10:33:12 pm
NICE! Thanks!
I must only set the Link to startpage...