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)

z0diac 07-05-2009 07:54 PM

(is this thread still monitored by the author? If so please read ^^ above post. )

z0diac 07-12-2009 04:01 PM

GRRR. Mod uninstalled as it's watermarking wide thumbnails, and this thread seems to be dead...

t.uzuner 07-15-2009 04:01 PM

yes me too same problem. i dont want show thumbnails watermark. please update mod.

z0diac 07-15-2009 04:32 PM

Quote:

Originally Posted by t.uzuner (Post 1849310)
yes me too same problem. i dont want show thumbnails watermark. please update mod.

I do believe this mod has been abandoned. I've been asking for help/comments in this thread for ages and the author is nowhere to be found.

I'm looking into paying a coder to mod it so that the mod won't run unless the image is at least X pixels wide.

elwachiman 11-12-2009 12:29 PM

does not work is wrong no further information please thanks

Mopar1973Man 12-10-2009 01:43 PM

I got it to work and understand how to do it...

You need the absolute path to the warkmark.png file. So this might require contacting your web host and find out what your absolute path is. Relative path will not work! Like if you installed file is at /forum/watermark.png and that's what you typed then its wrong and won't function... Like I said you NEED the ABSOLUTE PATH...

interfx 12-12-2009 06:34 PM

Anyone have this working with VB4? Or anyone considering updating to VB4?

reimic 01-12-2010 04:19 PM

does not work. could somebody update it for 4.0?

HondaATC 03-04-2010 09:17 PM

Quote:

Originally Posted by interfx (Post 1929468)
Anyone have this working with VB4? Or anyone considering updating to VB4?


http://www.vbulletin.com/forum/proje...?issueid=36738

I've got a feature request in to have watermarking added as native to a future version of vbuletin. Feel free to comment on it, Dev's might see/understand the interest in having it.

kevin2008 03-08-2010 07:47 AM

Yes it is a need for protecting works, it must also be compatible with the extensions: png, to lie, tiff, jpg they is most current.

Thank you by advance with all the coders who will want to work well on this project

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:

jluerken 10-07-2010 02:31 PM

Quote:

Originally Posted by dutchbb (Post 1999748)
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

I sign this request, especially to exlude some forums from watermarking would be nice.

VBUsers 10-16-2010 05:34 AM

i installed this but dont know why its not showing. i did everything in the install.

angeljs 10-16-2010 08:30 AM

This mod also broke my highslide attachment viewing, as it has with other users. Same problem even with this mod un-installed. :(

furnival 11-12-2010 02:59 PM

Doesn't work in vb 3.8.2

RedPoint 03-27-2011 08:31 PM

not work on my vb 4.1.2

Mopar1973Man 03-27-2011 10:42 PM

Still working fine in vB 4.1.0 :D

http://forum.mopar1973man.com/attach...8&d=1281643245

Still working fine in vB 3.8.5 :D

http://forum.tractorfarmandfamily.co...1&d=1281967539

Still working in vB 3.8.6 :D

http://idahoturbodiesels.com/vb/atta...1&d=1299507364

Goodfather 03-29-2011 04:21 PM

Still working fine in vB 4.1.2

http://razbibriga.net/attachment.php...5&d=1266139985

indreksi 04-21-2011 10:03 AM

Looks like its dont work in vB 4.1.3 :erm:

8thos 05-14-2011 05:49 PM

Interesting. Can't wait to test this out. Does it work with Pictures and Album Gallery?

Mopar1973Man 08-17-2011 02:20 AM

Well gang... vB 4.1.4 or vB 4.1.5 kills the plugin it no longer functions...

Quote:

Interesting. Can't wait to test this out. Does it work with Pictures and Album Gallery?
No it doesn't work in those areas only attachments...

JohorBahru 08-28-2011 04:57 PM

Hi, may i know who does "Stop hotlinking to full size image" mean for?
isn't the watermark is on the full size image as well?

Internetcafe 02-08-2012 08:27 AM

Still working on 4.1.10 :up:

Bulent Tekcan 03-04-2012 07:05 AM

Not work 4.1.11

stained 11-23-2012 01:16 PM

If you get the path to your watermark files right it definitely works on 4.1.11.

Does anyone know how to move the bottom watermark over to the left? Post #25 gives a tip but changing those numbers changes the colour of the watermark background as far as I can see.

RyanFabbro 11-25-2012 03:51 AM

1 Attachment(s)
can someone who has this working screenshot their settings for me i have...

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

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

in those first options when i turn on "Safe Mode Upload Enabled"

i get the following error when i upload a file and yes i have a tmp directory that is writable
https://vborg.vbsupport.ru/attachmen...1&d=1353819047

RyanFabbro 11-25-2012 05:50 AM

idk why or how but is magically started working =)

fxdigi-cash 01-22-2013 02:27 PM

this is what I was looking for..... finally got it.
Thanks a lot. works great without any issues on vb.4.2 pl3

:)

keyla31 01-08-2014 02:38 PM

I had to re install this on 4.2.2 and it seems to not work now, maybe it has to cron and will evenetually work again?

Moh4m4d 01-08-2014 07:25 PM

any idea for vb 4.2 ?!

Vibhor 03-17-2014 04:14 PM

Quote:

* 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.
Is it safe to remove those temporary files? They're consuming more than 50% of our server space.


All times are GMT. The time now is 01:05 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.01370 seconds
  • Memory Usage 1,810KB
  • 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
  • (6)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