vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Attached Image Watermark (https://vborg.vbsupport.ru/showthread.php?t=112829)

Ntfu2 04-11-2006 10:00 PM

Attached Image Watermark
 
This plugin will watermark attached images on your forums. works on 3.5.3 for sure, probably works on others as well.

Simply upload new Plugin, Then Edit the Three Following lines, then Activate plugin.

Edit this line to match your watermark file:
$WATERMARK_PNG_FILE = '/home/ntfu2/public_html/watermark.png';

Edit this line for bottom or centered
$WATERMARK_POSITION = 'bottom_left';

You can test with your userid only first, Edit this line
$VB_USER_ID = 0;

ATTACHMENTS MUST BE IN FILESYSTEM

does not support .gif since it will stop any animated gif from playing. watermarks, .jpg and .jpeg You can probably add code to watermark others.

If you use it click install, i'll try to give support, but only to those who install
Edit: UkJimbo made this modification for me, i paid for it, so therefore i am releasing it to the public

Enjoy!

Hemanth 04-12-2006 04:17 PM

Great Plugin. Thanks.

Daniel 04-12-2006 04:34 PM

Nice one. :)

steadicamop 04-12-2006 04:37 PM

woohoo first install, thanks, been waiting for this from 3.0.0.

The Chief 04-12-2006 05:13 PM

screenshots??

akanevsky 04-12-2006 05:22 PM

Does this work with files stored in the filesystem?

dan35 04-12-2006 06:20 PM

Thank you! Clicked installed!

Barakat 04-12-2006 06:49 PM

installed >

Ntfu2 04-12-2006 07:41 PM

Quote:

Originally Posted by Psionic Vision
Does this work with files stored in the filesystem?


yes, thats where mine are stored.


Quote:

Screenshot
Its just a watermark? Really cant take a screen shot of it(that and all i have is adult attachments atm :D)

The Chief 04-12-2006 08:01 PM

Quote:

Originally Posted by Ntfu2
yes, thats where mine are stored.




Its just a watermark? Really cant take a screen shot of it(that and all i have is adult attachments atm :D)

I don't even know what's a watermark that's why... :(

ConqSoft 04-12-2006 08:57 PM

Thanks. Any chance you'll be releasing an add-on to watermark all existing attachments too? ;)

ConqSoft 04-12-2006 09:02 PM

Nevermind. Didn't notice it was an on-the-fly watermark. ;)

ConqSoft 04-12-2006 09:09 PM

Hmm. Interesting. Do you see anything strange with this JPG? It doesn't get watermarked on my site. Is it a Progressive JPEG perhaps? Hmm.

I've ran across a few others also. The others are really strange, since they're all the same size, and all came off the same camera phone. 3 of them watermark fine, the other 2 don't.

ConqSoft 04-12-2006 09:20 PM

Any way to add an option for the minimum size image to process?

If someone attaches a small image (smaller than the thumbnail size, for example), it still tries to add the watermark. (See Attached)

PabloAM 04-12-2006 09:24 PM

NOT RUN IN MY WEB.
http://www.xboxers360.net/showthread...=4551#post4551

WHY??? :(

Deska 04-12-2006 09:52 PM

Very nice hack Ntfu2 :)
[high]* Deska click install ;)[/high]

Btw, I second request with ConqSoft's post above.

apfparadise 04-12-2006 11:34 PM

A couple of questions

1. Is it possible to make it so that a certain usergroup (premium members) dont have a watermark on their images attached?

2. I am also looking for the same exact thing for the Photopost VBGallery (formerly VBAdvanced Gallery), where it does it but NOT for a certain usergroup. THat one I had put out a paid request for and was not able to get it done.

zurv 04-13-2006 02:08 AM

Hey

I have tried and tried and tried and cannot seem to get this to work. I upload the plugin, change the address, and NOTHING. no change on my images, no watermark, not even an error. Nothing.

I have tried reuploading multiple times, and I have tried making my watermark a 8 bit, 24, and 32 bit PNG.

What bit should it be?

The forum is www.finishingtalk.com, help me out. I will click install once I get it working.

Thanx in advance,
-Griffe

Snake 04-13-2006 01:39 PM

Sweet, I've been waiting for this! :)

Ntfu2 04-13-2006 02:14 PM

Quote:

Originally Posted by ConqSoft
Hmm. Interesting. Do you see anything strange with this JPG? It doesn't get watermarked on my site. Is it a Progressive JPEG perhaps? Hmm.

I've ran across a few others also. The others are really strange, since they're all the same size, and all came off the same camera phone. 3 of them watermark fine, the other 2 don't.


That is strange, and i'm not real sure of the problem

Quote:

any way to set a minium site
I'm sure there is, but my coding skills are extremly lacking to say the least, but i will try to figure something out.

Ntfu2 04-13-2006 02:17 PM

Quote:

Originally Posted by zurv
Hey

I have tried and tried and tried and cannot seem to get this to work. I upload the plugin, change the address, and NOTHING. no change on my images, no watermark, not even an error. Nothing.

I have tried reuploading multiple times, and I have tried making my watermark a 8 bit, 24, and 32 bit PNG.

What bit should it be?

The forum is www.finishingtalk.com, help me out. I will click install once I get it working.

Thanx in advance,
-Griffe


these are obvisous answers, But make sure your watermark is uploaded to the correct directory,

are you using /home/xxxx/watermark.png type file path, or http://www.site.com/watermark.png type? Try both, that may help.

Let me know how that works

Ntfu2 04-13-2006 02:19 PM

