User Album into public album User Album into public album
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

User Album into public album

Started by hiddenvalley390, December 07, 2011, 11:39:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hiddenvalley390

Is there any way to allow registered users to create their own albums and allow other users to upload to them?

Αndré

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.


hiddenvalley390

How do you "Enable that option by default, while a new album is created"? I cant seam to find that option in the settings.

Αndré

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')";