Download image

Hi all,
I'm trying to add a "download image" button to my image page, and I've done it and it works if the image is cached already, but if it is the first time someone is viewing that image the download doesn't work, because it's just linking to i.php instead of an image file.
Does anyone have any ideas on how to make that work?

Comments

  • acrylian Administrator, Developer
    How is your full image protection option set?
  • Protected View, it's on the default setting I think. The website this is for is quadmonitorbackgrounds dot com (and triple and dual eventually).
    I want it so that if the user clicks the image on the image page they can see it, but also want to be able to have a download link below the image that forces download.
    I get so many people contacting me that they can't figure out how to download the images because they are used to wallpaper sites that offer a download button :p
  • If you set the protection mode to "Download" you will get what I think you want. The user will be able to view the sized image on the image.php page. If he clicks on the image he will get a download dialog. (Most themes have the full image as a link associated with the image page sized image. Of course you would have to be sure that is the case for your theme.)

    If you actually want a download button you will have to code that yourself. At present the full image processor does not have the ability to select the mode other than through the optin. It would be possible to add that as a parameter if that would help.
  • It would be great to be able to set it as a parameter yeah, because I would like to have both options at the same time (download or view)
  • acrylian Administrator, Developer
    Then try the nightly build that has now these parameters for the full image link.
  • Great, thanks a lot!
  • Works today as well , thanks

    MadMac
Sign In or Register to comment.