coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: hiddenvalley390 on December 07, 2011, 11:39:12 PM

Title: User Album into public album
Post by: hiddenvalley390 on December 07, 2011, 11:39:12 PM
Is there any way to allow registered users to create their own albums and allow other users to upload to them?
Title: Re: User Album into public album
Post by: ΑndrĂ© on December 12, 2011, 02:26:19 PM
There are 2 possibilities:
1. Extend the album properties form
2. Enable that option by default, while a new album is created


The second option is easier to implement, but I don't know if it fits your needs.

Title: Re: User Album into public album
Post by: hiddenvalley390 on December 12, 2011, 09:01:46 PM
How do you "Enable that option by default, while a new album is created"? I cant seam to find that option in the settings.
Title: Re: User Album into public album
Post by: ΑndrĂ© on December 13, 2011, 09:20:54 AM
Both possibilities aren't in the config, we'd have to modify the code either way.

Open delete.php, find
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description, owner) VALUES ('$category', '$get_album_name', 'NO', '{$position}', '', '$user_id')";
and replace with
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description, owner) VALUES ('$category', '$get_album_name', 'YES', '{$position}', '', '$user_id')";