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)

dutchbb 03-08-2010 10:53 AM

Requests:

- watermarks separate from image, so if changed old images show new watermark

- exclusion for forum IDs

- only add watermark if dimensions are greater than x and smaller than y

- add watermark on images hotlinked in image tags

Mopar1973Man 08-15-2010 09:15 PM

I love to see this mod re-done for the VB4 series...

I've enjoyed it while I was at 3.84... I've also help other Admins install this mod on there site too...

Hopefully the author checks and sees...:D

FleXy 08-17-2010 05:47 PM

show thums - enabled.

dowes not increase attachments views counder for me :-(

Mopar1973Man 08-23-2010 12:29 AM

1 Attachment(s)
Ok...

I got this mod to work on vBulletin 4.0.6 it works just fine...

1. The watermark image can be either PNG 8 or a PNG 24.
2. The path to the image has to be a full path.

Then the water mark is added at post time...

https://vborg.vbsupport.ru/attachmen...1&d=1282529515

sulasno 08-23-2010 01:20 AM

what's the dimensions of the watermark ? will it be resize automatically?

Mopar1973Man 09-01-2010 01:42 AM

Quote:

Originally Posted by sulasno (Post 2088072)
what's the dimensions of the watermark ? will it be resize automatically?

Watermark image can be any size you wish but be reasonable. As for re-sizing the watermark no it not altered. Also it will not watermark small images (attachments). Also it will not watermark linked (offsite) images.

But just to update the thread...

* No you don't have to modify the script at all works as is.
* Just make sure you get a PNG image for a watermark and upload it to your server.
* Make sure you use a full path to the watermark image in the control panel.
* Yes it watermarks both gallery and the attachments both. (No control of it!)

This mod does work on vB 4.0.6 and doesn't require any editing...

Frank T 09-05-2010 02:37 PM

1 Attachment(s)
I tried this with 4.0.6 and am not having much success. Every time it adds a watermark, it also creates a shaded bar across the entire top/bottom. Here's an example. This image only has a completely transparent background and no text whatsoever. If you look at the top and bottom of this image, you can see how the color shades are darker The transparaent image is 400x50 pixels.

Mopar1973Man 09-05-2010 07:27 PM

Normal the way the script was written... Mine does the very same thing but I sure if someone has a bit of PHP experience could change the script to quit that...

Breakthru 09-28-2010 06:20 PM

Confirmed working on 4.0.7

To get rid of that light gray background edit the plugin, Plugin Manager, Watermark Attachments - Display, attachment_display

You have to change the 100 to 127 like below...


Code:

if($wm_t&&imagesx($im_a)>imagesx($wm_t)) {       
                                imagefilledrectangle($im_a, 0 , 0 , imagesx($im_a) , imagesy($wm_t) , imagecolorallocatealpha($im_a, 0, 0, 0, 127) );
                                imagecopy($im_a, $wm_t, imagesx($im_a)-imagesx($wm_t), 0, 0, 0, imagesx($wm_t), imagesy($wm_t));
                        }
                        if($wm_b&&imagesx($im_a)>imagesx($wm_b)) {       
                                imagefilledrectangle($im_a, 0 , imagesy($im_a)-imagesy($wm_b) , imagesx($im_a) , imagesy($im_a) , imagecolorallocatealpha($im_a, 0, 0, 0, 127) );
                                imagecopy($im_a, $wm_b, imagesx($im_a)-imagesx($wm_b),


Mopar1973Man 09-28-2010 08:37 PM

Right on I'm going to add that mod to my setup... Thank you! :up:


All times are GMT. The time now is 04:57 AM.

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.01054 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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