Direct download link on thumbnails?

I was wondering how I can add a direct download link to my thumbnails, similar to how this site does it: textureking.com

I would like to limit the gallery to only show thumbnails (I use larger thumbnails) and then when they click on the photo it forces a direct download. I already have the direct download code but I'm not sure what file I modify to change how the thumbnails appear and how they behave when clicked. Ideally I could add both a text link showing the file size and direct download link, as well as forcing the download when the thumbnail itself is clicked.

If anyone is interested I can share the code I have for forcing a direct download of the JPG file.

Comments

  • acrylian Administrator, Developer
    You have to change album.php and use the fullimagelink function instead of the link to the image.php page. Please read our theming tutorial to get familiar with Zenphoto themes and also take a look at the functions guide on our user guide page.
  • Thanks for the reply. I will read up and see if I can't get it working.
  • Which function it is? If someone can give the name of the function?
  • acrylian Administrator, Developer
    Most of our functions have quite "speaking" names and can be found on our documentation: http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetFullImageURL
  • Hi Wumpus,

    If you can share the code, it would spare me searching for the right place ;-)

    Thanks.
  • acrylian Administrator, Developer
    Place the function I posted a link to within the next_image() loop on your theme's album.php. If you don't know about what pages I am talking I suggest to read the theming tutorial.
Sign In or Register to comment.