Changing new album premissions to registered by default. Changing new album premissions to registered by default.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Changing new album premissions to registered by default.

Started by aunrea, January 07, 2007, 06:32:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aunrea

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.


aunrea

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.

nivar

im looking for same solution, could you point me on the right direction.
thanks in advace.

aunrea

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.