vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Watermark Images Posted In Threads (https://vborg.vbsupport.ru/showthread.php?t=207836)

crkgb 03-11-2009 06:59 AM

After installing the images stopped getting shown altogether. The image address started to look like this:

http://www.mysite.com/watermark.php?...n_small_09.jpg

Had to uninstall but would love to get it to start working.

3.8.1

realmr 03-12-2009 08:27 AM

does it watermark on attachment image or any site uploaded image ?

doraj 03-12-2009 09:52 AM

This Mod is very dangerous, I tried it and when I unistalled it all images of my forum are disappears...

racingsolution 03-14-2009 01:55 AM

Subscribed .. waiting for bug fixes and more features

Ljusya 03-14-2009 11:50 AM

Quote:

After installing the images stopped getting shown altogether. The image address started to look like this:

http://www.mysite.com/watermark.php?...n_small_09.jpg

Had to uninstall but would love to get it to start working.

3.8.1
similar problems... waiting for author`s comments and fixes

Chris583 03-17-2009 04:38 AM

works, but is there a way to disable for .gif images with animations? I've noticed that the animated gifs wont work, shows only first frame.

tuwebfacil 03-17-2009 04:10 PM

Hope to see the catching feature soon, since this can increase the server load, a lot for a big forum!

muckleroy 03-17-2009 07:53 PM

gif issue confirmed. I had to disable to get everything back to normal.

amin 03-23-2009 05:02 AM

Quote:

Originally Posted by Chris583 (Post 1770195)
works, but is there a way to disable for .gif images with animations? I've noticed that the animated gifs wont work, shows only first frame.

Quote:

Originally Posted by muckleroy (Post 1770680)
gif issue confirmed. I had to disable to get everything back to normal.

It will be great if you make options for image formats which can disable or enable what the user want in particular. And there is another thing beside the width add hight. As you know there are some pictures lock like bars if we watermark it we will not see the bar.

Thank you so much,

Amin

qpo 03-23-2009 08:52 AM

Quote:

Originally Posted by Arcade Fire (Post 1764898)
My emoticons do not move after intall watermark :(

That is caused due to PHP GD library limitation. To emoticons show started again, I propose to make some changes in the source code. You need to found code in file watermark.php:

Code:

if($imagewidth <= $minwidth){
header ("Content-type: image/png");
imagepng($im);
imagedestroy($im);
}

and replace it to

Code:

if($imagewidth <= $minwidth){


 switch ($imagetype['mime']) {
    case "image/gif":
                header ("Content-type: image/gif");
        break;
    case "image/jpeg":
        $im = imagecreatefromjpeg($image);
                header ("Content-type: image/jpeg");
        break;
    case "image/png":
        $im = imagecreatefrompng($image);
                header ("Content-type: image/png");
        break;
        }

$filename = $_SERVER['DOCUMENT_ROOT']."/".$_GET['src'];
$fp=@fopen($filename,"rb");
$contents = fread($fp, filesize($filename));
fclose($fp);
header ("Content-Length: ".filesize($fp));
echo $contents;

imagedestroy($im);
}

In that case watermark.php script will be get out emoticons file contents without any transformation. Don't forget to setup minimal width in admin area! (I use 100 pixels)

Pathed file also attached


All times are GMT. The time now is 04:37 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.01079 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
  • (2)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