ZenphotoCMS Forum
Can't get watermark to work in Colorbox on Zenpage theme - 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: Can't get watermark to work in Colorbox on Zenpage theme (/thread-9394.html)



Can't get watermark to work in Colorbox on Zenpage theme - art2002 - 2011-12-17

Hi,

I am using:
Zen Photo version: 1.4.1.6
Theme: Zenpage 1.4.0

The watermark feature works on the thumbnail, image and full size image. But when I enable the Colorbox, the watermark only works with the thumbnail and the image, but not on the full size image inside the Colorbox. You can see my website in

http://www.ambientlens.com

I even tried placing the Colorbox option 'photo:true' in the image.php of the theme like so:

<script type="text/javascript">
// <!-- <![CDATA[
$(document).ready(function(){
$(".colorbox").colorbox({
photo:true,
inline:true,
href:"#imagemetadata",
close: '<?php echo gettext("close"); ?>'
});
$("a.thickbox").colorbox({
photo:true,
maxWidth:"98%",
maxHeight:"98%",
close: '<?php echo gettext("close"); ?>'
});
});
// ]]> -->
</script>

But I can't get it to work. Any ideas?

Thanks.


Can't get watermark to work in Colorbox on Zenpage theme - acrylian - 2011-12-17

The theme calls the full image directly so bypassing the watermark. You have to change line 76 of image.php from `$tburl = getUnprotectedImageURL();` to `$tburl = getFullImageURL();`.


Can't get watermark to work in Colorbox on Zenpage theme - art2002 - 2011-12-17

Thank you, it worked!!! More success to you!