![]() |
Watermark Generator
1 Attachment(s)
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) Changelog Code:
v1.1 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. |
thank you bro
tested ,but for some unknown reason does not work - attacment not showing - not support Arabic incoding - when i use Watermark Cache Management that give me => cant find phrase BRB |
tested ,but for some unknown reason does not work
|
Problem with the png image, it looks completely black the rectangule of the image in the watermarked images.
v 4.1.2. I am trying to test with text, but I prefer image watermark. with text, is it possible to put a % of the size of image instead of the size of the text? (because perhaps it was 300 px image and 1024 px other, so it´s difficult to give only one text size. Thanks, great mod, |
1 Attachment(s)
@Dr.osamA:
Did you test the settings via preview first? Is the watermark rendered on the sample image? Try the steps below so we can find out why your attachments aren't displayed. @TEMPESTADE, inigo: Is it possible that you don't have the GD lib installed? To all others where the attachment doesn't show: You can upload the testattachments.php file from this post into your forum root dir. Then navigate to the file via browser and add the parameter i1 to it so it looks like this: http://someforum.tld/forum/testattachments.php?i1=13 Replace 13 with any image id which is big enough so the watermark should be displayed! Now if any errors occur, the script will output them, other than the attachment.php which disables error reporting completely. This way it's easier for me to pinpoint the problem. |
The GD lib is correctly running (I use it in vbgallery too:
Code:
GD Support enabled Thanks, |
1 Attachment(s)
Quote:
Did you set the alpha channel correctly? If png: Is it a 8-bit png or a 24-bit png? I attached a test image from which i know that the watermark generator can display. Can you test it out and tell me if it's applied correctly or has a black background too? |
1 Attachment(s)
Awesome mod! Thanks..
Attachment 129212 working on everything but cms article pages. works on promoted articles but mot ones created just for the front page and not originating from the forum. cms/content.php/ |
I have been testing, and the problem appears to be the PNG8, because the same image saved as PNG-24 is working.
Your test image was ok, but with no trasparency. So the problem is solved, PNG-24 working, but I have to do more tests, because there are some of the images without watermark,... and I think is because the browser's cache. so I will tell you when I can test deeply, Thanks, |
Works great in vB 4.1.3!!!
Thanks! Been looking for this for over 2 years now |
1 idea...
Is it possibe to also watermark the INLINE pictures added to a post? As far as i can see, only the attached pictures are watermarked. I have now disabled inline attachements on my forum. |
Quote:
Sadly, the php functions for image prcessing are limited, so its hard to find advanced tools without relying on external libaries not everyone has. For now, PNG-24 should work with full transparency, so I recommend to use it, also for the case if you run into charset issues with non-latin characters. Quote:
Those where people simply attach an image, grab the url to the fullsize picture and add that to the post? Or do you mean linking images from 3rd party sites? Quick note: 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. |
How this affects images that user chooses as background image for his profile?
|
Quote:
http://www.papegaaienforum.nl/showth...ich-aan-u-voor. |
Quote:
Quote:
|
Ok, i thought it was becouse the member has put the image between the post, instead of an attachment.
But indeed, after i have read your last post i figured out they are indeed external. Thanks for clearing that out ! |
thank you
|
it works with cms article?
|
Quote:
Also i still don't own the vb suite so i cant test it myself |
Quote:
http://www.cochesrc.com I wanted to the CMS section. |
Great Mod, But I can't get it to work with VBSEO when using a CDN, when i attach images they don't show, when looking at the properties of the image it shows that they are stored on the CDN..
|
Quote:
|
Installed with thanks for testing on our 4.1.3 development forum ....
Unfortunately, no watermarks (file or text) type appear on any pics in our forums ... :confused: Have flushed cache and done all of those things .... ;) Any help would be appreciated ... :up: Regards, Doug |
Quote:
In the adminCP, does the watermark appear on the sample image? Did you specify a cache directory and does cache files appear in this directory? |
1 Attachment(s)
Quote:
Quote:
Regards, Doug |
The cache directory doesn't seem complete to me, are you sure that's either a full path starting with a "/" and the directory exists and is writable or a relative path to the forum root dir starting without a "/" ? (Usually the web directory is somewhere around /var/www/htdocs/ or /var/www/vhosts/domain.tld/httpdocs, so it looks a bit odd to me)
The missing phrases don't have any impact on the functionality, it's just localized text which isn't found. That's something I'll fix in the next version. If the cache directory isn't the problem, follow the instructions in this post: https://vborg.vbsupport.ru/showpost....42&postcount=5 If there are error messages, they can be displayed via this script. |
Cache full path is there.... I just removed the front part for security reasons showing it public here.
I'll try the instructions in the other post tomorrow and let you know. Thanks for the help. :) Regards Doug |
Problems on VB4 which installed of vB Optimise, all cache flushed too.
|
haven't tried it, but maybe you have to set your cache directory to 777 (writable)
I did that at forehand, and it works on my vB 4.1.3 |
Hi ... :)
Ok, the output is an SQL error. For security and privacy, I have replaced our site name with xxxx's. Quote:
By the way, I have re-installed the mod twice just in case something went wrong with the original install. Does this help? Regards, Doug |
Quote:
Can you elaborate how the problem shows itself? Do you see no watermark, do the attachment images appear or not? Does the admincp settings page show any warnings or errors? Do you see the sample image with watermark on it? It should appear in the admincp plugin's settings at the bottom of the page. Quote:
Quote:
I'll make it more verbose in regards of errors in the next version. Please check manually if the table exists in your database. I assume that your mysql user hasn't enough permissions to create a table. So you have to create the table manually. To do so, go to your mysql administrative system (like phpmyadmin) and run these sqls, but only run them if and ONLY if the table doesn't exist yet: Code:
CREATE TABLE `{TABLE_PREFIX}plwmsettings` ( Code:
ALTER TABLE `{TABLE_PREFIX}plwmsettings` ADD PRIMARY KEY ( `varname` ) Code:
INSERT INTO `{TABLE_PREFIX}plwmsettings` ( |
Quote:
I did uninstall and re-install, but still have the same problem. I don't know why I wouldn't have permissions to add a table, as I've added dozens of mods that have tables to the sql databse and never had a problem. :confused: Regards, Doug |
Do you have access to a database administration tool by your hoster for example?
If not, I'd suggest to ask them for assistance. It's important to find out why the script doesn't find the table. If it doesn't exist, it's easy to create it with these mentioned sql queries. |
1 Attachment(s)
Quote:
Regards, Doug Edit: I viewed the devforum database in phpmyadmin and I see this list in the attached pic. I don't see any table starting with "plw", so can I assume it doesn't exist? |
1 Attachment(s)
This does not work at all for me i have verified directories, i do see my watermark images in the settings but thats all .... nothing gets watermarked
my attachment images just display the spinning loading symbol? |
1 Attachment(s)
Quote:
Might be an issue with the fact that you don't use any table prefix, but I'm not sure. However, execute the 3 queries I posted above, removing the {TABLE_PREFIX} part completely and tell me if it helped. (Make backups before running those queries), you can do that in the phpmyadmin via tab "SQL" or in the vb admincp, given that your userid is defined in the according config.php entry allowing to run sql queries. Quote:
Please upload the testattachments.php file into your vbulletin root file, navigate to the file via browser, add a ?i1=13 to the url that it looks like: Code:
http://myforumurl.com/forum/testattachments.php?i1=13 You can see the id of any attachment image by opening the file (rightclick -> Show image) and reading the id from the url. If all runs smoothly, the script should answer with: Quote:
This is the only way to display php warnings/errors, because the standard attachment system has them disabled completely. |
Quote:
Regards, Doug |
yes.
Normally you'd replace it with your table prefix, like "vb4_" for example so the correct table name gets created, but since you don't use table prefixes for your vbulletin tables, just the table name would be the correct name convention. . |
1 Attachment(s)
Quote:
I now have a table in the database and nothing seemed to blow up. (see pic) However, when I run preview or look at attachments, no watermark shows. In preview, I still don't see demo pic. :confused: Regards, Doug |
Looks good to me.
I updated the test script yesterday so it should be more verbose now. Download it from her: https://vborg.vbsupport.ru/showpost....1&postcount=36 Put it into your root dir and navigate to the script, adding ?i1=*number* to the url where *number* is the id from an image where the watermark should appear. |
All times are GMT. The time now is 12:14 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|