coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: rostros on July 25, 2004, 05:43:06 PM

Title: Setting Default Permission on Album Creation. ??
Post by: rostros on July 25, 2004, 05:43:06 PM
Im sure it is possible to set the permision to a certain group on album create ? rather than having the user to change it afterwards.
Title: Re: Setting Default Permission on Album Creation. ??
Post by: Joachim Müller on July 25, 2004, 07:58:06 PM
Regular users can't create albums in the public gallery, no matter what group they're in. Users can only create albums within their personal user gallery.
I'm not sure this is what your question was about - if not, please re-phrase your question (more details).

GauGau
Title: Re: Setting Default Permission on Album Creation. ??
Post by: Nibbler on July 25, 2004, 10:40:18 PM
Something like this (http://forum.coppermine-gallery.net/index.php?topic=6553.0) ?
Title: Re: Setting Default Permission on Album Creation. ??
Post by: zzzs on August 05, 2004, 12:26:02 AM
I think I understand what you want...
change the delete file... find this line and change it with my script:

delete.php
---------------------

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

zzzs.
Title: Re: Setting Default Permission on Album Creation. ??
Post by: Nibbler on August 05, 2004, 01:16:12 AM
http://forum.coppermine-gallery.net/index.php?topic=8525.0
Title: Re: Setting Default Permission on Album Creation. ??
Post by: Casper on August 05, 2004, 01:49:37 PM
This option is only available if you set 'users can have private galleries' to YES, in config.
Title: Re: Setting Default Permission on Album Creation. ??
Post by: deco on August 05, 2004, 02:52:58 PM
duh  :-[  I am so sorry I didn't even see that..

but thank you so much for your help and the fast answer Casper

greetings,

Deco
Title: Re: Setting Default Permission on Album Creation. ??
Post by: Bubba on November 28, 2004, 06:37:16 PM
It doesn't appear that this thread has answered the original question.

Quote from: rostros on July 25, 2004, 05:43:06 PM
Im sure it is possible to set the permision to a certain group on album create ? rather than having the user to change it afterwards.

I want to do the something very similar.  When a registered user creates a new album, the current default permission is that it is public and viewable by everyone.  I want to change this so that all new albums created default to private and only viewable by registered users.

I have searched all over this board and through the documentation and FAQs and not found the answer to this. 

The following response makes no sense at all.  What line am I supposed to change?

Quote from: zzzs on August 05, 2004, 12:26:02 AM
I think I understand what you want...
change the delete file... find this line and change it with my script:

delete.php
---------------------

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

zzzs.



The link mentioned by Nibbler below, is dead.

Quote from: Nibbler on August 05, 2004, 01:16:12 AM
http://forum.coppermine-gallery.net/index.php?topic=8525.0

Please help me with this.

Thanks.

Bubba