Watermark BBCode

User submitted BBCodes
Let us see what You have
Forum rules
We dont add more BBCodes to our database, but feel free to share and support your own BBCodes here.

[textarea]Remember that it is not allowed to use {TEXT} inside the html tags!!!
It causes a serious security risk to your board and users.
Like this: <div style="{TEXT}">{TEXT}</div>
Green = OK - Red = forbidden[/textarea]

Watermark BBCode

Post 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
You do not have the required permissions to view the files attached to this post.
Last edited by van de werde on 23 Jun 2010, 17:02, edited 1 time in total.

Re: Watermark BBCode

Post by cisco007 »

so how do you know it works, or where did you find this at!?

Re: Watermark BBCode

Post 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

Post by cisco007 »

ok, looks nice!