vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=263804

Watermark Generator
by Disasterpiece
18 May 2011 02:17

6 Attachment(s)
Quick Info

This mod adds a watermark to album and attachment images.
The watermark is customizable via image files or specified text.
Processed images are cached and the original files remain untouched, so you can modify or remove the watermark anytime you want.


Features

- Intelligent Caching
- Uses standard vBulletin methods, therefore no file modifications necessary
- Settings-Preview with a sample image in Adminpanel
- Generative plugin behaviour, works with most other mods which use the same hooks or use attachment images elsewhere

Installation


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Changelog

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Additional Info

The Mod is currently in BETA. This means, that we tested it on a test environment (vb 4.0.x to 4.1.3) but has not yet undergo excessive stress test.
Keep an eye out for updated versions until the final release!
If you encounter any bugs, missing or misplaced features, let us know!

F.A.Q

- I don't see changes in my live images!
> To see changes on the image files you have to clear your browser's cache!
In firefox it's enough to force a fresh reload via STRG+F5 and on other browsers STRG+F5 or SHIFT+F5 should work.
If you don't perform this step, your browser will show the old cached version and maybe the watermark won't show or changes won't apply.

- My png/gif watermark isn't transparent, instead I get a black background!
> PNG-8 is known for having transparency problems, GIF in some cases as well.
Fall back to PNG-24 with Alpha channel (all modern image tools should be able to save as PNG-24)
If you have trouble creating a working png-24 with alpha channel, you can send me a PM with a link to your watermark and I'll convert it to png-24 for you.

- I have trouble with special characters or non-latin charactersets!
> The addon is using standard php functionalities for the text. If for any reason you have trouble with special chars, I suggest using a transparent png-24 with the text from an external image tool instead.

Support / Branding

We provide quality vbulletin software modifications for zero costs. To help our mod to be well-known, a backlink is added to your forum footer by the plugin, where the plugin is used in any way.
You must not remove the copyright/backlink code!
However, if you like to support us, you are allowed to remove the footer note with a small donation (10$ minimum).
If you choose to do so, we'll contact you via the email provided by paypal with instructions on how to remove the footer note.
A link to paypal donation service can be found on the top right area of this post.

Feel free to contact an author of the mod if you have any questions or suggestions.

Dr.osamA 18 May 2011 04:43

thank you bro

tested ,but for some unknown reason does not work
- attacment not showing
- not support Arabic incoding
- when i use Watermark Cache Management that give me => cant find phrase


BRB

TEMPESTADE 18 May 2011 09:58

tested ,but for some unknown reason does not work

inigo 18 May 2011 11:33

Problem with the png image, it looks completely black the rectangule of the image in the watermarked images.

v 4.1.2.

