Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: User Album into public album  (Read 4430 times)

0 Members and 1 Guest are viewing this topic.

hiddenvalley390

  • Contributor
  • Coppermine newbie
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 8
User Album into public album
« on: December 07, 2011, 11:39:12 pm »

Is there any way to allow registered users to create their own albums and allow other users to upload to them?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: User Album into public album
« Reply #1 on: December 12, 2011, 02:26:19 pm »

There are 2 possibilities:
1. Extend the album properties form
2. Enable that option by default, while a new album is created


The second option is easier to implement, but I don't know if it fits your needs.

Logged

hiddenvalley390

  • Contributor
  • Coppermine newbie
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 8
Re: User Album into public album
« Reply #2 on: December 12, 2011, 09:01:46 pm »

How do you "Enable that option by default, while a new album is created"? I cant seam to find that option in the settings.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: User Album into public album
« Reply #3 on: December 13, 2011, 09:20:54 am »

Both possibilities aren't in the config, we'd have to modify the code either way.

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) VALUES ('$category', '$get_album_name', 'YES', '{$position}', '', '$user_id')";
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.