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: 209
Released: 12 Mar 2007 Last Update: 12 Mar 2007 Downloads: 1638
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:	2476
Size:	77.0 KB
ID:	61784   Click image for larger version

Name:	mountairy_102205%20247.jpg
Views:	3109
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 04:54

  #166  
Old 21 Jul 2008, 19:20
AnabolicResourc AnabolicResourc is offline
 
Join Date: Jan 2007
Works great in 3.7.2 !

Thanks !
Reply With Quote
  #167  
Old 02 Aug 2008, 12:24
rushabh rushabh is offline
 
Join Date: Dec 2004
Works like a charm. Thanks for sharing!
Reply With Quote
  #168  
Old 06 Aug 2008, 02:13
mustang_lex mustang_lex is offline
 
Join Date: May 2005
Originally Posted by benjaminkramer View Post
yes I did
here is my attachment_watermark.php
You are a lifesaver. After a few error messages, I uploaded your version and works PERFECT!!!!
__________________
Alex
My vbulletin 3.0.7 site www.stangette.com/community
My coppermine gallery (fully integrated) www.stangette.com/showcase

http://www.stangette.com/graphics/stangettebanner2.jpg
Reply With Quote
  #169  
Old 27 Aug 2008, 18:38
frank44 frank44 is offline
 
Join Date: Jan 2007
Originally Posted by aajobj View Post
Just recreate attachment_watermark.php from attachment.php that comes with 3.7.x (follow the mod's instructions how to do it). This worked for me, and with Lightbox on.

So you are saying to just follow the same installation steps with this mod as you would if you had 3.6?
Reply With Quote
  #170  
Old 27 Aug 2008, 19:47
frank44 frank44 is offline
 
Join Date: Jan 2007
Are you guys having a problem with the pictures hanging when trying to load after clicking on the thumbnails?
Reply With Quote
  #171  
Old 03 Sep 2008, 20:11
minky1 minky1 is offline
 
Join Date: Feb 2006
This is a fantastic mod, has anyone managed to get it to work with vbadvanced CMPS ?
I would hope it is possible ?

Last edited by minky1; 03 Sep 2008 at 20:26.
Reply With Quote
  #172  
Old 09 Sep 2008, 14:56
minky1 minky1 is offline
 
Join Date: Feb 2006
Unfortunately this seems to break the 'Limit attachment downloads' mod (http://www.vbulletin.org/forum/showthread.php?t=152701)

Reply With Quote
  #173  
Old 09 Sep 2008, 19:37
nando99 nando99 is offline
 
Join Date: Dec 2005
Real name: Fernando
Still can't get it to work with the lightbox on 3.7.3. I've read the full topic a few times and I've just confused myself... lol
Reply With Quote
  #174  
Old 09 Sep 2008, 21:09
Kahuna900's Avatar
Kahuna900 Kahuna900 is offline
 
Join Date: Apr 2005
Originally Posted by nando99 View Post
Still can't get it to work with the lightbox on 3.7.3. I've read the full topic a few times and I've just confused myself... lol
Who said they got it to work with lightbox?

The mod works as designed in 3.7.3 with lightbox turned off.
Reply With Quote
  #175  
Old 10 Sep 2008, 20:24
nando99 nando99 is offline
 
Join Date: Dec 2005
Real name: Fernando
You're right... I must've mistaken this mod with another mod. My bad...
Reply With Quote
  #176  
Old 14 Sep 2008, 05:15
acyk acyk is offline
 
Join Date: Apr 2008
Real name: Jimmy
Dear sir

I got some error with some post ,but not every post with the attachement got this error code


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

Do you have any idea to solve this problem ?
Reply With Quote
  #177  
Old 14 Sep 2008, 06:36
acyk acyk is offline
 
Join Date: Apr 2008
Real name: Jimmy
I have solved this problem

just go to the /forums/uploads/


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

then everything works great now
Reply With Quote
  #178  
Old 29 Sep 2008, 01:23
chapsrulez chapsrulez is offline
 
Join Date: Mar 2004
Installed and working on 3.7.0
but it only works with a PNG as a watermark image.
Reply With Quote
  #179  
Old 04 Oct 2008, 02:54
dragtech dragtech is offline
 
Join Date: Feb 2006
Real name: Dan
After some trial and error I finally got it to work.

Exactly what i needed.
Reply With Quote
  #180  
Old 25 Nov 2008, 11:50
codershark codershark is offline
 
Join Date: Feb 2008
the watermark dont works with gif pictures :-/
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 21:52.

Layout Options | Width: Wide Color: