ZenphotoCMS Forum
html link to album photo - can it be done? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: html link to album photo - can it be done? (/thread-11281.html)



html link to album photo - can it be done? - JimFromAustin - 2013-08-19

Hi, Love the Zen!

I would like to be able to link to some of the photos that are in ZenPhoto galleries from my main website. for example:

Is this possible?

I tried it, but it is executing php code and not displaying the image. So far, the only way I have been able to get it to work is to do this (which would be too difficult to maintain):

which would be very difficult to maintain.




html link to album photo - can it be done? - acrylian - 2013-08-19

The link you used is the protected full image link which naturally will not work for that purpose.. You can always link directly to the actual full image within the albums folder. That link will always be http://www.mywebsite.net/zenphoto/albums//.
That will be the full image you uploaded.




html link to album photo - can it be done? - JimFromAustin - 2013-08-19

Thank you Acrylian! I didn't see that folder. Been beating my head against the wall. You have saved me from further concussions! This is perfect!

Also thank you for your quick reply.




html link to album photo - can it be done? - sbillard - 2013-08-19

Your protected image link can be made to work. But you will have to insure that the full image has been cached or that no caching (image processing) is needed for the full image.

But of course you will need to get the link correct. In your example case it should be
[Image: http://www.mywebsite.net/zenphoto/zp-core/full-image.php?a=gallery1&i=image1.jpg&q=75&wmk=!&dsp=Protected%20view]

i.e. you got the album name wrong.