coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: plastikaa on February 16, 2005, 11:33:51 AM

Title: Making registered users able to post in albums by default.
Post by: plastikaa on February 16, 2005, 11:33:51 AM
At the moment every album I create I have to seperately set the permisions on each one so that visitors can post images. Where can I change this so that all albums are already set to allow visitors to uplaod pics?
Title: Re: Making registered users able to post in albums by default.
Post by: kegobeer on February 16, 2005, 01:29:37 PM
To create albums that are set to allow visitor uploads:

In delete.php, look for
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos) VALUES ('$category', '" . addslashes($op['album_nm']) . "', 'NO',  '{$op['album_sort']}')";
and change to
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos) VALUES ('$category', '" . addslashes($op['album_nm']) . "', 'YES',  '{$op['album_sort']}')";
Title: Re: Making registered users able to post in albums by default.
Post by: plastikaa on February 16, 2005, 04:24:18 PM
Thanks I knew it was in that file somewhere... I just didnt know where to even start looking and thought someone would know which would save me quite a bit of time.