forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: FutureBeast on April 26, 2012, 04:47:23 am
-
Hi,
I am new here. I just installed coppermine and I am having trouble setting the default view permissions on user galleries to me only. Does anyone know how to do this or what file I should be modifying?
Any help would be appreciated.
Thanks!
-
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, visibility) VALUES ('$category', '$get_album_name', 'NO', '{$position}', '', '$user_id', '".(FIRST_USER_CAT+USER_ID)."')";
(not tested).
-
Thanks so much for getting back to mw!. Unfortunately, I entered this code and it caused my installation to idle endlessly when I tried to create a new album. I think that we are almost there however. Do youknow what may be wrong?
-
http://www.zuniweb.com/image_space/index.php
This is a link to the site by the way
-
I just updated my above instruction (I forgot some brackets).
-
UPDATE: This works perfectly. You are a life saver. Thank you so much!!!
-
Please
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.
-
Done.