this line of code this line of code
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

this line of code

Started by rayne, December 19, 2003, 06:19:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rayne

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

Tarique Sani

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...
SANIsoft PHP applications for E Biz

rayne

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

Joachim Müller

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

rayne

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

Oasis

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.
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org