Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Watermark Attached Images Details »»
Watermark Attached Images
Version: 1.00, by filburt1 filburt1 is offline
Developer Last Online: May 2007 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 05-31-2003 Last Update: Never Installs: 27
 
No support by the author.

This hack adds a watermark to attached images. The watermark, as specified by your own .png image, is added on image download, not when the image is attached. Requires GD2. Do not even try installing if you don't have GD2.

Show Your Support

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

Comments
  #22  
Old 06-01-2003, 08:47 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Grrr... I have GD2 but still after installing this all my attatchments show up as little X's...

Could it be that my .png file wasn't the right type?
Reply With Quote
  #23  
Old 06-01-2003, 09:03 PM
Magic Spark Magic Spark is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this one, Filburt!

Great!
Reply With Quote
  #24  
Old 06-01-2003, 09:47 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome job filb! This should help with preventing people from hotlinking attachments (not that I think they can anyway, since .htaccess things I've applied).
Reply With Quote
  #25  
Old 06-01-2003, 11:46 PM
Mike11212 Mike11212 is offline
 
Join Date: Jul 2002
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can anyone tell me if this shows the watermark on every image or only when the image is hotlinked
Reply With Quote
  #26  
Old 06-02-2003, 12:18 AM
WEForums WEForums is offline
 
Join Date: Apr 2003
Location: Jacksonville, Florida
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To my understanding, everytime the image is downloaded (viewed), you will get a watermark picture.I think (but don't quote me) it works for hotlinking as well as yoursite.

Anyway, how do you know if GD2 is enabled? Is there an easy way to find out? (I don't really know all the server details, I don't own the site/forum or anything.) Hopefully it's located somewhere on the site...
Reply With Quote
  #27  
Old 06-02-2003, 12:44 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found out by simply emailing my host and confirming it that way...

Email=good

Anyway, speaking of that I am using 2.2.9 and the code in attatchment.php is very similar.. Is that the reason this doesn't work for me? Has anyone else tried this in 2.2.9? What should I do? This is one of the coolest ideas ever and I can't use it
Reply With Quote
  #28  
Old 06-02-2003, 12:49 AM
jdmuniverse's Avatar
jdmuniverse jdmuniverse is offline
 
Join Date: Apr 2003
Location: Port St. Lucie FL
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having a small problem with gif files... the watermark shows all screwy On jpg it works like a charm though... Any ideas?

Heres a gif to see what I mean...

thanks again...
Reply With Quote
  #29  
Old 06-02-2003, 01:16 AM
Austin Dea's Avatar
Austin Dea Austin Dea is offline
 
Join Date: Dec 2001
Location: Denver, CO, USA
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice seat
Reply With Quote
  #30  
Old 06-02-2003, 01:17 AM
jdmuniverse's Avatar
jdmuniverse jdmuniverse is offline
 
Join Date: Apr 2003
Location: Port St. Lucie FL
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not bad eh? LOL
Reply With Quote
  #31  
Old 06-02-2003, 01:20 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

GIF support in PHP is generally horrible. However, I have a solution (which I don't have time to implement but anyone with GD2 experience can):

1. Load the gif using imagecreatefromstring
2. Create a new image via imagecreatetruecolor of the same dimensions
3. Copy the entire gif onto the new image
4. Destroy the original gif

The problem is likely a palette issue.
Reply With Quote
Reply

Thread Tools

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 02:37 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.05178 seconds
  • Memory Usage 2,290KB
  • 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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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