I am trying to test with text, but I prefer image watermark. with text, is it possible to put a % of the size of image instead of the size of the text? (because perhaps it was 300 px image and 1024 px other, so itīs difficult to give only one text size.

Thanks, great mod,

Disasterpiece 18 May 2011 14:50

1 Attachment(s)
@Dr.osamA:

Did you test the settings via preview first? Is the watermark rendered on the sample image?
Try the steps below so we can find out why your attachments aren't displayed.

@TEMPESTADE, inigo:

Is it possible that you don't have the GD lib installed?


To all others where the attachment doesn't show:
You can upload the testattachments.php file from this post into your forum root dir.
Then navigate to the file via browser and add the parameter i1 to it so it looks like this:

http://someforum.tld/forum/testattachments.php?i1=13

Replace 13 with any image id which is big enough so the watermark should be displayed!
Now if any errors occur, the script will output them, other than the attachment.php which disables error reporting completely. This way it's easier for me to pinpoint the problem.

inigo 18 May 2011 15:26

The GD lib is correctly running (I use it in vbgallery too:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The image appears in the correct place, with correct size, but is a black rectangule. Any other idea?

Thanks,

Disasterpiece 18 May 2011 15:44

1 Attachment(s)
Quote:

Originally Posted by inigo (Post 2197155)
The GD lib is correctly running (I use it in vbgallery too:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The image appears in the correct place, with correct size, but is a black rectangule. Any other idea?

Thanks,

Did you use a .png or a .gif for the watermark?
Did you set the alpha channel correctly?
If png: Is it a 8-bit png or a 24-bit png?

I attached a test image from which i know that the watermark generator can display. Can you test it out and tell me if it's applied correctly or has a black background too?

billstelling 18 May 2011 15:48

1 Attachment(s)
Awesome mod! Thanks..
Attachment 129212

working on everything but cms article pages. works on promoted articles but mot ones created just for the front page and not originating from the forum.
cms/content.php/

inigo 18 May 2011 16:58

I have been testing, and the problem appears to be the PNG8, because the same image saved as PNG-24 is working.

Your test image was ok, but with no trasparency.

So the problem is solved, PNG-24 working, but I have to do more tests, because there are some of the images without watermark,... and I think is because the browser's cache.

so I will tell you when I can test deeply,

Thanks,

Stefan118 18 May 2011 18:40

Works great in vB 4.1.3!!!
Thanks!

Been looking for this for over 2 years now

Stefan118 18 May 2011 21:06

1 idea...
Is it possibe to also watermark the INLINE pictures added to a post?

As far as i can see, only the attached pictures are watermarked.
I have now disabled inline attachements on my forum.

Disasterpiece 19 May 2011 12:04

Quote:

Originally Posted by inigo (Post 2197207)
I have been testing, and the problem appears to be the PNG8, because the same image saved as PNG-24 is working.

Your test image was ok, but with no trasparency.

So the problem is solved, PNG-24 working, but I have to do more tests, because there are some of the images without watermark,... and I think is because the browser's cache.

so I will tell you when I can test deeply,

Thanks,

Yes, PNG-8 seems to be a problem right now, I'll look into it.
Sadly, the php functions for image prcessing are limited, so its hard to find advanced tools without relying on external libaries not everyone has.

For now, PNG-24 should work with full transparency, so I recommend to use it, also for the case if you run into charset issues with non-latin characters.

Quote:

Originally Posted by Stefan118 (Post 2197286)
1 idea...
Is it possibe to also watermark the INLINE pictures added to a post?

As far as i can see, only the attached pictures are watermarked.
I have now disabled inline attachements on my forum.

I was sure that the inline post uses the same attachment method. Which inline-images do you mean?
Those where people simply attach an image, grab the url to the fullsize picture and add that to the post?
Or do you mean linking images from 3rd party sites?


Quick note: To see changes on the image files you have to clear your browser's cache!
In firefox it's enough to force a fresh reload via STRG+F5 and on other browsers STRG+F5 or SHIFT+F5 should work.
If you don't perform this step, your browser will show the old cached version and maybe the watermark won't show or changes won't apply.

goxy63 19 May 2011 18:56

How this affects images that user chooses as background image for his profile?

Stefan118 19 May 2011 19:01

Quote:

Originally Posted by Disasterpiece (Post 2197496)
I was sure that the inline post uses the same attachment method. Which inline-images do you mean?
Those where people simply attach an image, grab the url to the fullsize picture and add that to the post?
Or do you mean linking images from 3rd party sites?


Quick note: To see changes on the image files you have to clear your browser's cache!
In firefox it's enough to force a fresh reload via STRG+F5 and on other browsers STRG+F5 or SHIFT+F5 should work.
If you don't perform this step, your browser will show the old cached version and maybe the watermark won't show or changes won't apply.

At the folowing link (second post) you can see what i ment with inline attachments.

http://www.papegaaienforum.nl/showth...ich-aan-u-voor.

Disasterpiece 19 May 2011 19:44

Quote:

Originally Posted by goxy63 (Post 2197649)
How this affects images that user chooses as background image for his profile?

That is a good question, didn't think of that. I'll check it out and update if necessary.

Quote:

Originally Posted by Stefan118 (Post 2197652)
At the folowing link (second post) you can see what i ment with inline attachments.

http://www.papegaaienforum.nl/showth...ich-aan-u-voor.

Well, they're external links, which means these images aren't hosted on your server. So there is no need to (and in fact, you shouldn't) add a watermark to it, because they aren't "yours".


All times are GMT. The time now is 17:18.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.