Missing field in Album Permissions? Missing field in Album Permissions?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Missing field in Album Permissions?

Started by MALTP, November 10, 2003, 08:42:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MALTP

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.)

moorey

In somewhere of line 38 of modifyalb.php, have you got this line?    array($lang_modifyalb_php['can_view'], 'visibility', 5),

MALTP


Joachim Müller

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

MALTP

Nope, no changes in Album Permissions page after changing anything in Groups.

MALTP

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?

moorey

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?

joerod

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.

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here