coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: -Manuel- on April 13, 2005, 03:24:02 PM

Title: Change default settings of album
Post by: -Manuel- on April 13, 2005, 03:24:02 PM
Hello together
after creating a new album in a category, the permissions for the album are set like
- Visitors can upload files          No
- Visitors can post comments    Yes
- Visitors can rate files             Yes

How can I change default settings to no, no, no so I don't have to change every album according my desires after creating it?

Thank you very much for your help
-Manuel-
Title: Re: Change default settings of album
Post by: Nibbler on April 13, 2005, 04:03:30 PM
delete.php, change

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

to

$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, comments, votes) VALUES ('$category', '" . addslashes($op['album_nm']) . "', 'NO',  '{$op['album_sort']}', 'NO', 'NO')";
Title: Re: Change default settings of album
Post by: -Manuel- on April 13, 2005, 04:41:07 PM
Hello Nibbler
cool! Thank you very much for your help! Would it be possible to explain the modification?

-Manuel-