Page 1 of 1

Watermark BBCode

Posted: 23 Jun 2010, 18:09
by van de werde
This BBCode add watermark to your images located on your server(not the attachments).
First time unpack root.rar and upload files(watermark.php and watermark.png=>Make your own watermark and replace it) to root.

BBCode :

Code: Select all

[watermark]{LOCAL_URL}[/watermark]
HTML Replacement :

Code: Select all

<img src="watermark.php?path={LOCAL_URL}">
Helpline:

Code: Select all

[watermark]imagefoldername/imagename[/watermark]
Example:

Code: Select all

[watermark]myimages/mypicture.jpg[/watermark]
If you need change the watermark position, open watermark.php and edit numbers in these lines:

Code: Select all

$startwidth = (($imagewidth - $watermarkwidth)/2); 
$startheight = (($imageheight - $watermarkheight)/2);
Demo

Re: Watermark BBCode

Posted: 23 Jun 2010, 18:34
by cisco007
so how do you know it works, or where did you find this at!?

Re: Watermark BBCode

Posted: 23 Jun 2010, 19:01
by van de werde
I tested it in localhost, here is live Demo
This same picture in [img] BBCOde->first picture and in [watermark] BBCode->second picture

Re: Watermark BBCode

Posted: 23 Jun 2010, 19:07
by cisco007
ok, looks nice!