user management / hide of albums for defined groups user management / hide of albums for defined groups
 

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

user management / hide of albums for defined groups

Started by udu, November 28, 2003, 09:28:18 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

udu

hi there

its really great stuff this software. but one thing i didn't find out. is it possible to hide some albums for several groups.

example: i have 2 albums: privat and public. the privat should only be visible for the private group, the public is visible for all?

rgds urs

sonique33

*push*

is there a solution now??
in the Faq stands:
QuoteHow can I prevent unregistered user from viewing the gallery?
edit
displayimage.php
and search for
/**************************************************************************
* Local functions definition
**************************************************************************/

and add before it
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);

but this just work with  version 1.1

Casper

This is easy now.

to restrict the viewing to albums to registered users only, edit the properties of the album.  In admin mode, click on the link 'properties', as here; (https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.langportrd.f2s.com%2Fimages%2Fmodalbum.jpg&hash=b7f14ae70f140bec4ef9e15c221f1fe975eef4c4)

now select who can view, as here;

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.langportrd.f2s.com%2Fimages%2Fmodperm.jpg&hash=1ac1906903e303fb02b801260c575994e057d76f)

If you wish to have albums that only some members can see, you need to create a group for them.

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.langportrd.f2s.com%2Fimages%2Fmodgroups.jpg&hash=6e23a94b6dc43ca635d9483c229037014914d704)
here I have created a group called 'superuser', who will be able to see albums that normal registered users cannot.



Now you need to change the permissions for the members of this new group.  Edit the individual users properties.

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.langportrd.f2s.com%2Fimages%2Fmoduser.jpg&hash=760c0aefcaa800979906057dab0995d8e6bc1b89)
If this group is to have more priviledges than registered users, make sure that the 'registered user' box is still checked, if it is not, they will not be able to see albums set for registered users.

Admin will also need to check this box for themselves, which means another admin has to do it for you, or create another admin name for yourself, and check all the boxs (not banned) so you can see them.
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

udu

hi caspar

your description is ok til the point with the "permissions for this album". i have only the last three points starting with "visitors" but not the point "album can be viewed by". i have version 1.2.0 and i am in the admin-mode. any idea?

rgds urs

Casper

Hi UDU,

yes, this option is only there if you have the config set to;

QuoteUsers can can have private albums   Yes

good luck

casper  :wink:
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

udu

hi casper

works fine. it's really great this program, i love it.

rgds urs