• Resolved will48

    (@will48)


    Hi,

    Installed the plugin and everything is working well. I can download an image or file without any problem.

    However, what I would like to do is download an image from my site that has a link to another site attached/embedded to it. I’ve tried many variations but no success so far.

    If anyone can advise me on this matter I would be very grateful.

    Thanks

    https://www.ads-software.com/plugins/easy-media-download/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Noor Alam

    (@naa986)

    Hi, You can also specify an image URL in the shortcode. For example:

    [easy_media_download url=”https://example.com/wp-content/uploads/file.zip” text=”https://example.com/wp-content/uploads/images/button.jpg”%5D

    Thread Starter will48

    (@will48)

    Hi naa,

    Thanks for your reply.

    Ok, the problem so far is that once I have linked the image to another url ( with an <a href wrapper ) what I then download becomes an html file and not an image, which for me is useless.

    If I simply want to download the image without a link using [easy_media_download url=”any url” force_dl=”1″] that works fine.

    Perhaps you could replicate what I am trying to do, that is, add an image to a page ( from wp media libary ) add a hyperlink and then try and download it to your pc with the link intact. If it’s possible, it would be a great addition to the plugin’s many features.

    I really appreciate your time; if you can find a solution to this problem it could be advantageous to us both.

    Thanks,

    Will

    Plugin Author Noor Alam

    (@naa986)

    @will48, Please provide a link so I can take a look.

    I’m not sure what you are trying to do. Are you trying to use an image as the button in the shortcode? or Are you directly embedding an image from the media library and then linking it to a file?

    You can’t just link to any URL in the “url” parameter. It needs to be link to a file (e.g. image, video, audio etc).

    Thread Starter will48

    (@will48)

    Hi naa,

    My apologies, I should have provided you with a link so that you could see first hand exactly what I’m trying to do.

    This is a link to a page on my test site: https://www.activityneeds.co.uk/testphone/

    If you click on the telephone image it simply redirects you to a youtube page. What I want to do is download that image complete with link intact.

    In order to do that I included the following code ( behind the button ):

    [easy_media_download url=”<img class=” wp-image-174883″ src=”https://www.activityneeds.co.uk/wp-content/uploads/2016/04/Testphone.png”width=”35&#8243; height=”26″/> ” text=”Download” width=”90″ height=”30″ force_dl=”1″]

    This actually works but the download comes as an html file and not an image.

    The purpose of all this is to allow visitors to download the ‘image’ complete with link which they can then add to an email as a kind of emoticon/emoji.

    I hope that explains what I’m trying to achieve.

    Once again, thanks for your time.

    Plugin Author Noor Alam

    (@naa986)

    Thanks. It doesn’t work that way. In this shortcode you can only specify a path (not the HTML embed code). I believe you are trying to do this:

    [easy_media_download url=”https://www.youtube.com/watch?v=RcZn2-bGXqQ&#8221; text=”https://www.activityneeds.co.uk/wp-content/uploads/2016/04/Testphone.png&#8221; width=”90″ height=”30″ force_dl=”1″]

    The only problem is that you can’t directly download a YouTube video. So It will just work as a redirect link.

    Thread Starter will48

    (@will48)

    Hi naa,

    Thanks for your reply. I think I understand what you’re saying, that is, I can only specify a path to an image or file and not one that has a hyperlink attached to it.

    May I reiterate though, I do not want to download a youtube video. I only want to download an image ( any image) that has an embedded hyperlink to youtube or any other 3rd party site.

    Therefore, I believe what you’re saying is that what I’m trying to do is not possible.

    I really appreciate your time.

    Many thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Images with links’ is closed to new replies.