coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: sv00sj on June 30, 2005, 12:42:09 AM

Title: How to change the default permisson for a new album?!
Post by: sv00sj on June 30, 2005, 12:42:09 AM
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"?!

Title: Re: How to change the default permisson for a new album?!
Post by: 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.
Title: Re: How to change the default permisson for a new album?!
Post by: sv00sj on July 01, 2005, 01:25:32 AM
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.
Title: Re: How to change the default permisson for a new album?!
Post by: Nibbler on July 01, 2005, 03:47:09 PM
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)";
Title: Re: How to change the default permisson for a new album?!
Post by: yohooo8 on September 09, 2005, 09:37:04 AM
Thanks  :)