Anything is possible. But you will have to use the custom image functions and pass a parameter depending on whether you want the album watermarked or not.
Yes but what happens when I have 10 albums which I don't want to be watermarked ? LOL Unless there's a checkbox in the Album Edit administration page which triggers ZenPhoto to watermark the images.... which I have no idea how to do LOL ...
And let me just add that ZenphotoPress does not generate anything on its own: it just uses the images generated by Zenphoto. So, if it is possible in Zenphoto, it's likely to be possible in ZenphotoPress. If it's not in Zenphoto, it won't be in the wordpress plugin either
I tried editing the functions.js in `zenphotopress\tinymce\js` adding the code tagged with <ADD> so that custom images called by Zenphotopress would be processed without the watermark.
` path = webPath+"/" + adminDir + "/i.php?a="+albumUrl+"&i="+imageUrl; if (sizeValue!="full" && sizeValue!="custom") { path += "&s=thumb"; } else if (sizeValue=="custom") { path += "&w="+customWidth+"&h="+customHeight+"&t=1"; } ` But the original url (without the &t=1) still remains. Am I editing the correct file?
I cannot check the source code at the moment, but it looks like the right place. Pay attention to the if clause: it may be that your modification is skipped entirely.
If you want to always add the parameter, I'd advise you modify the first line of code: `path = webPath+"/" + adminDir + "/i.php?t=true&a="+albumUrl+"&i="+imageUrl;`
Also: once ZenphotoPress has generated a URL, it won't be changed automatically even if you modify the code.
Comments
Unless there's a checkbox in the Album Edit administration page which triggers ZenPhoto to watermark the images.... which I have no idea how to do LOL ...
So, if it is possible in Zenphoto, it's likely to be possible in ZenphotoPress. If it's not in Zenphoto, it won't be in the wordpress plugin either
By normal, zenphotopress generates
`http://127.0.0.1/zenphoto/zp-core/i.php?a=albumname&i=3701.gif&w=400&h=`
It calls i.php to generate an image.
I tried
`http://127.0.0.1/zenphoto/zp-core/i.php?a=albumname&i=3701.gif&w=400&h=&t=1`
On my browser and it works perfectly, without the thumbnails that is.
I tried editing the functions.js in `zenphotopress\tinymce\js` adding the code tagged with <ADD> so that custom images called by Zenphotopress would be processed without the watermark.
`
path = webPath+"/" + adminDir + "/i.php?a="+albumUrl+"&i="+imageUrl;
if (sizeValue!="full" && sizeValue!="custom") {
path += "&s=thumb";
} else if (sizeValue=="custom") {
path += "&w="+customWidth+"&h="+customHeight+"&t=1";
}
`
But the original url (without the &t=1) still remains. Am I editing the correct file?
But the "&t=1" does not appear on the link zenphotopress generated in the text editor of wordpress.
Any idea?
Pay attention to the if clause: it may be that your modification is skipped entirely.
If you want to always add the parameter, I'd advise you modify the first line of code:
`path = webPath+"/" + adminDir + "/i.php?t=true&a="+albumUrl+"&i="+imageUrl;`
Also: once ZenphotoPress has generated a URL, it won't be changed automatically even if you modify the code.