Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Changing the Default User Album Permissions  (Read 6465 times)

0 Members and 1 Guest are viewing this topic.

FutureBeast

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Changing the Default User Album Permissions
« 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!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Changing the Default User Album Permissions
« Reply #1 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).
« Last Edit: April 27, 2012, 10:09:29 am by Αndré »
Logged

FutureBeast

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Changing the Default User Album Permissions
« Reply #2 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?
Logged

FutureBeast

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Changing the Default User Album Permissions
« Reply #3 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Changing the Default User Album Permissions
« Reply #4 on: April 27, 2012, 10:10:01 am »

I just updated my above instruction (I forgot some brackets).
Logged

FutureBeast

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Changing the Default User Album Permissions
« Reply #5 on: April 28, 2012, 01:23:04 am »

UPDATE: This works perfectly. You are a life saver. Thank you so much!!!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Changing the Default User Album Permissions
« Reply #6 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.
Logged

FutureBeast

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Changing the Default User Album Permissions
« Reply #7 on: April 28, 2012, 04:51:10 am »

Done.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.