Advanced search  

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]

Pages: [1]   Go Down

Author Topic: user management / hide of albums for defined groups  (Read 3622 times)

0 Members and 1 Guest are viewing this topic.

udu

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
user management / hide of albums for defined groups
« on: November 28, 2003, 09:28:18 am »

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
Logged

sonique33

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
user management / hide of albums for defined groups
« Reply #1 on: December 02, 2003, 05:44:21 pm »

*push*

is there a solution now??
in the Faq stands:
Quote
How 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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
restricting view of albums
« Reply #2 on: December 02, 2003, 08:22:26 pm »

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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.langportrd.f2s.com%2Fimages%2Fmodalbum.jpg&hash=b7f14ae70f140bec4ef9e15c221f1fe975eef4c4)

now select who can view, as here;

(https://forum.coppermine-gallery.net/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://forum.coppermine-gallery.net/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://forum.coppermine-gallery.net/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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
user management / hide of albums for defined groups
« Reply #3 on: December 02, 2003, 09:21:18 pm »

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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
user management / hide of albums for defined groups
« Reply #4 on: December 02, 2003, 10:10:33 pm »

Hi UDU,

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

Quote
Users can can have private albums   Yes


good luck

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
user management / hide of albums for defined groups
« Reply #5 on: December 02, 2003, 11:15:24 pm »

hi casper

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

rgds urs
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 18 queries.