Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Watermark Images Posted In Threads Details »»
Watermark Images Posted In Threads
Version: 1.0, by 1Unreal 1Unreal is offline
Developer Last Online: Aug 2020 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.x Rating:
Released: 03-08-2009 Last Update: Never Installs: 113
Uses Plugins
Additional Files  
No support by the author.

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'

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 03-11-2009, 06:59 AM
crkgb crkgb is offline
 
Join Date: Oct 2007
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #23  
Old 03-12-2009, 08:27 AM
realmr realmr is offline
 
Join Date: Aug 2008
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does it watermark on attachment image or any site uploaded image ?
Reply With Quote
  #24  
Old 03-12-2009, 09:52 AM
doraj doraj is offline
 
Join Date: Nov 2005
Location: Italy
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This Mod is very dangerous, I tried it and when I unistalled it all images of my forum are disappears...
Reply With Quote
  #25  
Old 03-14-2009, 01:55 AM
racingsolution racingsolution is offline
 
Join Date: Feb 2007
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Subscribed .. waiting for bug fixes and more features
Reply With Quote
  #26  
Old 03-14-2009, 11:50 AM
Ljusya Ljusya is offline
 
Join Date: Jul 2007
Location: Irkutsk
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #27  
Old 03-17-2009, 04:38 AM
Chris583 Chris583 is offline
 
Join Date: Jan 2006
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #28  
Old 03-17-2009, 04:10 PM
tuwebfacil tuwebfacil is offline
 
Join Date: Jan 2005
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hope to see the catching feature soon, since this can increase the server load, a lot for a big forum!
Reply With Quote
  #29  
Old 03-17-2009, 07:53 PM
muckleroy muckleroy is offline
 
Join Date: Mar 2009
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

gif issue confirmed. I had to disable to get everything back to normal.
Reply With Quote
  #30  
Old 03-23-2009, 05:02 AM
amin's Avatar
amin amin is offline
 
Join Date: Dec 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chris583 View Post
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 View Post
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
Reply With Quote
  #31  
Old 03-23-2009, 08:52 AM
qpo qpo is offline
 
Join Date: Jan 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Arcade Fire View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05453 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete