forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: louiscox on October 15, 2014, 03:26:10 pm

Title: Forcing the upload page to use a specific album
Post by: louiscox 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
Title: Re: Forcing the upload page to use a specific album
Post by: ron4mac 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.
Title: Re: Forcing the upload page to use a specific album
Post by: Αndré 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
Title: Re: Re: Forcing the upload page to use a specific album
Post by: louiscox 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.

Title: Re: Re: Forcing the upload page to use a specific album
Post by: louiscox 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...
Title: Re: Re: Forcing the upload page to use a specific album
Post by: louiscox 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.
Title: Re: Re: Forcing the upload page to use a specific album
Post by: louiscox 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.
Title: Re: Forcing the upload page to use a specific album
Post by: Αndré 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.
Title: Re: Forcing the upload page to use a specific album
Post by: ron4mac 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