Setting Default Permission on Album Creation. ?? Setting Default Permission on Album Creation. ??
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Setting Default Permission on Album Creation. ??

Started by rostros, July 25, 2004, 05:43:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rostros

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.

Joachim Müller

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


zzzs

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.


Casper

This option is only available if you set 'users can have private galleries' to YES, in config.
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

deco

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

Bubba

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