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: Allow public user to create albums  (Read 7197 times)

0 Members and 1 Guest are viewing this topic.

b0s

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Allow public user to create albums
« on: September 04, 2014, 12:49:56 pm »

Hi
I have a small setup in an friendly internal only network and would like to go "everyone can access everything".
I have managed to let public users upload and view existing albums, but I would also like them to be able to add new (public)albums. Is this possible?
Also public users get "You don't have permission to access this page." when they try to "edit files" of an album.
Thank you in advance!
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Allow public user to create albums
« Reply #1 on: September 04, 2014, 10:58:13 pm »

If you are comfortable doing it, you could modify the core file bridge/udb_base.inc.php

Around line 126, modify the function, load_guest_data(), to accommodate your goals.
Logged

b0s

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Allow public user to create albums
« Reply #2 on: September 05, 2014, 11:36:29 am »

Thank you! This works when I set $USER_DATA['user_id'] = 1; and set a user name. But the albums still show up under admin user... any ideas about that?
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Allow public user to create albums
« Reply #3 on: September 05, 2014, 12:28:56 pm »

Don't use the admin user id.  Except for the concept of 'public' albums, it would seem to fulfill your needs if you create a global user account (perhaps with the username 'public'), and then set $USER_DATA['user_id'] to the id number for that global account.
Logged

b0s

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Allow public user to create albums
« Reply #4 on: September 10, 2014, 10:28:22 am »

Thats the thing... I am not using admin user. I am using another user under $USER_DATA['user_id'], but the albums are still created under HOME > Category > admin.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Allow public user to create albums
« Reply #5 on: September 10, 2014, 11:45:00 am »

Please share your modifications so we can test ourselves.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.