PDA

View Full Version : Watermark Attachments


bjhuang
16 Jan 2009, 09:59
Product: 1
Plugin: 2
Query: 0

tested only on the pure installation of vbulletin. install at your own risk to work with other attachment mods.

Feature

* put a logo (watermark) on your attachments.
* option to watermark only attachments after X days of creation. this helps your hotlinked images become free ads.
* option to watermark thumbnails but stop hotlinking to full size image (return a blank image instead)
* option NOT to watermark images for traffic from certain sites

Install

Step 1: import product-watermark.xml
Step 2: create and upload your own watermark logos. one for top and one for bottom.
Step 3: put the absolute path of watermark images into options. (/var/www/html/.../watermark.png)
Step 4 (optional) : if you don't want the attachments watermarked viewing on your own site or some other friend sites (like google image), just put the domains into "Skip Referer" option.

Not working
1. set the "Days Delay" option to 0
2. refresh your cache by press Ctrl-F5.
3. the watermark images should be in PNG format with transparent background.
4. check the "Safe Mode Temporary Directory" option. the directory should be writable.
5. only works for PNG, GIF, JPG attachments.
6. only works if the attachments are stored in the filesystem.
7. GD library should be installed.

Todo
* currently, we have to create a temp file while sending a watermarked attachment. It will be appreciate if anybody can help me to get rid of this.

http://www.backpackers.com.tw/forum/attachment.php?attachmentid=44542&thumb=1&d=1211814818


The most famous travel forum in chinese world - www.bbkz.com (http://www.bbkz.com/forum/)

Sweeks
16 Jan 2009, 10:17
Not working for me. The watermark doesnt show.
________
Gay Teen (http://www.++++tube.com/categories/640/teen/videos/1)

NGUYENDUCTRUONG
16 Jan 2009, 10:40
Please review ,Not working

logicuk
16 Jan 2009, 10:46
Does it perm watermark the files?

bjhuang
16 Jan 2009, 10:53
Please review ,Not working

try to set the "Days Delay" option to 0

horusbird
16 Jan 2009, 12:39
I installed and vbulletin view attach Lytebox function don't work :confused:
I unistall and view attach Lytebox don't work!!!:mad::mad::mad::mad::mad:

horusbird
16 Jan 2009, 12:46
what are the tables changed?

bjhuang
16 Jan 2009, 12:50
what are the tables changed?

no any db changes. it leaves nothing after you uninstall it.

horusbird
16 Jan 2009, 12:55
Ok, but the problem was born after uploading product-watermark.xml.
What may have happened?

Thank you

sorry for my english i am italian ;-)

bjhuang
16 Jan 2009, 13:02
Ok, but the problem was born after uploading product-watermark.xml.
What may have happened?

Thank you

sorry for my english i am italian ;-)

i'm not sure. i never use Lytebox. this mod won't modify any file or db tables. maybe you should try to clear your browser cache or press Ctrl+F5. attachements are always cached.

horusbird
16 Jan 2009, 13:06
No the problem is for all my users....

it is possible that the problem is in the templates modification?

bjhuang
16 Jan 2009, 13:09
No the problem is for all my users....

it is possible that the problem is in the templates modification?

no, there are no template modifications.

MmS1
16 Jan 2009, 13:13
it's working 100% with out anY change from me

http://www.md.ly/club/attachment.php?attachmentid=1869&stc=1&d=1232114333
installed

Leo Brazil
16 Jan 2009, 13:15
Question, does it watermak also album pics ?

MmS1
16 Jan 2009, 13:16
I installed and vbulletin view attach Lytebox function don't work :confused:
I unistall and view attach Lytebox don't work!!!:mad::mad::mad::mad::mad:

it's woke for me

try with other Explorer

Adem GENĒ
16 Jan 2009, 13:24
Thanks Installed

Suggestion
Make for vBulletin albums

horusbird
16 Jan 2009, 13:25
it's woke for me

try with other Explorer

The same problem is in Firefox, IE, in this computer in other computer and for all users!

When I click on a thumbnail appears a gray background and remains on standby

xmobile
16 Jan 2009, 14:56
what format to use in "Path of top watermark"?:
images/logo.png or http://mydomain/forums/images/logo.png

