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: Uploading to Password-Protected Albums  (Read 4013 times)

0 Members and 1 Guest are viewing this topic.

Kabaka

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Uploading to Password-Protected Albums
« on: August 19, 2007, 02:04:07 am »

As of writing this post, I have the latest stable version of Coppermine installed.

I have created an album that is password-protected. It is set up such that it is not listed on the main page of the gallery; you must know the address to get there. Guest/visitor uploads are allowed in both the album properties and group permissions. This is currently the only album on the gallery which allows visitor uploads. When a user that is not logged in (and has entered the correct password for the album) clicks the Upload File button, the gallery returns:

Quote
Sorry there is no album where you are allowed to upload files

Is there any configuration that would allow uploads to password-protected albums, or am I trying to do something completely crazy?

By the way, I did search the forum for previous posts reguarding this issue. There have been several unsuccessful attempts to get help, and a few active posts that suddenly became inactive once this issue was reached.
« Last Edit: August 20, 2007, 10:42:46 am by GauGau »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Uploading to Password-Protected Albums
« Reply #1 on: August 19, 2007, 06:53:53 am »

When you set an album as a password protected it be comes Private Album ( Album can be viewed by => Me only) but users can upload to public albums and their personal albums only

Is there any configuration that would allow uploads to password-protected albums, or am I trying to do something completely crazy?

So the answer is no there isn't any configuration unless you code it
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Kabaka

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Uploading to Password-Protected Albums
« Reply #2 on: August 19, 2007, 07:12:18 am »

I was afraid of that. I might have to venture to suggest that the option to allow guest uploads be disabled with the album set as password-protected, but this isn't the forum for that. ;)

Thank you for the quick answer. ;D

I am almost certain this will probably be the wrong forum of it, but I'll go ahead and ask just because it follows the flow of the post: could you point me in the correct direction on which file(s) will need editing to make this possible? I could figure it out on my own, but there's no sense in spending a few hours learning the layout of the code when I could just ask people who already know. ;)
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Uploading to Password-Protected Albums
« Reply #3 on: August 19, 2007, 07:41:31 am »

look at upload.php at line #844 you will see how CPG lists the albums for uploaders checking if 'alb_password' has value under where clause may help you
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Kabaka

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Uploading to Password-Protected Albums
« Reply #4 on: August 19, 2007, 09:35:08 pm »

Thanks! I think I can get it from there. ;D

I really appreciate the fast replies. :) Thanks a bunch.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 21 queries.