links to different directories

Aug 29, 2012 at 8:38 PM

I have a strange but I imagine not completely unusual use case for AD-Gallery.

I have a standard gallery with thumbnails, which works fine. I have reduced the images from their original size to conserve bandwidth. But I want to make the original images available, via a link, in a directory root/images/fullsize, where root is where index.html is. So I want to have a link on each page which links to the full size version of the current ad-image.

I'm new to jQuery, is this something that would be quite simple to do? Or does anyone have any pointers to get me started?



Aug 30, 2012 at 11:26 PM

Not to worry, I sorted it out...

I just added the following lines in the _showWhenLoaded callback:

var ref = image.image;
var fullsizelink = "path to your fullsize image directory" + ref.substring(7); // this might need to change depending on the format of your urls
you also need to have a link with the id "fullsizelink", e.g:
<a href="" id="fullsizelnk">Larger Image to Download</a>

Hope this helps someone...