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

Comments
  #2  
Old 12 Mar 2007, 22:34
nexialys
Guest
 
kinda cool, i think i will tweak on it..
Reply With Quote
  #3  
Old 12 Mar 2007, 22:41
Kanustep Kanustep is offline
 
Join Date: Jul 2005
Sound interesting, thank you ConqSoft.
Reply With Quote
  #4  
Old 12 Mar 2007, 22:44
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
A fantastic tool to drive registration on 2 fronts. Very kind of you to release it, thanks.
__________________
AndroidETC.com :: Android, and other stuff.
Reply With Quote
  #5  
Old 12 Mar 2007, 23:02
PKRWUD's Avatar
PKRWUD PKRWUD is offline
 
Join Date: Jan 2003
I installed it, but it's not showing up. Does the watermark itself have to be a .jpg or .png file? I used a .gif file.

*edit*

I tried it with a .png file, and still no luck.
__________________
Webmaster ~ The Rice Haters Club

Last edited by PKRWUD; 12 Mar 2007 at 23:08.
Reply With Quote
  #6  
Old 12 Mar 2007, 23:10
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
A transparent .PNG is the best thing to use for the watermark.
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **
Reply With Quote
  #7  
Old 12 Mar 2007, 23:11
Gryphon's Avatar
Gryphon Gryphon is offline
 
Join Date: Oct 2001
Real name: Ryan Snook
jpg or png for watermark. However, I can't get it to work either.
Reply With Quote
  #8  
Old 12 Mar 2007, 23:14
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Your server needs GD2 installed also. (Edited above.)

It's possible that I made a mistake with the modification instructions. Since I just have the fully modified file, I had to build the change instructions from that. I'll look over it and see if I missed anything. It would be much easier to just include the file, but it may violate site policy since it contains a lot of original vBulletin code.
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **
Reply With Quote
  #9  
Old 12 Mar 2007, 23:20
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Ok, I found two errors. Please re-do steps 5 and 6.
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **
Reply With Quote
  #10  
Old 12 Mar 2007, 23:32
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Conq if this works, and you ever want to have kids, i'll have them for you
Reply With Quote
  #11  
Old 12 Mar 2007, 23:43
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Originally Posted by Ntfu2 View Post
Conq if this works, and you ever want to have kids, i'll have them for you
Let me know. Still need to make sure I don't have any other mistakes in the file editing instructions above. It's working fine on 3 of my sites, and one other site.
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **
Reply With Quote
  #12  
Old 12 Mar 2007, 23:52
Gryphon's Avatar
Gryphon Gryphon is offline
 
Join Date: Oct 2001
Real name: Ryan Snook
Still haven't been able to get it working, have edited completely twice.

GD 2.0.28

Step 5 contains an extra brace at the end of the find string, not that it matters much.
Reply With Quote
  #13  
Old 12 Mar 2007, 23:54
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Are you using the full PHYSICAL path to the watermark file, and do you have the width/height setting set to something low enough to affect your images, and are your attachments stored in the file system?

Also, if you have viewed the attachment previously, it may be cached. Make sure you clear your browser cache.
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **
Reply With Quote
  #14  
Old 13 Mar 2007, 00:01
Gryphon's Avatar
Gryphon Gryphon is offline
 
Join Date: Oct 2001
Real name: Ryan Snook
Ah, I didn't realize they had to be stored as files. I thought I had seen a specification on the request to use the database.

I am sure all is correct, I have written my own watermarking previously, however it is a project outside of vBulletin and uses ImageMagick.
Reply With Quote
  #15  
Old 13 Mar 2007, 00:01
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Originally Posted by Blackjack View Post
Step 5 contains an extra brace at the end of the find string, not that it matters much.
Fixed, thanks. It would make a difference, if you replaced the brace too.
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. 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 05:30.

Layout Options | Width: Wide Color: