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

  #61  
Old 25 Mar 2007, 02:47
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Everything as posted works fine. There was a problem very early on, but it was corrected and many people (30+) have installed it since then without issues. Make sure your site meets the requirements listed (GD2 installed, attachments stored in the file system, full physical path specified to your watermark, etc) and it should work fine.

But, as this is an unsupported hack, that's about all the help I can offer.

Thanks
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **
Reply With Quote
  #62  
Old 25 Mar 2007, 03:09
casidom casidom is offline
 
Join Date: Jul 2005
ConqSoft!

My site has all the requirements listed. I tried to follow all your steps again, but the thumb nails don't show up, my attachments don't show up. In page 3, I saw benjaminkramer has attached his attachment_water.php file, I download it and try. Now, my thumb nails are showed up, but watermark is still not showed up. Please help.
Reply With Quote
  #63  
Old 25 Mar 2007, 03:10
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
It could also be a conflict with some other hack you have installed.

Sorry, I can't offer any additional help.
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **
Reply With Quote
  #64  
Old 01 Apr 2007, 12:01
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Real name: Eric Estrada
Its working for me on all forums but not in vbadvanced modules, any ideas why ?

Thanks in advance!
Reply With Quote
  #65  
Old 04 Apr 2007, 19:58
rhinoForums.net rhinoForums.net is offline
 
Join Date: Feb 2007
Well, I was pretty excited about this mod but after running through the motions 3 times, my forum is still un-modded. I have added the new file (attachment_watermark.php), I have GD2 installed, I am using filesystem attachments (not database) and I have specified the full path to my transparent .png. Unfortunately my board acts the same as it did before. Nothing broke, but nothing changed either.

Thanks for the help and thanks a ton for posting this mod. I appreciate the help and hopefully will figure out what is causing my problems. If I do get it solved I'll let everyone know my problems/solutions.
Reply With Quote
  #66  
Old 04 Apr 2007, 22:14
Red Spider's Avatar
Red Spider Red Spider is offline
 
Join Date: Jan 2006
THANK YOU SOOOOOOOOOOOOOOOOO MUCH!!

I will make a donation on this
Reply With Quote
  #67  
Old 04 Apr 2007, 23:33
Red Spider's Avatar
Red Spider Red Spider is offline
 
Join Date: Jan 2006
Okay this doesnt work for me

My GD version is: GD Version bundled (2.0.28 compatible) & FreeType Version 2.1.9

but no image

EDIT:

image now works - but no watermark - i have the EXACT physical path set

Last edited by Red Spider; 05 Apr 2007 at 00:14.
Reply With Quote
  #68  
Old 05 Apr 2007, 20:46
Red Spider's Avatar
Red Spider Red Spider is offline
 
Join Date: Jan 2006
Fixed

Thanks for sharing
Reply With Quote
  #69  
Old 05 Apr 2007, 22:40
itsblack itsblack is offline
 
Join Date: Dec 2005
Actually I only need the "Guests view thumbnails" function, so I ripped it from the mod.
Anyway, thanks a lot for this useful mod. click "installed".
Reply With Quote
  #70  
Old 05 Apr 2007, 22:58
peterpigman peterpigman is offline
 
Join Date: May 2006
Nice! Works well TYVM. Took a while to figure out how to do it but it is well worth it. Kudos for releasing it.
Reply With Quote
  #71  
Old 06 Apr 2007, 13:41
z0diac z0diac is offline
 
Join Date: Dec 2006
Great mother of god - I've been waiting for something like this since the day of my vB install.

QUESTION: Is there any way (or future plans) to have it add text BELOW the original image instead of a watermark directly over top of the image? I know my users would want my head on a pike if I covered up part of their photos with a watermark, no matter what the size of it....
Reply With Quote
  #72  
Old 06 Apr 2007, 19:21
taheri6 taheri6 is offline
 
Join Date: Jan 2007
Hello,

I am going to sound like a retard, but how to I verify if the attachments are in the filesystem? I checked in the ACP->options->Message attachment options - and I dont see where I can choose.

I have the mod installed, and everything looks the same as it did before I installed the mod, no difference.
__________________
See my domain names for sale at Afternic!
http://www.yaur.com -=[Yaur]=- Website
Reply With Quote
  #73  
Old 06 Apr 2007, 19:25
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
AdminCP->Attachments->Attachment Storage Type
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **
Reply With Quote
  #74  
Old 06 Apr 2007, 19:44
taheri6 taheri6 is offline
 
Join Date: Jan 2007
Doh, thanks!

I changed to the file system and now it works! YAY! Thanks for the mod, and for helping the retarded
__________________
See my domain names for sale at Afternic!
http://www.yaur.com -=[Yaur]=- Website
Reply With Quote
  #75  
Old 09 Apr 2007, 21:30
Galt56 Galt56 is offline
 
Join Date: May 2006
Just wondering if anyone had seen errors like this:

Warning: getimagesize(/kunden/hompages/REST OF PATH TO IMAGE LISTED HERE) [function.getimagesize]: failed to open stream: No such file or directory in /attachment_watermark.php on line 97

Warning: imagecreatefrompng(/kunden/hompages/REST OF PATH TO IMAGE LISTED HERE) [function.imagecreatefrompng]: failed to open stream: No such file or directory in /attachment_watermark.php on line 138

Warning: imagesx(): supplied argument is not a valid Image resource in /attachment_watermark.php on line 157

Warning: imagesy(): supplied argument is not a valid Image resource in /attachment_watermark.php on line 158

Warning: imagecopy(): supplied argument is not a valid Image resource in /attachment_watermark.php on line 160

Warning: Cannot modify header information - headers already sent by (output started at /homepages/REST OF PATH TO IMAGE LISTED HERE/includes/class_core.php:3036) in /attachment_watermark.php on line 240
The error messages continue with other lines when you click on a thumbnail and try to view the full-sized image. The thumbnails are fine.

I have tried to edit the attachment.php file twice and followed all the steps. A transparent png file is being used for the watermark as the full path to the image from the server root (as determined by php info) is being used.

I have verified GD version 2+ and images are stored in a file system.

Thanks.
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 19:33.

Layout Options | Width: Wide Color: