How to change the default permisson for a new album?! How to change the default permisson for a new album?!
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

How to change the default permisson for a new album?!

Started by sv00sj, June 30, 2005, 12:42:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sv00sj

Hi!

When I create a new album, the 'Permission for this album" is auto. set to "Evereybody". Is there a way that I can change this, and make the default setting for new albums be "Members of the 'Registered' group"?!


Nibbler

Yes, how to do this has been posted in the boards previously, please try a search.

sv00sj

Quote from: Nibbler on June 30, 2005, 01:25:44 PM
Yes, how to do this has been posted in the boards previously, please try a search.

Hi!

I've searched, but I can't find an answer to my question. I want "Reg. user" group to be default.

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']}', 2)";