coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: MALTP on November 10, 2003, 08:42:14 PM

Title: Missing field in Album Permissions?
Post by: MALTP on November 10, 2003, 08:42:14 PM
There's no "Album can be viewed by" field in Album Permissions. I've looked all over the Docs, FAQs, and boards (old/1.1.x/1.2); the few posts about this problem just say it has something to do with the permissions of groups, but don't mention what.

Here's what I'm doing: logging in as an admin > 'Album List' > 'PROPERTIES' next to any album. The three yes/no fields for Visitors appear, but not the "Album can be viewed by" field that I see in the picture of Album Properties in the Online Manual.

I have one other group besides the default four, and three users who are in that group. The field is missing whether the album is in a category or not. I'm trying to get it so one album (or, even better, a whole category, but I don't think that's possible) and the pictures in it can be viewed only by logged-in members of that one group.

Permissions for the group in question are: Rate (yes), eCards (no), comments (yes), upload (yes), pub. approval (no), personal gallery (yes), priv. approval (no).
Permissions for Registered are: Rate (yes), eCards (no), comments (yes), upload (yes), pub. approval (yes), personal gallery (no), priv. approval (no).
Permissions for Anonymous are: Rate (yes), eCards (no), comments (yes), upload (no), pub. approval (yes), personal gallery (no), priv. approval (yes).

(Coppermine 1.2 installed at http://maltp.com/gallery/, hosted by http://intersessions.com/ which uses PHP 4.3.3, Apache/1.3.27, GD bundled/2.0.15 compatible, MySQL 3.23.49.)
Title: Missing field in Album Permissions?
Post by: moorey on November 11, 2003, 02:51:09 AM
In somewhere of line 38 of modifyalb.php, have you got this line?    array($lang_modifyalb_php['can_view'], 'visibility', 5),
Title: Missing field in Album Permissions?
Post by: MALTP on November 11, 2003, 06:06:48 AM
Yes, exactly on line 38.
Title: Missing field in Album Permissions?
Post by: Joachim Müller on November 11, 2003, 07:44:48 AM
sometimes "groups" seems to need an update. Change anything in your groups settings (you might revert it back in a minute) and check if this makes the album permission field re-appear.

GauGau
Title: Missing field in Album Permissions?
Post by: MALTP on November 11, 2003, 08:17:16 AM
Nope, no changes in Album Permissions page after changing anything in Groups.
Title: Fixed
Post by: MALTP on November 13, 2003, 06:07:41 AM
Discovered the problem:

In Config, "Users can can have private albums" was set to No. On a whim, I changed this to Yes. Lo and behold, the missing visibility field appears.

So why does this happen? Is this a bug, or does it make sense because of my misunderstanding of how private albums/visibility works?
Title: Missing field in Album Permissions?
Post by: moorey on November 13, 2003, 06:43:58 AM
This is what i have:$data = array($lang_modifyalb_php['general_settings'],
    array($lang_modifyalb_php['alb_title'], 'title', 0),
    array($lang_modifyalb_php['alb_cat'], 'category', 2),
    array($lang_modifyalb_php['alb_desc'], 'description', 3),
    array($lang_modifyalb_php['alb_thumb'], 'thumb', 4),
    $lang_modifyalb_php['alb_perm'],
    array($lang_modifyalb_php['can_view'], 'visibility', 5),
    array($lang_modifyalb_php['can_upload'], 'uploads', 1),
    array($lang_modifyalb_php['can_post_comments'], 'comments', 1),
    array($lang_modifyalb_php['can_rate'], 'votes', 1)
    );


Could you try and switch your theme to the default one and see if you get the same result?
Title: Re: Missing field in Album Permissions?
Post by: joerod on October 19, 2004, 10:51:52 PM
I'm having the same problem... I've had this problem in the past.  How I fixed it was reinstall coppermine, just follow the upgrade instructions.  It will tell you what files you have to save.  After you reinstall you should see your field.
Title: Re: Missing field in Album Permissions?
Post by: Casper on October 19, 2004, 11:37:54 PM
This problem was solved nearly a year ago.

The 'missing' field is due to your config settings.
Make sure 'users can have private albums' is set to yes.