coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: rayne on December 19, 2003, 06:19:28 AM

Title: this line of code
Post by: rayne on December 19, 2003, 06:19:28 AM
In this line of code (found in index.php //prepare everything:          

$alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID + FIRST_USER_CAT)) ? html_albummenu($alb_thumb['aid']) : ' ';

shouldn't the html_albummenu (which has the delete properties edit pics buttons) show up when a user_admin is logged in?

--Rayne
Title: this line of code
Post by: Tarique Sani on December 19, 2003, 07:07:35 AM
Quoteshouldn't the html_albummenu (which has the delete properties edit pics buttons) show up when a user_admin is logged in?

Yes it should and it does...
Title: this line of code
Post by: rayne on December 19, 2003, 05:33:20 PM
OK, thanks. I'm being incredibly dense over this, I know, but I can't figure out why those buttons only show up when the gallery admin is logged in. They don't when a user admin is logged in. Maybe I don't understand what a user admin is. Is a user admin someone who has upload priviledges?
Thanks.
--Rayne
Title: this line of code
Post by: Joachim Müller on December 19, 2003, 05:43:12 PM
if you allow your "regular" users to have user galleries, then they have some power over their user gallery: that's when they're called "user admins"...
Basically, "user admin" means: someone else but the admin is logged in.
Create yourself a test account that doesn't have admin rights and you'll see what happens if you log in with this very account.

GauGau
Title: this line of code
Post by: rayne on December 20, 2003, 01:04:08 AM
Thanks for the reply. That's what I thought a user admin was. And I thought that this line of code:
$alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID + FIRST_USER_CAT)) ? html_albummenu($alb_thumb['aid']) : ' ';

gives user admins the html_albummenu. But, I only see html_albummenu when I am logged in as gallery_admin. I do not see html_albummenu when I am logged in as a user admin. That's what I am trying to fix.
Is there a flag to set so user admins see  html_albummenu?
--Rayne
Title: this line of code
Post by: Oasis on December 20, 2003, 01:58:43 PM
user admins will only see html_albummenu when they are in galleries that they own. In other words, only galleries in Home > User Galleries> Username

In albums that are in other categories, they will not show up, because they do not have control over them. It seems to me that you want to have users that have admin priviledges, or moderator priviledges. Coppermine doesn't have that.