Sweeks
16 Jan 2009, 16:17
I am sure some of our attachments are no longer opening properly too and I have never witnessed this prior to installation and still happens on uninstallation.
________
Amateur Adult Video (http://www.++++tube.com/)

t.uzuner
16 Jan 2009, 22:16
thats greats mod.
selected motm nomination

bjhuang
16 Jan 2009, 23:24
what format to use in "Path of top watermark"?:
images/logo.png or http://mydomain/forums/images/logo.png

/var/www/html/forum....

bjhuang
16 Jan 2009, 23:32
I am sure some of our attachments are no longer opening properly too and I have never witnessed this prior to installation and still happens on uninstallation.

this mod watermark attachments on the fly. it won't write or modify anything back to the database. maybe you should check your plugins to see if there are other mods hooked to attachment_display or attachment_complete. if they write data back to the db after watermarked attachments were created, there is a probability causing some problems.

netcommander
17 Jan 2009, 07:37
can we change watermark position ? is it possible

denman75
17 Jan 2009, 08:57
is not working ,thats to bad

bjhuang
17 Jan 2009, 10:23
can we change watermark position ? is it possible

well, it's not hard with a little coding PHP coding knowledge.

Try to modify these lines in plugin "Watermark Attachments - Display":



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

glennybee
17 Jan 2009, 10:42
Nice mod, tagged for later. :)

vemkeit
17 Jan 2009, 14:38
Thanks nice mod... it works great in Firefox and IE 7

devilsown
18 Jan 2009, 18:34
I am not having any luck getting this to work.
my path is set to /var/www/images/watermark.png
which is how i find it in ftp client.

i have the image on my server at/ http://www.grandprixforums.net/images/watermark.png

i have my images stored in the file system.
this is my image. http://www.grandprixforums.net/attachments/f35/1312d1232305436-test-2_bar_controller_s.jpg

bjhuang
19 Jan 2009, 00:43
this mod add watermarks on the fly. it won't modify your images. you browse the image with a direct link to the jpg, and of course there is no watermark on it.


I am not having any luck getting this to work.
my path is set to /var/www/images/watermark.png
which is how i find it in ftp client.

i have the image on my server at/ http://www.grandprixforums.net/images/watermark.png

i have my images stored in the file system.
this is my image. http://www.grandprixforums.net/attachments/f35/1312d1232305436-test-2_bar_controller_s.jpg

sleepyboy2004
19 Jan 2009, 07:55
Not working for me :(

elmark
19 Jan 2009, 10:34
It`s Work.
Thanks!

I have ver. 3.7.4 PL

BY

Marko

spyhidden
19 Jan 2009, 13:41
Working good thx

sleepyboy2004
20 Jan 2009, 14:14
Any tips to make this work?? Wont work on my forum, or my test forum either.. :(

Leo Brazil
20 Jan 2009, 14:20
Are your images on file system or database ?

This mod will only work for those with images on filesystem.

sleepyboy2004
20 Jan 2009, 15:05
Are your images on file system or database ?

This mod will only work for those with images on filesystem.

I think I'm a noob when it comes to that :(. My images are on the the forum directory's. /forum/images/misc/watermark.png
Hope that makes sense!

WreckRman2
21 Jan 2009, 05:29
Does it permanently watermark the image?

dmknights
22 Jan 2009, 00:29
followed the instructions, but does not work on 3.8.0

ComputerVitals
22 Jan 2009, 04:11
Lightbox option on here,
Watermark doesn't work.

myown
22 Jan 2009, 14:59
looks interesting ... sure will be installing

CrashfAB
22 Jan 2009, 21:17
So does this not work on 3.8?

I am in dier need of something like this...

smooth-c
23 Jan 2009, 10:45
Can someone please answer the question that's been asked, does this permanently watermark images? I see it does them on the fly but if I uninstall this app, will the watermark remain?

smooth-c
23 Jan 2009, 11:19
Okay, now everytime I upload an image to my album I get an error;

Connection Interrupted

The document contains no data.

The network link was interrupted while negotiating a connection. Please try again.

Fair enough this is at my own risk but what the hell is going on?

bjhuang
23 Jan 2009, 15:13
no, nothing changed after you uninstall it.

Can someone please answer the question that's been asked, does this permanently watermark images? I see it does them on the fly but if I uninstall this app, will the watermark remain?

bjhuang
23 Jan 2009, 15:21
the only two hooks used by this mod are attachment_complete and attachment_display. that means no code from this mod will be ran while uploading somehing to the album.

seems like a connection problem. check your configuration of php and web server.

Okay, now everytime I upload an image to my album I get an error;

Connection Interrupted

The document contains no data.

The network link was interrupted while negotiating a connection. Please try again.

Fair enough this is at my own risk but what the hell is going on?

The4um
24 Jan 2009, 00:16
where should I upload my logo??? my forum is at my.forum.xx/forum

rob01
25 Jan 2009, 07:55
what path you should add?

arabwit
11 Feb 2009, 20:00
thes not work

thnx

Manic Mechanic
14 Feb 2009, 22:27
How do I save my image.? The address of my forum. Sorry I have gone brain dead and need help.

geevest.com
21 Feb 2009, 20:16
not work for me using vb.3.8.1

The4um
22 Feb 2009, 00:01
Not work at all

trickfly
22 Feb 2009, 00:05
please fix this mod! it will be so nice to have!

kartik786
22 Feb 2009, 08:03
is it only for images? can you watermark other files too ? like .doc and .pdfs?

ARB4HOSTING.COM
23 Feb 2009, 00:46
Not work at all

geevest.com
26 Feb 2009, 07:44
need help and updated.

citizenkane
26 Feb 2009, 16:47
failure is not in albums, or add. Unable to display pictures, please help!!!

dxflw
28 Feb 2009, 16:23
Works not for me.
My board is 3.8.1

Install

Step 1: import product-watermark.xml[yes]
Step 2: create and upload your own watermark logos. one for top and one for bottom.[yes]
Step 3: put the absolute path of watermark images into options. (/var/www/html/.../watermark.png)[yes]
Step 4 (optional) : if you don't want the attachments watermarked viewing on your own site or some other friend sites (like google image), just put the domains into "Skip Referer" option.[yes]

Not working
1. set the "Days Delay" option to 0[yes]
2. refresh your cache by press Ctrl-F5.[yes]
3. the watermark images should be in PNG format with transparent background.[yes]
4. check the "Safe Mode Temporary Directory" option. the directory should be writable.[yes]
5. only works for PNG, GIF, JPG attachments.[yes]
6. only works if the attachments are stored in the filesystem.[yes]
7. GD library should be installed. [i dont know what is this]

citizenkane
03 Mar 2009, 22:19
man this is the error file does not show !!!!


error :http://www.xxxxx.com/attachment.php?attachmentid=83&d=1236122232

citizenkane
03 Mar 2009, 22:24
Works not for me.
My board is 3.8.1

Install

Step 1: import product-watermark.xml[yes]
Step 2: create and upload your own watermark logos. one for top and one for bottom.[yes]
Step 3: put the absolute path of watermark images into options. (/var/www/html/.../watermark.png)[yes]
Step 4 (optional) : if you don't want the attachments watermarked viewing on your own site or some other friend sites (like google image), just put the domains into "Skip Referer" option.[yes]

Not working
1. set the "Days Delay" option to 0[yes]
2. refresh your cache by press Ctrl-F5.[yes]
3. the watermark images should be in PNG format with transparent background.[yes]
4. check the "Safe Mode Temporary Directory" option. the directory should be writable.[yes]
5. only works for PNG, GIF, JPG attachments.[yes]
6. only works if the attachments are stored in the filesystem.[yes]
7. GD library should be installed. [i dont know what is this]


You've done all that well, but they are not stupid, my friend, we do not need explanation but again I have stated above, the error a different solution, please call thanks

bayigurita
30 Mar 2009, 17:30
works fine, but how to make only the watermark shown without the darker area?

Magnumutz
05 Apr 2009, 02:27
Doesn't show the watermark, weird!

mindhunter77
23 Apr 2009, 02:49
Is there a way to get this to ignore .gif, it seems to want to mess up animated gifs

dutchbb
26 Apr 2009, 01:20
Hello,

It seems the watermark is not added when the image is not very wide (lesser width than watermark?). How can we make it always add the watermarkt please?


Great hack otherwise.

vithorius
26 Apr 2009, 01:55
What a GREAT idea!!!

I still use vB 3.6.x Will this hack work on board?


Thank you!

kellyandmark04
09 May 2009, 02:15
AWESOME IDEA!

Unfortunately it doesn't work for me either.

mindhunter77
24 May 2009, 06:03
I'm worried about the load this my place on a large forum, anyone notice? Why not just perm apply the watermark at upload, strangly enough, there does not seem to be a mod that does that.

z0diac
26 May 2009, 19:10
Installed and WORKING on v3.7.4

Question: what are these options for? :

"Stop hotlinking to full size image"

"Skip traffic from some referers. Separate by commas."

^^ this last one, an attached image wouldn't even show up on another site because the user has to be LOGGED IN in order to view it anyway, right? So I'm not sure how another site could even display an attachment on their site in the first place ( ?? )

Shots of this modin action :
http://forum.icedogfans.com/showthread.php?t=3438

(note - the files in ^^ that url at the top of the page, the text in the bottom-middle of the first set of images was already hardcoded into them). The URL at the bottom RIGHT of each image is what this mod has added.

**ALSO**

For people bulk-downloading images off your site using programs such as BID (Bulk Image Downloader) - the watermark WILL be on the downloaded image. (which is excellent IMHO) Thumbs up on this mod!

silentdub
30 May 2009, 03:48
I can't seem to get it working.

I think it has to do with the patch to the .png file.

not sure if I should add the /home in the path or not?

I also tried to put the full http://.........../watermark.png and that didn't work either.

Any ideas?

GrendelKhan{TSU
30 May 2009, 03:52
woot! been waiting for this...

REQ: is there a way to make it USERGROUP dependent? (make exceptions).

there are sometimes when its not appropriate for us to watermark (like a signature) or contest. And I want to have an option for some ppl or usergroups to be excluded from the watermark.


great work.

z0diac
01 Jun 2009, 16:18
WARNING with this add-on:

- STOPS YOUR TIMES VIEWED COUNTER from working
.. at least it does this when installed on v3.7.4

bjhuang
05 Jun 2009, 19:04
attachment will not be watermarked if the width of attachment image is smaller then the width of watermark image.

Hello,

It seems the watermark is not added when the image is not very wide (lesser width than watermark?). How can we make it always add the watermarkt please?


Great hack otherwise.

bjhuang
05 Jun 2009, 19:13
my own forum gets 5M+ attachment hits per month. the load increase is minor.

watermarking attachments on upload is not an option because you do not own the image and you do not have the right to put your own mark on it.

I'm worried about the load this my place on a large forum, anyone notice? Why not just perm apply the watermark at upload, strangly enough, there does not seem to be a mod that does that.

mindhunter77
05 Jun 2009, 19:35
watermarking attachments on upload is not an option because you do not own the image and you do not have the right to put your own mark on it.

That's not the case on my forum, anyway...

Any idea why the mod would stop working when using this,

http://www.vbulletin.org/forum/showthread.php?t=207566

bjhuang
08 Jun 2009, 00:18
bug fix:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



WARNING with this add-on:

- STOPS YOUR TIMES VIEWED COUNTER from working
.. at least it does this when installed on v3.7.4

z0diac
08 Jun 2009, 07:55
^^ I can verify this bug-fix works PERFECTLY :) When you hover over a thumbnail the "times viewed" counter is now updated properly again. Great work !

silentdub
16 Jun 2009, 15:55
It is working for me, but only on some pictures.
some are ok, others are not.

Any idea why?

For example:

http://www.mk1dubz.com/forums/showthread.php?p=1054#post1054

maxpda
17 Jun 2009, 08:49
chinese
Thank you

xony
19 Jun 2009, 12:01
You can automatically include the date?

Thanks.

silentdub
20 Jun 2009, 16:29
Some jpg pics do NOT show the water mark, it appears to be random.

Anyone know why?

bjhuang
26 Jun 2009, 05:09
maybe the width of attachment is smaller than the width of the watermark image.

Some jpg pics do NOT show the water mark, it appears to be random.

Anyone know why?

z0diac
28 Jun 2009, 18:18
Ack! It's watermarking my thumbnails!!

Is there some extra code I can add somewhere so that it won't even CHECK to watermark when displaying threads?

My forum is picture-based (thousands of thumbnails, some posts have hundreds each post) and for the wide thumbnails, this mod is sticking a watermark on them! Aarrrrhh!!

example: http://forum.icedogfans.com/showthread.php?p=47038#post47038

Most of my thumbnails aren't ^^ that wide, I just created that one custom to show what's happening.

Turning this mod OFF while displaying thumbnails would be best as it would decrease # of queries when showing thumbnails and would really increase speed. I'd like to have this mod active ONLY when a user clicks on a thumbnail to display the full size image.

Another way would be to have mod active only when image width is greater than... [enter pixels]

A quick fix would *greatly* be appreciated. 'Will even pay!

z0diac
05 Jul 2009, 20:54
(is this thread still monitored by the author? If so please read ^^ above post. )

z0diac
12 Jul 2009, 17:01
GRRR. Mod uninstalled as it's watermarking wide thumbnails, and this thread seems to be dead...

t.uzuner
15 Jul 2009, 17:01
yes me too same problem. i dont want show thumbnails watermark. please update mod.

z0diac
15 Jul 2009, 17:32
yes me too same problem. i dont want show thumbnails watermark. please update mod.

I do believe this mod has been abandoned. I've been asking for help/comments in this thread for ages and the author is nowhere to be found.

I'm looking into paying a coder to mod it so that the mod won't run unless the image is at least X pixels wide.

elwachiman
12 Nov 2009, 13:29
does not work is wrong no further information please thanks

Mopar1973Man
10 Dec 2009, 14:43
I got it to work and understand how to do it...

You need the absolute path to the warkmark.png file. So this might require contacting your web host and find out what your absolute path is. Relative path will not work! Like if you installed file is at /forum/watermark.png and that's what you typed then its wrong and won't function... Like I said you NEED the ABSOLUTE PATH...

interfx
12 Dec 2009, 19:34
Anyone have this working with VB4? Or anyone considering updating to VB4?

reimic
12 Jan 2010, 17:19
does not work. could somebody update it for 4.0?

HondaATC
04 Mar 2010, 22:17
Anyone have this working with VB4? Or anyone considering updating to VB4?


http://www.vbulletin.com/forum/project.php?issueid=36738

I've got a feature request in to have watermarking added as native to a future version of vbuletin. Feel free to comment on it, Dev's might see/understand the interest in having it.

kevin2008
08 Mar 2010, 08:47
Yes it is a need for protecting works, it must also be compatible with the extensions: png, to lie, tiff, jpg they is most current.

Thank you by advance with all the coders who will want to work well on this project

dutchbb
08 Mar 2010, 11:53
Requests:

- watermarks separate from image, so if changed old images show new watermark

- exclusion for forum IDs

- only add watermark if dimensions are greater than x and smaller than y

- add watermark on images hotlinked in image tags

Mopar1973Man
15 Aug 2010, 22:15
I love to see this mod re-done for the VB4 series...

I've enjoyed it while I was at 3.84... I've also help other Admins install this mod on there site too...

Hopefully the author checks and sees...:D

FleXy
17 Aug 2010, 18:47
show thums - enabled.

dowes not increase attachments views counder for me :-(

Mopar1973Man
23 Aug 2010, 01:29
Ok...

I got this mod to work on vBulletin 4.0.6 it works just fine...

1. The watermark image can be either PNG 8 or a PNG 24.
2. The path to the image has to be a full path.

Then the water mark is added at post time...

http://www.vbulletin.org/forum/attachment.php?attachmentid=121197&stc=1&d=1282529515

sulasno
23 Aug 2010, 02:20
what's the dimensions of the watermark ? will it be resize automatically?

Mopar1973Man
01 Sep 2010, 02:42
what's the dimensions of the watermark ? will it be resize automatically?

Watermark image can be any size you wish but be reasonable. As for re-sizing the watermark no it not altered. Also it will not watermark small images (attachments). Also it will not watermark linked (offsite) images.

But just to update the thread...

* No you don't have to modify the script at all works as is.
* Just make sure you get a PNG image for a watermark and upload it to your server.
* Make sure you use a full path to the watermark image in the control panel.
* Yes it watermarks both gallery and the attachments both. (No control of it!)

This mod does work on vB 4.0.6 and doesn't require any editing...

Frank T
05 Sep 2010, 15:37
I tried this with 4.0.6 and am not having much success. Every time it adds a watermark, it also creates a shaded bar across the entire top/bottom. Here's an example. This image only has a completely transparent background and no text whatsoever. If you look at the top and bottom of this image, you can see how the color shades are darker The transparaent image is 400x50 pixels.

Mopar1973Man
05 Sep 2010, 20:27
Normal the way the script was written... Mine does the very same thing but I sure if someone has a bit of PHP experience could change the script to quit that...

Breakthru
28 Sep 2010, 19:20
Confirmed working on 4.0.7

To get rid of that light gray background edit the plugin, Plugin Manager, Watermark Attachments - Display, attachment_display

You have to change the 100 to 127 like below...




Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Mopar1973Man
28 Sep 2010, 21:37
Right on I'm going to add that mod to my setup... Thank you! :up:

jluerken
07 Oct 2010, 15:31
Requests:

- watermarks separate from image, so if changed old images show new watermark

- exclusion for forum IDs

- only add watermark if dimensions are greater than x and smaller than y

- add watermark on images hotlinked in image tags

I sign this request, especially to exlude some forums from watermarking would be nice.

VBUsers
16 Oct 2010, 06:34
i installed this but dont know why its not showing. i did everything in the install.

angeljs
16 Oct 2010, 09:30
This mod also broke my highslide attachment viewing, as it has with other users. Same problem even with this mod un-installed. :(

furnival
12 Nov 2010, 15:59
Doesn't work in vb 3.8.2

RedPoint
27 Mar 2011, 21:31
not work on my vb 4.1.2

Mopar1973Man
27 Mar 2011, 23:42
Still working fine in vB 4.1.0 :D

http://forum.mopar1973man.com/attachment.php?attachmentid=1538&d=1281643245

Still working fine in vB 3.8.5 :D

http://forum.tractorfarmandfamily.com/attachment.php?attachmentid=7664&stc=1&d=1281967539

Still working in vB 3.8.6 :D

http://idahoturbodiesels.com/vb/attachment.php?attachmentid=3409&stc=1&d=1299507364

Goodfather
29 Mar 2011, 17:21
Still working fine in vB 4.1.2

http://razbibriga.net/attachment.php?attachmentid=205&d=1266139985

indreksi
21 Apr 2011, 11:03
Looks like its dont work in vB 4.1.3 :erm:

8thos
14 May 2011, 18:49
Interesting. Can't wait to test this out. Does it work with Pictures and Album Gallery?

Mopar1973Man
17 Aug 2011, 03:20
Well gang... vB 4.1.4 or vB 4.1.5 kills the plugin it no longer functions...

Interesting. Can't wait to test this out. Does it work with Pictures and Album Gallery?

No it doesn't work in those areas only attachments...

JohorBahru
28 Aug 2011, 17:57
Hi, may i know who does "Stop hotlinking to full size image" mean for?
isn't the watermark is on the full size image as well?

Internetcafe
08 Feb 2012, 08:27
Still working on 4.1.10 :up:

Bulent Tekcan
04 Mar 2012, 07:05
Not work 4.1.11

stained
23 Nov 2012, 13:16
If you get the path to your watermark files right it definitely works on 4.1.11.

Does anyone know how to move the bottom watermark over to the left? Post #25 gives a tip but changing those numbers changes the colour of the watermark background as far as I can see.

RyanFabbro
25 Nov 2012, 03:51
can someone who has this working screenshot their settings for me i have...

http://www.vbulletin.org/forum/attachment.php?attachmentid=142492&stc=1&d=1353818694

http://www.vbulletin.org/forum/attachment.php?attachmentid=142493&stc=1&d=1353818694

in those first options when i turn on "Safe Mode Upload Enabled"

i get the following error when i upload a file and yes i have a tmp directory that is writable
http://www.vbulletin.org/forum/attachment.php?attachmentid=142494&stc=1&d=1353819047

RyanFabbro
25 Nov 2012, 05:50
idk why or how but is magically started working =)

fxdigi-cash
22 Jan 2013, 14:27
this is what I was looking for..... finally got it.
Thanks a lot. works great without any issues on vb.4.2 pl3

:)