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: private galleries  (Read 5373 times)

0 Members and 1 Guest are viewing this topic.

Iain71

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
private galleries
« on: November 23, 2004, 09:57:52 am »

Hi there -

Sorry if this has come up already - I've tried searching, but no joy.

What I'm trying to do, is use Coppermine for users to upload photos that I can access - but its not intended for public viewing.

The idea is that each user would be able to upload photos, and they can see them, and I can see them, but at no point should any user be able to see other user's photos.

I've set users to have private galleries, but they can still all be viewed when each user is logged in. (I changed what was viewable on the homepage so that none are visible.)

I thought I might have it sussed by creating a unique group for each user, thinking that all members of a given group would be able to view all albums in their group.

I'm sure this must be possible, but haven't been able to figure it out yet.

I hope there is an answer, as CMG looks just what I'm after.

Cheers,
Iain
Logged

Nibbler

  • Guest
Re: private galleries
« Reply #1 on: November 23, 2004, 10:37:39 am »

You should be able to setup the albums in the user galleries to be visible to the owner only. Make sure you have enabled private albums in config, and set the viewing permissions in the album properties. There is a hack somewhere to make them default to that setting on creation.
Logged

Iain71

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: private galleries
« Reply #2 on: November 23, 2004, 10:39:29 am »

cheers - i've just got it working now. i was just getting all mixed up going back and forth - wasn't sure if that was set by the admin or by each user. found the "viewable to me only" in each users login, rather than setting permissions as the admin. and sussed that "me only" actually means "me plus the admin" (which is what i wanted).

Iain
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: private galleries
« Reply #3 on: November 23, 2004, 07:33:43 pm »

Yes, admin has full rights over the entire gallery, can see, edit and delete everything, including users private albums.
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

berboris

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: private galleries
« Reply #4 on: November 30, 2004, 07:34:21 pm »

How can I setup script to make each new album private (visible to the owner only) by default?
Logged

berboris

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: private galleries
« Reply #6 on: December 01, 2004, 02:16:56 pm »

http://forum.coppermine-gallery.net/index.php?topic=8525.0

I cannot open it.
Could you copy/past for me solution?
Logged

Nibbler

  • Guest
Re: private galleries
« Reply #7 on: December 01, 2004, 02:21:51 pm »

delete.php:

Code: [Select]
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos) VALUES ('$category', '" . addslashes($op['album_nm']) . "', 'NO',  '{$op['album_sort']}')";
                   

change to:

Code: [Select]
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, visibility) VALUES ('$category', '" . addslashes($op['album_nm']) . "', 'NO',  '{$op['album_sort']}', '" . (FIRST_USER_CAT + USER_ID) . "')";
I'm not sure why that thread had been moved to an inaccessible area.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: private galleries
« Reply #8 on: December 01, 2004, 06:29:56 pm »

I agree with nibbler, I don't know why that thread was put where it was, so I've moved it back into this board.
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
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.