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 06-05-2009 06:13 PM

my own forum gets 5M+ attachment hits per month. the load increase is minor.

watermarking attachments on upload is not an option because you do not own the image and you do not have the right to put your own mark on it.

Quote:

Originally Posted by mindhunter77 (Post 1816113)
I'm worried about the load this my place on a large forum, anyone notice? Why not just perm apply the watermark at upload, strangly enough, there does not seem to be a mod that does that.


mindhunter77 06-05-2009 06:35 PM

Quote:

Originally Posted by bjhuang (Post 1824063)
watermarking attachments on upload is not an option because you do not own the image and you do not have the right to put your own mark on it.

That's not the case on my forum, anyway...

Any idea why the mod would stop working when using this,

https://vborg.vbsupport.ru/showthread.php?t=207566

bjhuang 06-07-2009 11:18 PM

bug fix:

Code:

[open]
plugin: Watermark Attachments - Display

[find]
$lastbyte = filesize($tmpfname)-1;

[add below]
$attachmentinfo['filesize'] = filesize($tmpfname);

Quote:

Originally Posted by z0diac (Post 1821373)
WARNING with this add-on:

- STOPS YOUR TIMES VIEWED COUNTER from working
.. at least it does this when installed on v3.7.4


z0diac 06-08-2009 06:55 AM

^^ I can verify this bug-fix works PERFECTLY :) When you hover over a thumbnail the "times viewed" counter is now updated properly again. Great work !

silentdub 06-16-2009 02:55 PM

It is working for me, but only on some pictures.
some are ok, others are not.

Any idea why?

For example:

http://www.mk1dubz.com/forums/showth...=1054#post1054

maxpda 06-17-2009 07:49 AM

chinese
Thank you

xony 06-19-2009 11:01 AM

You can automatically include the date?

Thanks.

silentdub 06-20-2009 03:29 PM

Some jpg pics do NOT show the water mark, it appears to be random.

Anyone know why?

bjhuang 06-26-2009 04:09 AM

maybe the width of attachment is smaller than the width of the watermark image.

Quote:

Originally Posted by silentdub (Post 1833383)
Some jpg pics do NOT show the water mark, it appears to be random.

Anyone know why?


z0diac 06-28-2009 05:18 PM

Ack! It's watermarking my thumbnails!!

Is there some extra code I can add somewhere so that it won't even CHECK to watermark when displaying threads?

My forum is picture-based (thousands of thumbnails, some posts have hundreds each post) and for the wide thumbnails, this mod is sticking a watermark on them! Aarrrrhh!!

example: http://forum.icedogfans.com/showthre...7038#post47038

Most of my thumbnails aren't ^^ that wide, I just created that one custom to show what's happening.

Turning this mod OFF while displaying thumbnails would be best as it would decrease # of queries when showing thumbnails and would really increase speed. I'd like to have this mod active ONLY when a user clicks on a thumbnail to display the full size image.

Another way would be to have mod active only when image width is greater than... [enter pixels]

A quick fix would *greatly* be appreciated. 'Will even pay!


All times are GMT. The time now is 01:42 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.01281 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)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