Advanced search  

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

Pages: [1]   Go Down

Author Topic: Setting Default Permission on Album Creation. ??  (Read 4793 times)

0 Members and 1 Guest are viewing this topic.

rostros

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Setting Default Permission on Album Creation. ??
« 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Setting Default Permission on Album Creation. ??
« Reply #1 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
Logged

Nibbler

  • Guest
Re: Setting Default Permission on Album Creation. ??
« Reply #2 on: July 25, 2004, 10:40:18 pm »

Something like this ?
Logged

zzzs

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Setting Default Permission on Album Creation. ??
« Reply #3 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.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Setting Default Permission on Album Creation. ??
« Reply #5 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.
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

deco

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Setting Default Permission on Album Creation. ??
« Reply #6 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
Logged

Bubba

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Setting Default Permission on Album Creation. ??
« Reply #7 on: November 28, 2004, 06:37:16 pm »

It doesn't appear that this thread has answered the original question.

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?

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.

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

Please help me with this.

Thanks.

Bubba

Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.