coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: FutureBeast on April 26, 2012, 04:47:23 AM

Title: Changing the Default User Album Permissions
Post 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!
Title: Re: Changing the Default User Album Permissions
Post by: Αndré on April 26, 2012, 01:27:54 PM
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).
Title: Re: Changing the Default User Album Permissions
Post by: FutureBeast on April 26, 2012, 05:37:32 PM
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?
Title: Re: Changing the Default User Album Permissions
Post by: FutureBeast on April 26, 2012, 05:42:25 PM
http://www.zuniweb.com/image_space/index.php

This is a link to the site by the way
Title: Re: Changing the Default User Album Permissions
Post by: Αndré on April 27, 2012, 10:10:01 AM
I just updated my above instruction (I forgot some brackets).
Title: Re: Changing the Default User Album Permissions
Post by: FutureBeast on April 28, 2012, 01:23:04 AM
UPDATE: This works perfectly. You are a life saver. Thank you so much!!!
Title: Re: Changing the Default User Album Permissions
Post by: Αndré on April 28, 2012, 02:27:17 AM
Please
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
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.
Title: Re: Changing the Default User Album Permissions
Post by: FutureBeast on April 28, 2012, 04:51:10 AM
Done.