I have searched for the answer to this on the forum for over an hour and can only find people who have solved it but don't say how.
Is there a way to change default permission when an album is created to registerd users only?
I have tried changing the line in delete.php to
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description, visibility) VALUES ('$category', '".addslashes($op['album_nm'])."', 'NO', '{$op['album_sort']}', '', '2')";
But that didn't work. I wasn't sure it would because that was a solution to changing it to admin access by default. So how do I do registered by default.
That is the solution.
I checked it again but it wasn't working. Then I realized there were two lines of the code that need to be changed. I thought there was only one. It works now.
im looking for same solution, could you point me on the right direction.
thanks in advace.
In delete.php you need to find:
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description) VALUES ('$category', '".addslashes($op['album_nm'])."', 'NO', '{$op['album_sort']}', '')";
and replace it with:
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description, visibility) VALUES ('$category', '".addslashes($op['album_nm'])."', 'NO', '{$op['album_sort']}', '', '2')";
There are two instances of this. This will changed the default album permissions to registered.