Copyright by Propagator.net , Author: Joey Wong [Huang JunYan] Version: 1.0



3.3 IMGOWL tag attributes


IMGOWL tags for Smarty is {imgowl}{/imgowl}. They have some required attributes and optional attributes to enhance its function.

Let's go through them. Optional attributes' definition also can be define in configuration file.(Please see 2.1 Configuration)

Required Attributes

3.3.1 name :

Name of imgowl set. Each image protection should be set unique name in one page.

Optional Attributes
(Watermark and a parts of caption bar setting just for registered version).



3.3.2 WMurl

Watermark image URL. (see also: setWaterMark() for non-template mode).


3.3.3 WMalpha

Watermark's transparency. (0=invisible,1~99=transparency,100=solid). (see also: setWaterMark() for non-template mode).


3.3.4 WMtop

Watermark's upper left point position (unit:pixel). (For measure guide, please see Chapter 2.1 Configuration).
(see also: setWaterMark() for non-template mode).


3.3.5 WMleft

Watermark's upper left point position (unit:pixel).Watermark's upper left point position (unit:pixel).
(please see Chapter 2.1 Configuration).


3.3.6 imgBase

"Image Base" tells the IMGOWL to pretend that the current image is located at some URL other than where the IMGOWL found it.
This method enables encrypted protection against source hacker, this parameter will be transfered with 2-level encryption.So that you can hide your real image path with setImgBase.

(see also: setImgBase() for non-template mode).

 Example
  {imgowl name="test" WMurl="images/mylogo.gif" WMleft="5" WMtop="10" WMalpha="60"}
<a href="http://www.propagator.net"><img src="images/sample01.jpg" width="400" height="300" alt="01"></a>
{/imgowl}

Warning:
Tag attributes is case-sensitive.


<Prev
setWaterMark
Next>
Tips and troubleshooting