Watermark BBCode

User submitted BBCodes
Let us see what You have
There is no support here! Only Read Access!
Forum rules
We dont add more BBCodes to our database, but feel free to share and support your own BBCodes here.
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
Locked
User avatar
van de werde
BBCoder I
BBCoder I
Posts: 4
Joined: 23 Jun 2010, 17:07

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
Attachments
root.rar
(4.83 KiB) Downloaded 236 times
Last edited by van de werde on 23 Jun 2010, 19:02, edited 1 time in total.
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Watermark BBCode

Post by cisco007 »

so how do you know it works, or where did you find this at!?
User avatar
van de werde
BBCoder I
BBCoder I
Posts: 4
Joined: 23 Jun 2010, 17:07

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
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Watermark BBCode

Post by cisco007 »

ok, looks nice!
Locked