vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   (ask) add watermark to attached pictures (https://vborg.vbsupport.ru/showthread.php?t=233308)

ndut 01-16-2010 11:20 PM

(ask) add watermark to attached pictures
 
hi, .. want to ask.

anybody know, how to add wattermark to the pictures that attached to the forum?
help me, please.

thank you

Bouncer222 01-17-2010 04:47 PM

I need this as well, is there a way to automatically add a watermark to any pictures attached in the forums?

fishmaster 01-18-2010 10:10 AM

This would be awesome..

iceman-x 01-21-2010 08:18 AM

Same for me, i really need this. Any one. :)

Reed_HCT 01-21-2010 10:55 AM

It would be very userful for me, too.

Vaupell 01-21-2010 03:53 PM

i got a php snippit i used on another "non vbulletin" site,
where i added watermarks on all uploaded images..

could be incoorperated into vb i guess,
just need to know a hook location or template where i can
"intercept" a uploading image, and do the dirty work. :D

BSMedia 01-21-2010 04:13 PM

There's only 11-12 different hook locations for the attachments so hopefully one of them will do it.

Bouncer222 01-21-2010 07:49 PM

Yes , please share how you did it, we all need it :)

HondaATC 01-26-2010 04:48 PM

I had one installed on my 4.0 Suite, and it worked on almost all the images, but it caused some displaying issues on the rest of them. So I took it off. This is what I was using: https://vborg.vbsupport.ru/showthread.php?t=112829

You will need to rebuild your thumbnails if you do install it. I provide no support for it, just offering what I've experienced so far.


Would love to have one that works fully without any issues. If I knew php better I'd figure out what the issues were in that one and jsut correct them myself, but I don't.

Bouncer222 01-26-2010 08:11 PM

What do you mean by you will need to rebuild your thumbnails if I do install it?

Also I have a mod..(too lazy to find it right now, the link) that automatically resizes images in forums but not on the index page of the site (we run vbadvanced )

So will that conflict in any way or something? Since I am guessing without reading yet about that watermark mod.. that it only uses one image as watermark for all.. so if images are different sizes.. its going to appear messed up?

And what type of display issues you have?

Thanks.

--------------- Added [DATE]1264544010[/DATE] at [TIME]1264544010[/TIME] ---------------

That is a 3.5 modifcation... no modifications under 4.0 work on 4.0 obviously.... The code was completely rewritten.

Vaupell 01-26-2010 09:21 PM

Quote:

Originally Posted by Bouncer222 (Post 1967387)
What do you mean by you will need to rebuild your thumbnails if I do install it?

Also I have a mod..(too lazy to find it right now, the link) that automatically resizes images in forums but not on the index page of the site (we run vbadvanced )

So will that conflict in any way or something? Since I am guessing without reading yet about that watermark mod.. that it only uses one image as watermark for all.. so if images are different sizes.. its going to appear messed up?

And what type of display issues you have?

Thanks.

--------------- Added [DATE]1264544010[/DATE] at [TIME]1264544010[/TIME] ---------------

That is a 3.5 modifcation... no modifications under 4.0 work on 4.0 obviously.... The code was completely rewritten.

i use a couple of 3.5 modifications image resizer, hide bbcode, and a couple more all works
just fine under vb4.

mods that work under both vb3 and 4 are mods with only php and admincp,
as soon as you have vbcode and templates involved they stop working :D

Tx for the link to that watermark, thats the hook gonna work from..

HondaATC 01-26-2010 09:45 PM

I had it installed on my 4.0 suite and for the most part it was working. I used it for a few weeks. I might try using it again. Some images in articles did not display correctly. Everything on the forum, the albums, and most other articles on the CMS did work correctly. But the articles that it was not functioning on were important, so I disabled it.

Bouncer222 01-26-2010 09:53 PM

wow I never knew that....which helps me a lot

So you're saying if the addon only has a php file in the download AND A PRODUCT (xml) file , the it will work on 4.0 suite?

Doesn't the product have to be updated to vb 4.0 as well?

HondaATC 01-26-2010 11:55 PM

Only if it has a version checker in it. That one I linked to did not.

Bouncer222 01-27-2010 12:01 AM

what you mean only if it has a version checker in it? please elaborate.

HondaATC 01-27-2010 12:17 AM

Some mods/plugins/products have a script to check the version of vBulletin, to make sure that the mod/plugin/product does not run on anything other than the version of vbulletin it was designed for. That is a version checker.

Bouncer222 01-27-2010 02:36 AM

k well since threads here of mods dont let u know if it has a version checker, anyway to find out or just have to try and install it?

so i should only install php files and xml and no template edits yes?

BBR-APBT 01-27-2010 03:25 AM

Quote:

Originally Posted by HondaATC (Post 1967537)
Only if it has a version checker in it. That one I linked to did not.

This is not true. While some plugins might work some may not. It depends what hook they use. What sql it uses etc. How ever it is not to hard to update plugins from previous versions of vBulletin for 4.0.

Your best bet is to set up a test board and try it out for your self.

sticky 01-27-2010 05:41 AM

Got a plugin from an older version to work! My attachments now have watermarks, YAY!

abbasbsp 01-27-2010 07:44 AM

Quote:

Originally Posted by ndut (Post 1957782)
hi, .. want to ask.

anybody know, how to add wattermark to the pictures that attached to the forum?
help me, please.

thank you

This here ndut dut heheheheh https://vborg.vbsupport.ru/showthread.php?t=234271

ndut 01-27-2010 07:30 PM

ichal, thank you :)

HondaATC 01-27-2010 08:23 PM

Quote:

Originally Posted by BBR-APBT (Post 1967637)
This is not true. While some plugins might work some may not. It depends what hook they use. What sql it uses etc. How ever it is not to hard to update plugins from previous versions of vBulletin for 4.0.

Your best bet is to set up a test board and try it out for your self.

Sorry, I didn't mean to imply that if it didn't have a version checker script it would automatically work. Only that, if it didn't have a version checker script, it wouldn't fail because of the plugin "being the wrong version". Obviously hook locations, syntaxes, etc. change from version to version. I was only trying to point out that you aren't going to get an error when you upload it that says "Plugin was made for xxx version of vBulletin. Actual version is xxx, terminating product." or something similar.

iceman-x 01-28-2010 08:26 AM

Quote:

Originally Posted by ichal_spy (Post 1967758)

Thank you.

Yhhaaahoo :)

HondaATC 03-04-2010 09:10 PM

I've just made a feature request for this to be native in some future version of 4.0, in the vbulletin.com projects section. Feel free to comment on it: http://www.vbulletin.com/forum/proje...?issueid=36738

kevin2008 03-08-2010 07:38 AM

Same for me, i really need this. Any one

Please coders, update for vb 4.xx

Thank you in advance

bornoffire 06-16-2010 07:56 PM

Anything for 4.0?

ndut 01-01-2011 08:46 AM

anyone know how to do this, on vb 4.1.0 PL2 ?


All times are GMT. The time now is 04:16 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.01105 seconds
  • Memory Usage 1,769KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete