Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Watermark Generator Details »»
Watermark Generator
Version: 1.1, by Disasterpiece Disasterpiece is offline
Developer Last Online: Oct 2019 Show Printable Version Email this Page

Category: Social Group and Album Enhancements - Version: 4.0.x Rating:
Released: 05-17-2011 Last Update: 06-08-2011 Installs: 154
DB Changes Uses Plugins
Additional Files Is in Beta Stage  
No support by the author.

Quick Info

This mod adds a watermark to album and attachment images.
The watermark is customizable via image files or specified text.
Processed images are cached and the original files remain untouched, so you can modify or remove the watermark anytime you want.


Features

- Intelligent Caching
- Uses standard vBulletin methods, therefore no file modifications necessary
- Settings-Preview with a sample image in Adminpanel
- Generative plugin behaviour, works with most other mods which use the same hooks or use attachment images elsewhere

Installation

Code:
Step 1)

Upload files inside upload directory according to their structure:

> forum root
	> admincp
		+ pl_watermark_admin.php
	> images
		> misc
			+ plwm_sample.jpg
	> includes
		> cron
			+ pl_watermark_cron.php
		> xml
			+ cpnav_plwatermark.xml
		+ pl_watermark_functions.php
		+ pl_watermark_imagemanipulation.php


Step 2)

Import "product-plwatermark.xml" as addon into your vBulletin AdminCP


Step 3)

Navigate in your vBulletin AdminCP to PL Watermark Generator -> Plugin Settings.
Define the settings how you see fit. The options should be self-explanatory, if you need help with certain things, ask in the modification thread.

Changelog
Code:
v1.1
- Fixed potential security flaw on certain webserver configurations
- Improved install/updatescript
- (hopefully) fixed the grey-bar bug which occured on certain webserver configurations

v1.0
- Initial Beta Release
Additional Info

The Mod is currently in BETA. This means, that we tested it on a test environment (vb 4.0.x to 4.1.3) but has not yet undergo excessive stress test.
Keep an eye out for updated versions until the final release!
If you encounter any bugs, missing or misplaced features, let us know!

F.A.Q

- I don't see changes in my live images!
> To see changes on the image files you have to clear your browser's cache!
In firefox it's enough to force a fresh reload via STRG+F5 and on other browsers STRG+F5 or SHIFT+F5 should work.
If you don't perform this step, your browser will show the old cached version and maybe the watermark won't show or changes won't apply.

- My png/gif watermark isn't transparent, instead I get a black background!
> PNG-8 is known for having transparency problems, GIF in some cases as well.
Fall back to PNG-24 with Alpha channel (all modern image tools should be able to save as PNG-24)
If you have trouble creating a working png-24 with alpha channel, you can send me a PM with a link to your watermark and I'll convert it to png-24 for you.

- I have trouble with special characters or non-latin charactersets!
> The addon is using standard php functionalities for the text. If for any reason you have trouble with special chars, I suggest using a transparent png-24 with the text from an external image tool instead.

Support / Branding

We provide quality vbulletin software modifications for zero costs. To help our mod to be well-known, a backlink is added to your forum footer by the plugin, where the plugin is used in any way.
You must not remove the copyright/backlink code!
However, if you like to support us, you are allowed to remove the footer note with a small donation (10$ minimum).
If you choose to do so, we'll contact you via the email provided by paypal with instructions on how to remove the footer note.
A link to paypal donation service can be found on the top right area of this post.

Feel free to contact an author of the mod if you have any questions or suggestions.

Download Now

File Type: zip vb4-product-plwatermark_1_0.zip (216.1 KB, 222 views)
File Type: zip vb4-product-plwatermark_1_1.zip (216.4 KB, 1221 views)

Screenshots

File Type: jpg plwatermark_2.jpg (105.4 KB, 0 views)
File Type: jpg plwatermark_3.jpg (120.2 KB, 0 views)
File Type: jpg plwatermark_admin12.jpg (108.0 KB, 0 views)
File Type: jpg plwatermark_admin11.jpg (68.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
Ethelbert, furnival, Mopar1973Man, Ramzesik, Teascu Dorin

Comments
  #202  
Old 01-25-2016, 11:51 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am trying this with 4.2. Watermarking options are limited.

Does this take each image and then duplicate it with a watermark? We have thousands and thousands of images going back years. is this going to copy each one into the cache? I do not understand the Intelligent caching. The description says it does not touch the original images so what happens when images are unchached?

I really need a decent watermarking plug in. Does anyone know of another one that will not duplicate all images?
Reply With Quote
  #203  
Old 01-26-2016, 03:00 PM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67 View Post
Does this take each image and then duplicate it with a watermark?
Yes, but only as they are requested. If you have image 1-1000 in your attachment database and no new attachment requests are made, the watermark-cache is empty. If users request images 20-30, the cache now contains 10 images with a watermark.
Quote:
Originally Posted by RichieBoy67 View Post
We have thousands and thousands of images going back years. is this going to copy each one into the cache? I do not understand the Intelligent caching. The description says it does not touch the original images so what happens when images are unchached?
The original images are untouched, if a user requests an image, the plugin checks if a watermarked copy is already available in the cache. If so, the cached image is shown, if else, the plugin creates a watermarked version of it and stores it in the cache. If the cache is already at maximum capacity, one older cached image will be thrown out beforehand.

It duplicates only images that are requested by the user (read: shown) and the number of duplicate images at any time is at maximum the number you defined in the settings.

Quote:
Originally Posted by RichieBoy67 View Post
I really need a decent watermarking plug in. Does anyone know of another one that will not duplicate all images?
If you want the plugin not to store the duplicates, set the LRU size to 1 and/or set the cache lifetime to zero.

Altough I don't recommend that, you can still get the functionality like this.
Reply With Quote
Благодарность от:
RichieBoy67
  #204  
Old 01-26-2016, 07:48 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!

My main concerns are server resources and storage and having images watermarked when either hotlinked to other sites or downloaded.
Reply With Quote
  #205  
Old 01-26-2016, 08:18 PM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67 View Post
server resources
Well, applying image data takes some time to process. The point of the cache is to reduce server load, so the same image doesn't have to be processed every time it is requested. Hence, the cache.

Quote:
Originally Posted by RichieBoy67 View Post
and storage
That's what the LRU table size setting is for.

And besides, images aren't that huge. It is 2016, webserver storage capacity isn't weighted in gold anymore, so I don't really see the problem here tbh.

Quote:
Originally Posted by RichieBoy67 View Post
and having images watermarked when either hotlinked to other sites or downloaded.
That is the point of watermarks.
Reply With Quote
  #206  
Old 01-26-2016, 08:41 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Um yes.. I am just confused because the images are being served from the cache? Correct? I do not understand how this can still work without the cache.

And yes storage is still important on a server with multiple sites and hundreds of gigs of images.
Reply With Quote
  #207  
Old 01-26-2016, 08:51 PM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The image would still be saved to the cache temporarily, yes.
With the next image request, the old one would be deleted and the new cache image would be saved to disk as well.
Reply With Quote
  #208  
Old 01-26-2016, 11:43 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, so the issue with this I am trying to understand is that a temporary image with a watermark would be hotlinked and then when the cache is full that image would be removed?
Reply With Quote
  #209  
Old 01-28-2016, 05:17 PM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67 View Post
Ok, so the issue with this I am trying to understand is that a temporary image with a watermark would be hotlinked and then when the cache is full that image would be removed?
...and be re-generated when it is needed. Yes.
Reply With Quote
Благодарность от:
concepts
  #210  
Old 01-29-2016, 04:57 PM
concepts's Avatar
concepts concepts is offline
 
Join Date: May 2005
Location: Woodland Hills, Ca
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works BEAUTIFULLY!!!!
Reply With Quote
  #211  
Old 03-14-2016, 09:04 AM
cooltom cooltom is offline
 
Join Date: Mar 2016
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just install your plugin and work fine. Good to not forget setup correct write rights on cache folder :]
Question: How do you "calculate" size of transparent PNG image watermark?

-if u make it big for bigger images , it looks huge on small images
-if you make it good for smaller images it too small on bigger images

No way to resize png base on input image dimension? So u make it big as max allowed size of attachement image and when its smaller it just resize gnp wathermark to sit hight if the image (keep aspekt rato).

Now it just glue imput image and watermak png together.

The idea is have Watermark image same size on every image (doenst matter size of the image).

Thanks for ideas

Tomas
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 03:05 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.05762 seconds
  • Memory Usage 2,371KB
  • Queries Executed 28 (?)
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
  • (7)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
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (7)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete