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

  #31  
Old 13 Mar 2007, 23:46
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Originally Posted by Bulent Tekcan View Post
Is this plugin works with .gif extension ?

Thanks
Not currently, though it should be pretty easy to add that to the IF statement, CASE statement, and use the PHP imagecreatefromgif() function I would think.
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **

Last edited by ConqSoft; 13 Mar 2007 at 23:57.
Reply With Quote
  #32  
Old 14 Mar 2007, 00:50
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Originally Posted by ConqSoft View Post
Not currently, though it should be pretty easy to add that to the IF statement, CASE statement, and use the PHP imagecreatefromgif() function I would think.

I'm already add .gif extension,and works fine on my test boards.I'll hard test on my test forum 2-3 days then apply production forum.

Thanks
__________________


Last edited by Bulent Tekcan; 14 Mar 2007 at 00:59.
Reply With Quote
  #33  
Old 14 Mar 2007, 13:46
project-Buckfas project-Buckfas is offline
 
Join Date: Jul 2006
Real name: David
Thanks ConqSoft

I've wanted this for a whlle now!
Reply With Quote
  #34  
Old 14 Mar 2007, 18:12
Karabaja's Avatar
Karabaja Karabaja is offline
 
Join Date: Feb 2006
Thanks for sharing this. I'll give it a go as soon as I get a chance.
Reply With Quote
  #35  
Old 14 Mar 2007, 22:18
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Real name: Eric Estrada
sorry its ok...

Thanks for the nice hack!

Last edited by sensimilla; 14 Mar 2007 at 22:45.
Reply With Quote
  #36  
Old 14 Mar 2007, 23:03
goblues goblues is offline
 
Join Date: Aug 2004
Right on! I have been following your request for this. Thanks for sharing!
Reply With Quote
  #37  
Old 14 Mar 2007, 23:26
Kahuna900's Avatar
Kahuna900 Kahuna900 is offline
 
Join Date: Apr 2005
Thanks Keith,

Instructions were perfect and everyting is working great on all my forums.
Reply With Quote
  #38  
Old 15 Mar 2007, 19:09
benjaminkramer benjaminkramer is offline
 
Join Date: Mar 2007
Real name: Benjamin Kramer
Thanks for your Plugin.

I want that a guest can view the thumbnails but not the full full size oft it.
But it does not work.

My stettings:
Guests to View Thumbnails yes
Unregistered / Not Logged In usergroup set to NOT have access to download attachments
Reply With Quote
  #39  
Old 15 Mar 2007, 19:41
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Did you follow all the steps? The attachment_watermark.php file is still required for the Guest Thumbnail feature also. Though, you can just leave the watermark fields empty if you don't want to use that part.
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **
Reply With Quote
  #40  
Old 15 Mar 2007, 19:45
benjaminkramer benjaminkramer is offline
 
Join Date: Mar 2007
Real name: Benjamin Kramer
yes I did
here is my attachment_watermark.php
Attached Files
File Type: txt attachment_watermark.txt (14.6 KB, 103 views)
Reply With Quote
  #41  
Old 15 Mar 2007, 19:48
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
You shouldn't attach that because it contains too much vBulletin code.

But, double check everything because it's working fine for others. It could also be a conflict with some other mod you have installed.
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **

Last edited by ConqSoft; 15 Mar 2007 at 19:52.
Reply With Quote
  #42  
Old 16 Mar 2007, 19:51
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
When this is enabled some thumbnail images become broken? When disbaled, they all work just fine. Any idea?
Reply With Quote
  #43  
Old 16 Mar 2007, 19:53
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
No idea... Do you have any other attachment/thumbnail related hacks running that may conflict?
__________________
My Blog
GPS Discussion Forum

** Please do not contact me privately for help. Thanks. **
Reply With Quote
  #44  
Old 16 Mar 2007, 23:55
Sychev_S Sychev_S is offline
 
Join Date: Oct 2005
Thank you, Works like a charm!
__________________
TdotZone.com - Toronto's Hottest Online Destination!
Reply With Quote
  #45  
Old 17 Mar 2007, 13:57
Pottsy Pottsy is offline
 
Join Date: Sep 2006
This mod is great - thank you for sharing!

One issue (and I think it's me being thick or just the way vB works) - I display images in line to registered users (no pesky thumbnails). If I want to show thumbs to unregistered users, I need to turn on thumbnails (and build them), but there seems to be no way to now let registered users to view in line.

So, can I show thumbs to unregistered users but still show full images inline to registered users?
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:43.

Layout Options | Width: Wide Color: