Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Attached Image Watermarking PLUS Guest Viewing of Thumbnails Details »
Attached Image Watermarking PLUS Guest Viewing of Thumbnails
Mod Version: 1.00, by ConqSoft (Member) ConqSoft is offline
Developer Last Online: Mar 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (18 votes - 5.00 average) Installs: 208
Released: 12 Mar 2007 Last Update: 13 Mar 2007 Downloads: 1617
Not Supported Uses Plugins Additional Files  

I had been looking for these two options for quite a while, and was finally able to hire Brian (of vBadvanced) to write them for me. Since a lot of people have been looking for this, I have decided (with Brian's permission) to release this as a free, unsupported, modification.

This modification will allow you to specify a watermark image that will be overlayed over any attached JPG or PNG file on your site in real time, as the image is displayed. NO PERMANENT CHANGES ARE MADE TO ANY OF YOUR ATTACHMENTS. You can also exclude specific forums and usergroups from seeing the watermark.

As an added bonus, he included the ability to allow guests to see attached image thumbnails, while still requiring them to register to see the full size attachments. (Make sure you have your Unregistered / Not Logged In usergroup set to NOT have access to download attachments.)

PLEASE CLICK INSTALL so that maybe Jelsoft will include these as built-in features in a future version.

Notes/Troubleshooting:
  • Your server needs to have GD2 installed.
  • Attachments must be stored in the file system. Database storage of file attachments will not work.
  • Make sure you use the full PHYSICAL path to your watermark image.
  • Make sure you have a low number in the width/height setting. (I use 200, since my watermark image is 150 pixels wide.)
  • If you have previously viewed the attached image, your browser may cache it, so you will need to clear your browser cache or force a hard refresh (CTRL-F5) while viewing the image to get the new watermarked version.


Well, on to the modification:

=============================================
STEP 1:
Since the resulting file contains too much vBulletin code, I am unable to include it with this modification. So, the first step is to copy vBulletin's attachment.php to a file named attachment_watermark.php. Then, edit attachment_watermark.php, making the following changes.

=============================================
STEP 2:
You need to delete a LOT of lines from the top of the file. Find this line...

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

...and delete everything ABOVE it other than the <?php line at the top of the file.

Your attachment_watermark.php file should begin with this code when you've completed this step:

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


=============================================
STEP 3:
Find this line of code:

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

REPLACE with this code:

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


=============================================
STEP 4:
Find these lines of code:

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

Add this code BELOW the lines referenced above:

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


=============================================
STEP 5:
Find this line of code:

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

REPLACE with this code:

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


=============================================
STEP 6:
Find this line of code:

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

REPLACE with this code:

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

=============================================
STEP 7:
Find this line of code:

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

REPLACE with this code:

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


=============================================
STEP 8:
Save and upload attachment_watermark.php to your forum root directory.


=============================================
STEP 9:
Install the product-attach_watermark.xml Product via the vBulletin AdminCP Product Manager.


=============================================
STEP 10:
Configure the options at AdminCP -> vBulletin Options -> Attachment Watermarks. All fields should be self-explanatory.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	attachment_watermark.gif
Views:	2453
Size:	77.0 KB
ID:	61784   Click image for larger version

Name:	mountairy_102205%20247.jpg
Views:	3087
Size:	63.4 KB
ID:	61785  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Add image fade effect to attached thumbnails Ntfu2 vBulletin 3.5 Template Modifications 19 27 Aug 2007 05:54

  #76  
Old 19 Apr 2007, 11:52
adrianus adrianus is offline
 
Join Date: Sep 2006
Made changes for gif and it works perfectly!

Thanks.
Reply With Quote
  #77  
Old 23 Apr 2007, 19:19
tekstylez tekstylez is offline
 
Join Date: Aug 2006
is there anyway to watermark bbcode images?
Reply With Quote
  #78  
Old 26 Apr 2007, 04:54
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
finally got around to redoing the steps, and reuploading the product.

Everything works perfect again, thanks for the great mod!
Reply With Quote
  #79  
Old 26 Apr 2007, 17:20
bjhuang bjhuang is offline
 
Join Date: Jul 2006
how to watermark hotlinked images only?
Reply With Quote
  #80  
Old 26 Apr 2007, 17:21
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
You can't watermark images that are not on your server.
Reply With Quote
  #81  
Old 27 Apr 2007, 06:51
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Originally Posted by Ntfu2 View Post
You can't watermark images that are not on your server.
How can I use watermark on our server without vBulletin attachment system.For example I need watermark ../testimages/ directory on my server.

Any idea for that ?
__________________

Reply With Quote
  #82  
Old 27 Apr 2007, 09:02
bjhuang bjhuang is offline
 
Join Date: Jul 2006
i mean how to watermark only the attachments on my server that have been linked by other sites. i want to keep the images as it is when browsing by my members. but if the images were "stolen", i want them to be watermarked.

Originally Posted by Ntfu2 View Post
You can't watermark images that are not on your server.
Reply With Quote
  #83  
Old 27 Apr 2007, 13:05
bjhuang bjhuang is offline
 
Join Date: Jul 2006
to support gif


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

Reply With Quote
  #84  
Old 01 May 2007, 18:28
datarecall datarecall is offline
 
Join Date: Aug 2006
worked excellent quick note to people that are trying this
dont use a transparent gif for your water mark you will get a bunch of errors
i put my watermark in the root directory because for some reason i got errors when putting it into images/watermark.png

thanks for the mod it works great.
Reply With Quote
  #85  
Old 19 May 2007, 18:13
Pottsy Pottsy is offline
 
Join Date: Sep 2006
A while ago I posted about poor image quality with the watermark on.

I fixed this by finding this in attachment_watermark.php:


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



and replacing it with this:


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

The 93 is the quality of the output, with 100 as max and 50 as grotty.

HTH
Reply With Quote
  #86  
Old 19 May 2007, 18:14
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Default quality is 75, and is usually fine.
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **
Reply With Quote
  #87  
Old 20 May 2007, 14:01
Pottsy Pottsy is offline
 
Join Date: Sep 2006


Those are a 1:1 crop of a detail of a pic uploaded and watermarked at the different quality levels. I saved this compilation at 100% quality to try to minimise the effects of another jpg conversion, but it shows the issue I was having. I was getting complaints...
Reply With Quote
  #88  
Old 14 Jun 2007, 16:08
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
I don't really see much of a difference between the 75 and the 93. *shrug*
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **
Reply With Quote
  #89  
Old 14 Jun 2007, 16:47
Kahuna900's Avatar
Kahuna900 Kahuna900 is offline
 
Join Date: Apr 2005
I added he hack to allow watermarking of "gif" which worked, but it seems to mess with the transparency of the watermark.png file.
Reply With Quote
  #90  
Old 17 Jun 2007, 18:05
FleXy FleXy is offline
 
Join Date: Dec 2006
iexampled image isn't realy true color. try image with different colors like HG photo and you will see difference.
__________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:41.

Layout Options | Width: Wide Color: