forum.coppermine-gallery.net

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
Code: [Select]
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description, owner) VALUES ('$category', '$get_album_name', 'NO', '{$position}', '', '$user_id')";and replace with
Code: [Select]
$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
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.