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

  #106  
Old 19 Oct 2007, 00:18
nickypoooo's Avatar
nickypoooo nickypoooo is offline
 
Join Date: Aug 2007
3.6.8 doesn't work, Anybody help us please
Reply With Quote
  #107  
Old 19 Oct 2007, 00:23
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Originally Posted by nickypoooo View Post
3.6.8 doesn't work, Anybody help us please
Works perfectly fine on 3.6.8 (and 3.6.8 PL1)
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **
Reply With Quote
  #108  
Old 19 Oct 2007, 00:53
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
I am using it on 3.6.8 PL1 also and it works great, fantastic mod!
__________________
Alibass
Reply With Quote
  #109  
Old 05 Nov 2007, 04:08
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Real name: David
How difficult would watermarking the thumbnails be?
I've rewritten some of this to add a second watermark (for smaller images). That worked out nicely. But I've not figured out watermarking thumbs yet.
__________________
Former vBulletin.org Staff Member

Christianboards.org * Web Design * CIW Certified * My hacks

Check my hacks to see which ones are marked as re-usable.

Please do not contact me through my site for vBulletin matters. These issues should be handled on vBulletin sites. I am not the only person who handles the contact us mail for my site.
Reply With Quote
  #110  
Old 05 Nov 2007, 12:21
peterpigman peterpigman is offline
 
Join Date: May 2006
Originally Posted by davidw View Post
How difficult would watermarking the thumbnails be?
I've rewritten some of this to add a second watermark (for smaller images). That worked out nicely. But I've not figured out watermarking thumbs yet.
Why bother? thumbs are too small to watermark imho.
__________________
Uncover Reality
Reply With Quote
  #111  
Old 05 Nov 2007, 12:46
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Real name: David
When thumbs are set to 640px (actual size is much larger), there are nearing 200k images, and it is requested that thumbs are watermarked, I will try to watermark them. If they can't be done with this hack, I will find an alternate route.
__________________
Former vBulletin.org Staff Member

Christianboards.org * Web Design * CIW Certified * My hacks

Check my hacks to see which ones are marked as re-usable.

Please do not contact me through my site for vBulletin matters. These issues should be handled on vBulletin sites. I am not the only person who handles the contact us mail for my site.
Reply With Quote
  #112  
Old 16 Nov 2007, 09:25
TheAllusionist TheAllusionist is offline
 
Join Date: Apr 2005
First off, I want to say that you did and excellent job in the documentation, I remember when I first started out and had to modify code, some authors assumed a lot of knowledge of the end users, your instructions could have been followed by a third grader.

Worked fine right away on 3.6.8 SP2. I tried to read through all the post and I assumed that this was done with Brian of vBadvanced fame that it would work with his CMPS portal as far as guest viewing thumbnails, but it doesn't seem to which is a real shame and the main reason I installed it.

An idea I had for a future realease that may or may not be easy is a frame with a thick bottome or just the bottom where text and logo could go. This is something like the images at CGsociety.org in the CG Choice Galleries.

Well I just wanted to chime in and say great work and that it worked fine right from the get go!
Reply With Quote
  #113  
Old 11 Dec 2007, 17:42
LCN2007 LCN2007 is offline
 
Join Date: Jul 2007
if someone right clicks your image and saves it will it save with the water mark or is this a fake watermark i saw earlier that it doesnt change the file?

Last edited by LCN2007; 11 Dec 2007 at 18:59.
Reply With Quote
  #114  
Old 11 Dec 2007, 17:49
LCN2007 LCN2007 is offline
 
Join Date: Jul 2007
Also can someone tell me how to figure out if i have GD2 on my server i think i have GD1.8?
Plz help.
Reply With Quote
  #115  
Old 11 Dec 2007, 18:00
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Did you try it?

Yes, the watermark will be there. The image is altered at the time its displayed, but not altered on the drive itself.
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **
Reply With Quote
  #116  
Old 11 Dec 2007, 19:01
LCN2007 LCN2007 is offline
 
Join Date: Jul 2007
I have not tried it yet but i will i just got done making all the file edits. I hope it works also does just the watermark itself have to be a JPG or PNG or does this only watermark images that are JPG or PNG?

Im pretty sure it will watermark any attachment but the watermarkitself has to be a JPG or PNG correct?
Reply With Quote
  #117  
Old 25 Dec 2007, 15:50
iCafe's Avatar
iCafe iCafe is offline
 
Join Date: Jun 2005
i want Allow Guests to View Thumbnails one option don't have watermark.

help me pl,
Reply With Quote
  #118  
Old 29 Dec 2007, 01:50
Cristi_XP's Avatar
Cristi_XP Cristi_XP is offline
 
Join Date: Dec 2006
Originally Posted by ndut View Post
hello.. can somebody help me, please..

i've tried to try this cool add ons.. but it doesn't work..
i've followed this script step by step... still no working..

i'm using vbulletin 3.6.8
i've put file attachment_watermark.php into my root forums folder
i've put file watermark.png into my images folder..
i've install the product-attach_watermark.xml Product via the vBulletin AdminCP Product Manager. still not working..

what should i type in "Watermark Image Location"
if my images. i stored in httpdocs/images folder..
fox example.. my site names is : www.ndut.com
now, i type : /ndut.com/httpdocs/images/watermark.png
but, doesnt work..

can somebody help me?? thanks before..
look carrefully at the error message,the error message shows the physicall adress.
Mines is something like this /home/my_username/public_html/forum/watermark.png
Can`t we set transparency to the watermark ?

Last edited by Cristi_XP; 29 Dec 2007 at 01:59.
Reply With Quote
  #119  
Old 05 Jan 2008, 02:52
geevest.com geevest.com is offline
 
Join Date: Apr 2006
sir i following step by step how to install this module,but until right now the watermark is didn't show.can u help me with my problem? im using vbulletin 3.68
Reply With Quote
  #120  
Old 11 Feb 2008, 22:21
xcesiv xcesiv is offline
 
Join Date: Nov 2007
quick questions with this mod..

1) If a member is to save the image that is being viewed with the water mark, will the image be saved with the watermark on it.

2)How do you tell if the server has GD2 installed?

3) Wat does it mean by "Attachments must be stored in the file system. Database storage of file attachments will not work" Im currently using the Image Uplaod system built into 3.6.8. Will it watermark these images.

Thank you for your help
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 10:02.

Layout Options | Width: Wide Color: