forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: Iain71 on November 23, 2004, 09:57:52 am

Title: private galleries
Post by: Iain71 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
Title: Re: private galleries
Post by: Nibbler 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.
Title: Re: private galleries
Post by: Iain71 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
Title: Re: private galleries
Post by: Casper 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.
Title: Re: private galleries
Post by: berboris 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?
Title: Re: private galleries
Post by: Nibbler on December 01, 2004, 01:26:16 pm
Try http://forum.coppermine-gallery.net/index.php?topic=8830.0 or http://forum.coppermine-gallery.net/index.php?topic=8525.0
Title: Re: private galleries
Post by: berboris 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?
Title: Re: private galleries
Post by: Nibbler 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.
Title: Re: private galleries
Post by: Casper 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.