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)

1Unreal 03-08-2009 10:00 PM

Watermark Images Posted In Threads
 
This mod will watermark images posted in a thread.

Features
  • Specify the text to display as a watermark or use the forums title
  • To only watermark images over a given width (so you don't watermark small images; its not really worth it)
  • Gives a nice profesional watermark on the bottom of your images.
  • Supports all major image formats used on the web.
Future Releases
Im going to add these features at a later date. I just want to get the basics working properly first.
  • Use an image as the watermark (optional)
  • Image caching to reduce server load (optional)
Installation
  1. Upload watermark.php
  2. Install the XML file
  3. Configure the settings in vB options under 'Watermarking Settings'

M-Tuning 03-09-2009 07:24 PM

Nice, can you make a option to only do this to posts in a certain forum?

And maybe only in the first posts?

For news items.

Smell 03-09-2009 07:33 PM

Good mod but i have a problem........take long time to refresh the pages with pictures ;)

1Unreal 03-09-2009 07:50 PM

Quote:

Originally Posted by M-Tuning (Post 1764274)
Nice, can you make a option to only do this to posts in a certain forum?

And maybe only in the first posts?

For news items.

Well anythings possible, so it's something to think about.

Quote:

Originally Posted by Smell (Post 1764279)
Good mod but i have a problem........take long time to refresh the pages with pictures ;)

Yes, I noticed this. I'll add the caching feature very soon which should eliminate this problem.

Akademiks 03-09-2009 08:06 PM

Quote:

Originally Posted by M-Tuning (Post 1764274)
Nice, can you make a option to only do this to posts in a certain forum?

And maybe only in the first posts?

For news items.

i will second that :up:

marshal_ramdev 03-09-2009 08:17 PM

thanks ! will check it out now :D

marshal_ramdev 03-09-2009 08:23 PM

the image isn't showing up ! what to do ?

1Unreal 03-09-2009 08:51 PM

Quote:

Originally Posted by marshal_ramdev (Post 1764318)
the image isn't showing up ! what to do ?

Please post the URL of the image and the settings you have specified in vB options. Also make sure you have uploaded watermark.php.

Deviant K1 03-09-2009 09:13 PM

INSTALLED!!!

Thank you for this mod. Lets hope that the next update will help the load time of the images :).

jeremyalyea 03-09-2009 10:08 PM

Installed on 3.6 and worked fine. Unfortunately it increased page load/image load time quite a bit.

myown 03-10-2009 04:31 AM

reserved

rapidphim 03-10-2009 06:12 AM

this hack applies to attachment image only or can it use on img bbcode tag also?

1Unreal 03-10-2009 08:10 AM

It only applies to bbcode.

Arcade Fire 03-10-2009 01:01 PM

Installed.


How can I change the font of the text?

Thanks.

1Unreal 03-10-2009 01:07 PM

Google PHP GD Text Font there are a few tutorials on it. You would have to change quite a few bits of the code though.

Arcade Fire 03-10-2009 01:28 PM

My emoticons do not move after intall watermark :(

citizenkane 03-10-2009 01:29 PM

number 10 is an excellent product seamlessly great man :)

YsTyle 03-10-2009 03:00 PM

the pictures does not appear.

Mike08 03-11-2009 12:51 AM

Quote:

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

+1. But i have a v3.6.8

Thanks anyway ;)

isatice 03-11-2009 05:11 AM

wow super great hack
installed in less than a minute
thanks buddy

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

sensimilla 03-23-2009 09:40 AM

nice work

geevest.com 03-24-2009 02:44 AM

good but if u qote the image.watermark is unshow.

mrtroybaker 03-24-2009 03:52 AM

Great Mod!!!!!!!! Had to uninstall due to broken links and other bugs but I see its still in development. Cant wait for new release

BalkanW 03-24-2009 04:53 AM

this is perfect...thanks end nominate

RL714 03-26-2009 10:04 PM

images doesnt show

dmknights 03-29-2009 08:02 PM

*Clicks Installed*

Is there a way to have an image instead of text?

woffie 03-29-2009 11:00 PM

Yep, uninstalled. All images show red x's if under the size I set.

chick 03-30-2009 01:38 AM

Uninstalled, watermark stop my animated smilies from working and interfered with other script... too bad this is such a nice idea. Thanks.

Keith_ 03-30-2009 08:30 PM

Up for updates!

ZzZ_ZzZ 04-06-2009 04:31 PM

only work attachment image? or other sites ?


All times are GMT. The time now is 12:20 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.02028 seconds
  • Memory Usage 1,792KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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