vBulletin Mods

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

PB Watermark Album Images
by RLShare
29 May 2009 02:52

4 Attachment(s)
yeah, so I forgot that I updated this until I just came across it. So here she is updated and confirmed working on 3.7.x- 3.8.x

What does it do:
-Adds a watermark to all images uploaded to user albums and optionally profile pictures.

Features:
-Option to watermark album images
-Option to watermark profile pictures
-Can set whether to watermark thumbnails or just full size images.
-Can position watermark in 1 of 4 corners.
-watermark image gets resized when it is larger then the image to be watermarked
-Completely changed functionality so that it now adds the watermark at runtime and makes no more permanent changes to images.

Notes:
- If after you first install you do not notice a difference then clear your browser cache.
- It works with all 3 storage types for album images, but will not watermark thumbnails if you have the storage type set to 'Keep pictures in file system, but allow direct access to thumbnails'
- It only works for profile pictures that are stored in the database. I will attempt to see if I can create a workaround for this when I get a chance.
- If you want to watermark attachments there already exists 2 modifications that I have tested first hand and know work on the latest version of VB.
- This has been tested and confirmed working in VB 3.7.x as well.
- Again please clear your browser cache and test before you report problems to me.


Installation Instructions:
1. Create or Use the watermark.png I attached, and upload it to your forum root before anything. You will receive 'file does not exist' or no images will display(depending on the browser) if you do not first upload an image named 'watermark.png' to your forum root( The folder you have vbulletin installed in).
2. Import the 'product-pb_watermarkalbumimages.xml' file through the product manager.
3. Go to AdminCP->Vbulletin Options->Vbulletin Options->PB Watermark Settings and configure the settings.


Screenshots have been attached.

Megatr0n 29 May 2009 03:03

Will you later on include an option that can watermark all profile pictures/album pictures in one go?

RLShare 29 May 2009 03:04

This is done dynamically when the image is shown so it does watermark all profile pictures/album images now. The old version actually watermarked all of the images permanently at the point of them being uploaded, this one does not. It now does it dynamically when the image is being requested by the users browser.

smooth-c 29 May 2009 09:17

Quote:

-Completely changed functionality so that it now adds the watermark at runtime and makes no more permanent changes to images.
I just enabled this mod, whenever I save an image that contains my watermark it saves the image with the watermark on top?

merkaz 29 May 2009 12:20

JPEG only ?

TNCclubman 29 May 2009 13:41

If someone hotlinks your image on another site, does your watermark still display there?

RLShare 29 May 2009 18:19

Quote:

Originally Posted by smooth-c (Post 1819325)
I just enabled this mod, whenever I save an image that contains my watermark it saves the image with the watermark on top?

Um yeah, it is supposed to work in that manner. You are saving the image you see and the image you see has a watermark.

I think you are a little bit confused. When I say it makes no permanent changes that means it makes no permanent changes to the actual image files that are stored on your server or in your DB. Change the watermark image or turn the script off and notice the watermark will be changed or will no longer show up on the images.

Quote:

Originally Posted by TNCclubman (Post 1819445)
If someone hotlinks your image on another site, does your watermark still display there?

Yes

RLShare 29 May 2009 18:21

Quote:

Originally Posted by merkaz (Post 1819411)
JPEG only ?

Is this you reporting a problem or is this a question? It should work for all images, with the exception of animated gifs.

smooth-c 29 May 2009 20:59

Thanks RLShare for clearing that up :) great mod, clicked install and nominated! :)

Not sure if it's possible - would there be a way to link the watermark on the image?

For example -

User can click the watermark image (saying Click here for this site) and you can define the address within the options.

Sorry if i'm not making myself clear.

RLShare 29 May 2009 21:25

I understand what you are asking but it would defeat the purpose of this mod. I could overlay a watermark over the image that is linked but then people could still just hotlink directly to the image itself bypassing that. Its not possible to embed a link directly into an image.

smooth-c 29 May 2009 21:49

No problem. Sorry for putting you on the grill here. Do you have any plans to make an option to watermark attachments aswell as album images? That would be great.

I just tried donating btw but it said you're currently unavailable to accept donations.

Megatr0n 30 May 2009 01:17

RLShare, this works flawlessly on albums but nothing appears on profile pictures? I have enabled to watermark profile pictures but I don't see anything on none of my user's profiles.

Megatr0n 30 May 2009 01:46

Details, sent.

RLShare 30 May 2009 02:07

Quote:

Originally Posted by smooth-c (Post 1819783)
No problem. Sorry for putting you on the grill here. Do you have any plans to make an option to watermark attachments aswell as album images? That would be great.

I just tried donating btw but it said you're currently unavailable to accept donations.

lol.. No problem man, its my mod I expect questions about it. I have actually looked into watermarking attachements in the past when I first created this. I do eventually plan on adding that ability in. Its just right now I am really busy with some other things, when I get a spare few minutes I will attempt to add it as well as fix what Megatron just brought to my attention. Oh and I fixed the paypal link..lol

Ok and to note, as I mentioned to Megatron in a pm, I just noticed that when profile pictures are stored in the filesystem then it will not watermark the image. The problem comes from the fact that VB serves up a direct link to the images on the server when they are stored in the filesystem and are not processed first like album images are. I will make a note of it above in the original post and see if I can work up a fix when I get a free minute or two.

Megatr0n 30 May 2009 02:12

If you do not mind me making these suggestions for new features:

- I was wondering maybe an add option where we can also CENTRE the watermark on the pictures?
- An option to allow the user to choose whether his/her profile & album pictures can be watermarked?
- And, an option in the AdminCP to prevent an album picture from being watermarked that's been configured to be used as the user's backround otherwise you see Watermark logo scattered all over the page and it looks messy.


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

Powered by vBulletin® Version 3.8.14
Copyright © 2020, 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.