vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Watermark Attachments (https://vborg.vbsupport.ru/showthread.php?t=201972)

bjhuang 01-15-2009 10:00 PM

Watermark Attachments
 
1 Attachment(s)
Product: 1
Plugin: 2
Query: 0

tested only on the pure installation of vbulletin. install at your own risk to work with other attachment mods.

Feature

* put a logo (watermark) on your attachments.
* option to watermark only attachments after X days of creation. this helps your hotlinked images become free ads.
* option to watermark thumbnails but stop hotlinking to full size image (return a blank image instead)
* option NOT to watermark images for traffic from certain sites

Install

Step 1: import product-watermark.xml
Step 2: create and upload your own watermark logos. one for top and one for bottom.
Step 3: put the absolute path of watermark images into options. (/var/www/html/.../watermark.png)
Step 4 (optional) : if you don't want the attachments watermarked viewing on your own site or some other friend sites (like google image), just put the domains into "Skip Referer" option.

Not working
1. set the "Days Delay" option to 0
2. refresh your cache by press Ctrl-F5.
3. the watermark images should be in PNG format with transparent background.
4. check the "Safe Mode Temporary Directory" option. the directory should be writable.
5. only works for PNG, GIF, JPG attachments.
6. only works if the attachments are stored in the filesystem.
7. GD library should be installed.

Todo
* currently, we have to create a temp file while sending a watermarked attachment. It will be appreciate if anybody can help me to get rid of this.

https://vborg.vbsupport.ru/external/2009/01/62.jpg


The most famous travel forum in chinese world - www.bbkz.com

Sweeks 01-16-2009 09:17 AM

Not working for me. The watermark doesnt show.
________
Gay Teen

NGUYENDUCTRUONG 01-16-2009 09:40 AM

Please review ,Not working

logicuk 01-16-2009 09:46 AM

<font size="3">Does it perm watermark the files?</font>

bjhuang 01-16-2009 09:53 AM

Quote:

Originally Posted by NGUYENDUCTRUONG (Post 1714451)
Please review ,Not working

try to set the "Days Delay" option to 0

horusbird 01-16-2009 11:39 AM

I installed and vbulletin view attach Lytebox function don't work :confused:
I unistall and view attach Lytebox don't work!!!:mad::mad::mad::mad::mad:

horusbird 01-16-2009 11:46 AM

what are the tables changed?

bjhuang 01-16-2009 11:50 AM

Quote:

Originally Posted by horusbird (Post 1714554)
what are the tables changed?

no any db changes. it leaves nothing after you uninstall it.

horusbird 01-16-2009 11:55 AM

Ok, but the problem was born after uploading product-watermark.xml.
What may have happened?

Thank you

sorry for my english i am italian ;-)

bjhuang 01-16-2009 12:02 PM

Quote:

Originally Posted by horusbird (Post 1714563)
Ok, but the problem was born after uploading product-watermark.xml.
What may have happened?

Thank you

sorry for my english i am italian ;-)

i'm not sure. i never use Lytebox. this mod won't modify any file or db tables. maybe you should try to clear your browser cache or press Ctrl+F5. attachements are always cached.

horusbird 01-16-2009 12:06 PM

No the problem is for all my users....

it is possible that the problem is in the templates modification?

bjhuang 01-16-2009 12:09 PM

Quote:

Originally Posted by horusbird (Post 1714577)
No the problem is for all my users....

it is possible that the problem is in the templates modification?

no, there are no template modifications.

MmS1 01-16-2009 12:13 PM

it's working 100% with out anY change from me

http://www.md.ly/club/attachment.php...1&d=1232114333
installed

Leo Brazil 01-16-2009 12:15 PM

Question, does it watermak also album pics ?

MmS1 01-16-2009 12:16 PM

1 Attachment(s)
Quote:

Originally Posted by horusbird (Post 1714546)
I installed and vbulletin view attach Lytebox function don't work :confused:
I unistall and view attach Lytebox don't work!!!:mad::mad::mad::mad::mad:

it's woke for me

try with other Explorer

Adem GEN? 01-16-2009 12:24 PM

Thanks Installed

Suggestion
Make for vBulletin albums

horusbird 01-16-2009 12:25 PM

Quote:

Originally Posted by MmS1 (Post 1714585)
it's woke for me

try with other Explorer

The same problem is in Firefox, IE, in this computer in other computer and for all users!

When I click on a thumbnail appears a gray background and remains on standby

xmobile 01-16-2009 01:56 PM

what format to use in "Path of top watermark"?:
images/logo.png or http://mydomain/forums/images/logo.png

Sweeks 01-16-2009 03:17 PM

I am sure some of our attachments are no longer opening properly too and I have never witnessed this prior to installation and still happens on uninstallation.
________
Amateur Adult Video

