Hey all,
I would like to be able to have a link to the original photo for viewing/downloading (high resolution photos) but I've been beating my head against the wall for a while now.
In looking at the available functions it would appear that getUnprotectedImageURL should return this however it is returning the same thing as getFullImageURL. Is this maybe a limitation of the theme I am using? I have seen mention of enabling a download link and drop-down plugins however neither of these seem to be implemented in the them itself.
References:
getUnprotectedImageURL
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetUnprotectedImageURLgetFullImageURL
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetFullImageURLhttp://www.zenphoto.org/support/topic.php?id=1409359
Comments
- Disable hotlinking - UNCHECKED
- cache the full image - UNCHECKED
password SPECIFIED AS I WAS MESSING AROUND TRYING TO MAKE THIS WORK
In my images.php template file I have the following (which prints the link and the URL changes depending on the function I call):
`">Full Size Image`
Using `getFullImageURL()` I see the following with the various drop-down options:
Download:
`http://192.168.1.130/index.php?album=Projects and Equipment/Mini-Forge&image=IMG00818-20110612-1323.jpg`
No Access:
`http://192.168.1.130/index.php?album=Projects and Equipment/Mini-Forge&image=IMG00818-20110612-1323.jpg`
Protected:
`http://192.168.1.130/index.php?album=Projects and Equipment/Mini-Forge&image=IMG00818-20110612-1323.jpg`
Unprotected:
`http://192.168.1.130/index.php?album=Projects and Equipment/Mini-Forge&image=IMG00818-20110612-1323.jpg`
As you can see - the various options don't seem to do anything for some reason...
So it must be `<?php echo getFullImageURL(); ?>`. Even better is `<?php echo html_encode(getFullImageURL()); ?>`.
Also thank-you for the heads-up about the html_encoded URL. With this I have easily been able to make the re-sized image into a link to the full sized original; more than adequate for my purposes.
Hopefully this thread will help others in the future as well.