![]() |
|
|
#1
|
|||
|
|||
|
Is there any way of adding the specified watermark to images when used in certain areas of a site?
What I'm looking for is a way of watermarking images from content unless a registered user is logged in, is that possible? |
|
#2
|
|||
|
|||
|
Yes, you can do this. I'd do it with inline PHP for ease:
Code:
<img src="
[image]
%% global $loggedin; if (!$loggedin) ** addToOutput('&watermark=true'); ** %%
">
![]() Then, if the user isn't logged in, the image should display with the watermark defined in the site settings and if they are, it won't be. Does that cover it? |
|
#3
|
|||
|
|||
|
Sounds perfect, I'll give it a go!
Cheers Colin |
|
#4
|
|||
|
|||
|
That seems to work prefectly, thanks.
If i need to also specify a width or height to the image, how would I go about that? Sticking Code:
&width=308 |
|
#5
|
|||
|
|||
|
Quote:
![]() |
|
#6
|
|||
|
|||
|
Doh! Actually it does work, must have done something wrong the first time.
Sorry Colin, and thanks for such a quick response! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|