coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: allvip on January 27, 2015, 02:01:05 PM

Title: Embed images (upload from url)
Post by: allvip on January 27, 2015, 02:01:05 PM
Is it possible to embed images (upload from url)?
Many users prefer to upload from their website to advertise their website like they do on pinterest.

https://www.pinterest.com/pin/542261611356193582/ (https://www.pinterest.com/pin/542261611356193582/)
When image is clicked it takes to their website.

Can remote videos plugin be edited to do that?
Remote videos for cpg1.5.x http://forum.coppermine-gallery.net/index.php/topic,60195.0.html (http://forum.coppermine-gallery.net/index.php/topic,60195.0.html)
Title: Re: Embed images (upload from url)
Post by: Αndré on January 27, 2015, 03:22:07 PM
Quote from: allvip on January 27, 2015, 02:01:05 PM
Is it possible to embed images (upload from url)?

Do you want to embed images or upload them? That technically something different.
Title: Re: Embed images (upload from url)
Post by: allvip on January 27, 2015, 05:30:16 PM
Upload from url, not just from PC and when users clicks the image to go on the website that has that image.
Just like pinterest.com.

I want it this way because users mostly want to show the images from their website and then when other users clicks the image to go to their website.
Title: Re: Embed images (upload from url)
Post by: Αndré on January 27, 2015, 07:52:52 PM
Actually you're asking for several things:
1. Enter an URL and Coppermine adds that file to the gallery
2. When visitors click on the file in the gallery, they get redirected to the actual image location

This is not possible out of the box. Upload by URL has been dropped in cpg1.5.x (because of permanent misunderstanding of that feature) and redirecting when visiting the intermediate-sized page is also not possible without modification or a plugin.

Of course you could create a plugin which provides a new upload form where the user selects the album and adds the URL (similar to the simple upload form). Then, Coppermine needs to store the URL (additional to the stuff it always stores and does) and your plugin need to check on every intermediate-sized page load if an URL exists and then redirect.
Title: Re: Re: Embed images (upload from url)
Post by: allvip on January 27, 2015, 07:59:44 PM
Quote from: Αndré on January 27, 2015, 07:52:52 PM
Of course you could create a plugin which provides a new upload form where the user selects the album and adds the URL (similar to the simple upload form). Then, Coppermine needs to store the URL (additional to the stuff it always stores and does) and your plugin need to check on every intermediate-sized page load if an URL exists and then redirect.

I will tray it. Doesn't sounds difficult.
Thanks a lot.
Title: Re: Embed images (upload from url)
Post by: allvip on April 30, 2015, 08:05:07 PM
I did try but I'am so not good at this.
Can you make the plugin PLEASE?
I want to start a new gallery with more features.
I don't have allvip.us anymore.
Title: Re: Embed images (upload from url)
Post by: Αndré on May 29, 2015, 08:54:57 PM
Sorry, but I'm personally not interested in such a plugin and I've currently way too little spare time to create it (as you probably already noticed ;)).