Quote:

Originally Posted by apfparadise
A couple of questions

1. Is it possible to make it so that a certain usergroup (premium members) dont have a watermark on their images attached?

2. I am also looking for the same exact thing for the Photopost VBGallery (formerly VBAdvanced Gallery), where it does it but NOT for a certain usergroup. THat one I had put out a paid request for and was not able to get it done.


1. I couldnt figure out how to do it, but i'm sure a more experience coder with more vBulletin history can probably modify this to do it.

2. I have 0 experience with Photopost VBGallery or its former self, so i'm no help there either

Ntfu2 04-13-2006 02:21 PM

Quote:

Originally Posted by PabloAM



not sure, if you could set me up with Admin privlages over just the plugin manager i can take a look for you

PabloAM 04-13-2006 04:05 PM

Quote:

Originally Posted by Ntfu2
not sure, if you could set me up with Admin privlages over just the plugin manager i can take a look for you

I have vbulletin 3.5.2, plugin accelerator, template comprees, template cache system, and I updated han refresh...

More information??

sorry but privilegis not

zurv 04-13-2006 04:18 PM

Quote:

Originally Posted by Ntfu2
these are obvisous answers, But make sure your watermark is uploaded to the correct directory,

are you using /home/xxxx/watermark.png type file path, or http://www.site.com/watermark.png type? Try both, that may help.

Let me know how that works

I have tried both, even though in the code it says not to use http://

What bit should the PNG's be? Could someone please send me their watermark png (that is working) to zurv{at}zurv.com

If I do get it working, will all thumbnails and attached images be updated? Or only ones uploaded from that point on?

-Griffe

ConqSoft 04-13-2006 04:25 PM

It's done on-the-fly; no images are modified. So, it will work for all images, past and present.

UK Jimbo 04-13-2006 06:39 PM

Hi Dave - when I wrote this code I thought it was just for your forum. I wasn't expecting you to release it publically.

Seems a bit odd if you can't support it too.

kofoid 04-13-2006 07:44 PM

this kicks butt!!!! I wonder if there is any way to get it to show a watermark across https://vborg.vbsupport.ru/ images - if so, sign me up!

XanTrax 04-14-2006 02:49 AM

What exactly is a watermark? Is it like a tag from your site that gets put on every image?

ConqSoft 04-14-2006 02:50 AM

Yes.

zurv 04-14-2006 05:19 AM

Quote:

Originally Posted by UK Jimbo
Hi Dave - when I wrote this code I thought it was just for your forum. I wasn't expecting you to release it publically.

Seems a bit odd if you can't support it too.

lol, so you wrote it for him, but he posted it as his hack? No wonder it says "ill try and support it"

utw-Mephisto 04-14-2006 05:41 AM

Quote:

Originally Posted by UK Jimbo
Hi Dave - when I wrote this code I thought it was just for your forum. I wasn't expecting you to release it publically.

Seems a bit odd if you can't support it too.


Busted ! LOL :bunny:

zurv 04-14-2006 05:47 AM

lol and hes asking for donations!

Neo198x 04-14-2006 11:15 AM

not work :((
it's my watermark image: http://www.loveyahu.org/forum/watermark.png
My code
PHP Code:

// the path to the PNG file that you want to overlay with
// must be on the local machine, not an http:// URL
$WATERMARK_PNG_FILE '/home2/loveyahu/public_html/forum/watermark.png';

// how you want to position the watermark enter either center or bottom_left
$WATERMARK_POSITION 'bottom_left';

// user you want to see watermarking on - this is just for testing
// set to 0 to work for all users
$VB_USER_ID 807;

// end variables - you shouldn't need to edit below here 


Ahsin1 04-14-2006 03:10 PM

where do we have to edit lines

bada_bing 04-15-2006 02:45 AM

pretty cool will reserve for an install

Ntfu2 04-15-2006 03:09 AM

Yea UkJim coded it, but i paid for the modification and was under the impression that since i paid for the code essentially i could release it, and whats wrong with asking for a donation to recoup some of the cost?



Quote:

Originally Posted by Neo198x
not work :((
it's my watermark image: http://www.loveyahu.org/forum/watermark.png
My code
PHP Code:

// the path to the PNG file that you want to overlay with
// must be on the local machine, not an http:// URL
$WATERMARK_PNG_FILE '/home2/loveyahu/public_html/forum/watermark.png';

// how you want to position the watermark enter either center or bottom_left
$WATERMARK_POSITION 'bottom_left';

// user you want to see watermarking on - this is just for testing
// set to 0 to work for all users
$VB_USER_ID 807;

// end variables - you shouldn't need to edit below here 



Make sure thats your user id

zurv 04-15-2006 03:15 AM

lol nothing wrong with it.. I just think its funny. If you paid for it you can do anything you want :)

btw I am having the same problem as Neo198x. And I know thats my correct username.

beezo 04-15-2006 08:19 AM

I have 3.5.4 and it is not working for me. Anyone on this version have it working? If so, what type of PNG do you have (i.e. PNG 8, PNG 32, GIF, JPG) and did you have to do something else besides edit those 3 lines.

Ntfu2 04-15-2006 04:11 PM

Forgot to Add Make sure you have GD2+ in the vBulletin options.

I'll add a watermark file i know works later today when i get a chance for people to test.

If anyone wishes to have me take a look at it if it doesnt work, simply add a admin account with privlages over the plugin system for a couple of minutes.


All times are GMT. The time now is 03:17 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.01466 seconds
  • Memory Usage 1,829KB
  • 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_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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