private galleries private galleries
 

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

private galleries

Started by Iain71, November 23, 2004, 09:57:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Iain71

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

Nibbler

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.

Iain71

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

Casper

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

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


berboris


Nibbler

delete.php:

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


change to:

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

Casper

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