t.uzuner 01-16-2009 09:16 PM

thats greats mod.
selected motm nomination

bjhuang 01-16-2009 10:24 PM

Quote:

Originally Posted by xmobile (Post 1714694)
what format to use in "Path of top watermark"?:
images/logo.png or http://mydomain/forums/images/logo.png

/var/www/html/forum....

bjhuang 01-16-2009 10:32 PM

Quote:

Originally Posted by Sweeks (Post 1714778)
I am sure some of our attachments are no longer opening properly too and I have never witnessed this prior to installation and still happens on uninstallation.

this mod watermark attachments on the fly. it won't write or modify anything back to the database. maybe you should check your plugins to see if there are other mods hooked to attachment_display or attachment_complete. if they write data back to the db after watermarked attachments were created, there is a probability causing some problems.

netcommander 01-17-2009 06:37 AM

can we change watermark position ? is it possible

denman75 01-17-2009 07:57 AM

is not working ,thats to bad

bjhuang 01-17-2009 09:23 AM

Quote:

Originally Posted by netcommander (Post 1715474)
can we change watermark position ? is it possible

well, it's not hard with a little coding PHP coding knowledge.

Try to modify these lines in plugin "Watermark Attachments - Display":

PHP Code:

            if($wm_t&&imagesx($im_a)>imagesx($wm_t)) {    
                
imagefilledrectangle($im_aimagesx($im_a) , imagesy($wm_t) , imagecolorallocatealpha($im_a000100) );
                
imagecopy($im_a$wm_timagesx($im_a)-imagesx($wm_t), 000imagesx($wm_t), imagesy($wm_t));
            }
            if(
$wm_b&&imagesx($im_a)>imagesx($wm_b)) {    
                
imagefilledrectangle($im_aimagesy($im_a)-imagesy($wm_b) , imagesx($im_a) , imagesy($im_a) , imagecolorallocatealpha($im_a000100) );
                
imagecopy($im_a$wm_bimagesx($im_a)-imagesx($wm_b), imagesy($im_a)-imagesy($wm_b), 00imagesx($wm_b), imagesy($wm_b));
    
            } 


glennybee 01-17-2009 09:42 AM

Nice mod, tagged for later. :)

vemkeit 01-17-2009 01:38 PM

Thanks nice mod... it works great in Firefox and IE 7

devilsown 01-18-2009 05:34 PM

I am not having any luck getting this to work.
my path is set to /var/www/images/watermark.png
which is how i find it in ftp client.

i have the image on my server at/ http://www.grandprixforums.net/images/watermark.png

i have my images stored in the file system.
this is my image. http://www.grandprixforums.net/attac...ntroller_s.jpg

bjhuang 01-18-2009 11:43 PM

this mod add watermarks on the fly. it won't modify your images. you browse the image with a direct link to the jpg, and of course there is no watermark on it.


Quote:

Originally Posted by devilsown (Post 1717071)
I am not having any luck getting this to work.
my path is set to /var/www/images/watermark.png
which is how i find it in ftp client.

i have the image on my server at/ http://www.grandprixforums.net/images/watermark.png

i have my images stored in the file system.
this is my image. http://www.grandprixforums.net/attac...ntroller_s.jpg


sleepyboy2004 01-19-2009 06:55 AM

Not working for me :(

elmark 01-19-2009 09:34 AM

It`s Work.
Thanks!

I have ver. 3.7.4 PL

BY

Marko

spyhidden 01-19-2009 12:41 PM

Working good thx

sleepyboy2004 01-20-2009 01:14 PM

Any tips to make this work?? Wont work on my forum, or my test forum either.. :(

Leo Brazil 01-20-2009 01:20 PM

Are your images on file system or database ?

This mod will only work for those with images on filesystem.

sleepyboy2004 01-20-2009 02:05 PM

Quote:

Originally Posted by Leo Brazil (Post 1718959)
Are your images on file system or database ?

This mod will only work for those with images on filesystem.

I think I'm a noob when it comes to that :(. My images are on the the forum directory's. /forum/images/misc/watermark.png
Hope that makes sense!

WreckRman2 01-21-2009 04:29 AM

Does it permanently watermark the image?

dmknights 01-21-2009 11:29 PM

followed the instructions, but does not work on 3.8.0

ComputerVitals 01-22-2009 03:11 AM

Lightbox option on here,
Watermark doesn't work.

myown 01-22-2009 01:59 PM

looks interesting ... sure will be installing

CrashfAB 01-22-2009 08:17 PM

So does this not work on 3.8?

I am in dier need of something like this...


All times are GMT. The time now is 08:09 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01374 seconds
  • Memory Usage 1,825KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete