ZenphotoCMS Forum
Watermark not show for login user - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Watermark not show for login user (/thread-12353.html)



Watermark not show for login user - kankburhan - 30-10-2015

Hello, i have ask about watermark.
I want watermark not show for logged user.
I try this, but image not show.

                        " title="">





                        " title="">



Watermark not show for login user - acrylian - 30-10-2015

First, please escape code properly using backticks as it otherwise displays crippled.

First, you are using the standard functions a bit off. If you want to use the default options don't use printCustomSizeXXX functions. Those are for custom sizes not using the options. For image functions using the default options use the default image functions.

Your custom size functions don't show the watermark because you disabled by setting null on the related parameter:
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintCustomSizedImage




Watermark not show for login user - kankburhan - 02-11-2015

Hi acrylan, tks for your answer.
I was correct my code for there is example for showing image:
printCustomSizedImage(getBareImageTitle(),NULL,552,370,765,518,10,10,NULL,NULL,TRUE);

But, watermark show to in user loggedin, i want watermark remove for user logged in.




Watermark not show for login user - acrylian - 02-11-2015

Then you have to call the functions differently.

`
if(zp_loggedin()) {

} else {

}
`




Watermark not show for login user - kankburhan - 03-11-2015

Dear Acrylian, oke thanks i has done about that problem.

But i want create download album, without watermark when user loggedin, but image will watermark when not user loggedin.

i was use this `` but watermark not shown for user not loggedin.

Can you describe to me about that logic.




Watermark not show for login user - acrylian - 03-11-2015

That is not possible to differ with that function. Btw the function is deprecated, you should use printDownloadAlbumZipURL from the downloadlist plugin instead.

You could try to use the AlbumZip class of the plugin directly:
http://www.zenphoto.org/documentation/plugins/misc/AlbumZip.html

But in any case you can only switch between cached (sized) images or the full images.