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: Forcing the upload page to use a specific album  (Read 4075 times)

0 Members and 1 Guest are viewing this topic.

louiscox

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Forcing the upload page to use a specific album
« on: October 15, 2014, 03:26:10 pm »

Hi,

I have created an HTML5 site that uses canvas, and I have installed Coppermine as an image upload repository on the same domain as the HTML5 canvas.

I want to have a completely faceless upload page - ideally I would have no method ( selected = single, not Flash ) and no album choice ( selected = album of my choosing ). I don't want an anonymous user to have access to anything other than a simple file upload - no login, no home etc.

I can see the form items are created inside function create_form_simple(&$data), and that form_alb_list_box($element[0], $element[1]); is forming the album list for example.

I cannot seem to eliminate the album selection criteria - I want a particular album to be forced as the selection, in other words not a selection box at all - all the user can do is select a file to upload...

Can anyone help me with this?

many thanks
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Forcing the upload page to use a specific album
« Reply #1 on: October 15, 2014, 03:55:16 pm »

Let's see if I have this straight ... are you looking to use Coppermine only as a method to upload images and not as an image gallery? If that is the case, there are plenty of standalone upload methods out there that would serve you better. (http://www.plupload.com being just one)  And in the scenario you've described (single upload, single destination), a single PHP file could do it all for you.
« Last Edit: October 15, 2014, 04:01:41 pm by ron4mac »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Forcing the upload page to use a specific album
« Reply #2 on: October 15, 2014, 08:09:46 pm »

To pre-select a specific album, you can add the album ID to the URL, like http://coppermine-gallery.net/demo/cpg15x/upload.php?album=123
Logged

louiscox

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Re: Forcing the upload page to use a specific album
« Reply #3 on: October 16, 2014, 11:55:08 am »

Let's see if I have this straight ... are you looking to use Coppermine only as a method to upload images and not as an image gallery? If that is the case, there are plenty of standalone upload methods out there that would serve you better. (http://www.plupload.com being just one)  And in the scenario you've described (single upload, single destination), a single PHP file could do it all for you.

Thanks for the reply, but ah the frustration - I needed this a while ago. It seems to fulfil the role of exactly what I needed, rather than a full install of coppermine. Sigh.

A friend sent me a similar link because I was thinking of using WordPress and he described https://prismic.io/. A brilliant solution that allows full control and content authorship - everything that WordPress offers without the hassle of large organisation and low security. But the downside as always is the learning curve in actually installing and using. Its hard work - if your not a natural programmer like me.

I must admit this looks a lot more handleable though. Many thanks.

Logged

louiscox

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Re: Forcing the upload page to use a specific album
« Reply #4 on: October 16, 2014, 11:56:06 am »

To pre-select a specific album, you can add the album ID to the URL, like http://coppermine-gallery.net/demo/cpg15x/upload.php?album=123

Thanks - thats a pretty neat solution...
Logged

louiscox

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Re: Forcing the upload page to use a specific album
« Reply #5 on: October 17, 2014, 11:09:40 am »

Thanks for the reply, but ah the frustration - I needed this a while ago. It seems to fulfil the role of exactly what I needed, rather than a full install of coppermine. Sigh.

A friend sent me a similar link because I was thinking of using WordPress and he described https://prismic.io/. A brilliant solution that allows full control and content authorship - everything that WordPress offers without the hassle of large organisation and low security. But the downside as always is the learning curve in actually installing and using. Its hard work - if your not a natural programmer like me.

I must admit this looks a lot more handleable though. Many thanks.

Further to this - I did try and use plupload and found Im getting no joy from it at all. I don't seem to get an error or be able to fix it - have posted on the plupload forum but these things are never a quick fix, and I know inevitably despite its large size CM is going to be a better solution for now.
Logged

louiscox

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Re: Forcing the upload page to use a specific album
« Reply #6 on: October 17, 2014, 11:27:29 am »

Thanks - thats a pretty neat solution...

Further to this - I tried it and it has no effect. I was pretty hopeful it would do as needed.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Forcing the upload page to use a specific album
« Reply #7 on: October 17, 2014, 11:37:47 am »

Please post a link to your gallery and a test user account with upload privileges, if needed.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Forcing the upload page to use a specific album
« Reply #8 on: October 17, 2014, 07:11:23 pm »

Perhaps if you could post a more precise and complete description of what your needs are, we could advise you about whether CPG can be coerced into serving your needs.
Do you wants users to have accounts/logins? Do you want there to be only anonymous access with file upload capabilities?

If my suspicions are correct about what I think you're looking for, I'm not sure that CPG will be a good fit for you unless it is heavily modified for your particular use case.

Here is another standalone file manager that I have used with some success for particular situations:
http://www.responsivefilemanager.com
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.