vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   BB Code Enhancements - Watermark Images BB Code - [wm] (https://vborg.vbsupport.ru/showthread.php?t=215974)

1Unreal 06-11-2009 10:00 PM

Watermark Images BB Code - [wm]
 
1 Attachment(s)
What does it do?
What this mod does is allows your users to watermark images using a BB Code called [wm]. It creates the watermarks using the GD. It then saves these watermarked images to your server.

Installation Instructions
  1. Download the product and install it on your forum
  2. Create a directory called "wmcache" and set the permissions/CHMOD to 777 - THIS PART IS IMPORTANT
  3. Then you can start using it!

Syntax
Very simple syntax
[wm=Watermark text]URL to image[/wm]

What's to come
This product is still in the beta stages so I want to make sure it works well before adding new bits. However once all of the holes have been plugged I will add new features. Firstly I will add support for fonts and the ability to adjust the size and colour of the watermark background. I appreciate it's a bit ugly at the moment. This will all be customizable in the Admin CP. So make sure you click install to ensure you get the new features. :)

Daniel_HBK 06-12-2009 03:09 AM

AMAZING hack! really thank you :)

brhoom 06-12-2009 04:14 AM

Nice work
Thanks

RL714 06-12-2009 04:50 AM

wow this is amazin bro, thanks let me try

GeoMapia 06-12-2009 10:52 AM

after first use all things are ok

after refresh topic, this error occured:

Code:

Warning: getimagesize(URL to image) [function.getimagesize]: failed to open stream: No such file or directory in [path]/includes/class_bbcode.php(158) : eval()'d code on line 4
this is amazin , thanks

but this is kill Bandwidth

uninstalled

letsjoy 06-12-2009 10:55 AM

nice mod man thnx

bleros 06-12-2009 11:51 AM

Warning: getimagesize() [function.getimagesize]: Unable to access xxxx-xxxx.net][/I] <a href="http://i39.tinypic.com/1zxry9s.gif" target="_blank">http://i39.tinypic.com/1zxry9s.gif</a> in [path]/includes/class_bbcode.php(172) : eval()'d code on line 4

Warning: getimagesize(xxxx-xxxx.net][/I] <a href="http://i39.tinypic.com/1zxry9s.gif" target="_blank">http://i39.tinypic.com/1zxry9s.gif</a>) [function.getimagesize]: failed to open stream: No such file or directory in [path]/includes/class_bbcode.php(172) : eval()'d code on line 4

Warning: getimagesize() [function.getimagesize]: Unable to access xxxx-xxxx.net][/I] <a href="http://i39.tinypic.com/1zxry9s.gif" target="_blank">http://i39.tinypic.com/1zxry9s.gif</a> in [path]/includes/class_bbcode.php(172) : eval()'d code on line 4

Warning: getimagesize(xxxx-xxxx.net][/I] <a href="http://i39.tinypic.com/1zxry9s.gif" target="_blank">http://i39.tinypic.com/1zxry9s.gif</a>) [function.getimagesize]: failed to open stream: No such file or directory in [path]/includes/class_bbcode.php(172) : eval()'d code on line 4

1Unreal 06-12-2009 01:04 PM

Quote:

Originally Posted by GeoMapia (Post 1828209)
after first use all things are ok

after refresh topic, this error occured:

Code:

Warning: getimagesize(URL to image) [function.getimagesize]: failed to open stream: No such file or directory in [path]/includes/class_bbcode.php(158) : eval()'d code on line 4
this is amazin , thanks

but this is kill Bandwidth

uninstalled

Im unable to recreate this. I posted a new topic and refreshed a number of times and didn't notice anything wrong.

Quote:

Originally Posted by bleros (Post 1828237)
Warning: getimagesize() [function.getimagesize]: Unable to access xxxx-xxxx.net][/I] <a href="http://i39.tinypic.com/1zxry9s.gif" target="_blank">http://i39.tinypic.com/1zxry9s.gif</a> in [path]/includes/class_bbcode.php(172) : eval()'d code on line 4

Warning: getimagesize(xxxx-xxxx.net][/I] <a href="http://i39.tinypic.com/1zxry9s.gif" target="_blank">http://i39.tinypic.com/1zxry9s.gif</a>) [function.getimagesize]: failed to open stream: No such file or directory in [path]/includes/class_bbcode.php(172) : eval()'d code on line 4

Warning: getimagesize() [function.getimagesize]: Unable to access xxxx-xxxx.net][/I] <a href="http://i39.tinypic.com/1zxry9s.gif" target="_blank">http://i39.tinypic.com/1zxry9s.gif</a> in [path]/includes/class_bbcode.php(172) : eval()'d code on line 4

Warning: getimagesize(xxxx-xxxx.net][/I] <a href="http://i39.tinypic.com/1zxry9s.gif" target="_blank">http://i39.tinypic.com/1zxry9s.gif</a>) [function.getimagesize]: failed to open stream: No such file or directory in [path]/includes/class_bbcode.php(172) : eval()'d code on line 4

How did you get this error?

bleros 06-13-2009 09:23 AM

when i'm posting. i'm get this error above site

[wm=Hello]http://i39.tinypic.com/1zxry9s.gif[/wm]

1Unreal 06-13-2009 03:58 PM

Quote:

Originally Posted by bleros (Post 1828859)
when i'm posting. i'm get this error above site

[wm=Hello]http://i39.tinypic.com/1zxry9s.gif[/wm]

I can't think why to be honest. All I can say is make sure you have GD correctly installed and have CHMODded wmcache to 777.

saadessa 06-13-2009 04:37 PM

nice hack thank you i will try it

IdanB 06-13-2009 04:43 PM

nice mod :)
However i must mention the chmod 777 sounds bit security risk to me.
Why there is any need to give "Everyone" a "write" and/or "execute" permissions ?

1Unreal 06-13-2009 04:45 PM

Quote:

Originally Posted by IdanB (Post 1829059)
nice mod :)
However i must mention the chmod 777 sounds bit security risk to me.
Why there is any need to give "Everyone" a "write" and/or "execute" permissions ?

Lots of plugins require you to CHMOD something to 777. Just make sure its writable, thats the main thing.

saadessa 06-13-2009 04:51 PM

i get this error

Warning: getimagesize(elmwaheb almotajadeda[/i]]<i><a href="http://www.samysoft.net/forumim/islamic1/1/616134056.jpg" target="_blank">http://www.samysoft.net/forumim/isla.../616134056.jpg</a></i>) [function.getimagesize]: failed to open stream: No such file or directory in [path]/includes/class_bbcode.php(172) : eval()'d code on line 19


sorry unstilled

1Unreal 06-13-2009 05:05 PM

Quote:

Originally Posted by saadessa (Post 1829065)
i get this error

Warning: getimagesize(elmwaheb almotajadeda[/i]]<i><a href="http://www.samysoft.net/forumim/islamic1/1/616134056.jpg" target="_blank">http://www.samysoft.net/forumim/isla.../616134056.jpg</a></i>) [function.getimagesize]: failed to open stream: No such file or directory in [path]/includes/class_bbcode.php(172) : eval()'d code on line 19


sorry unstilled

Could you post what BB code you used please. I need to make sure you used the correct syntax.

saadessa 06-13-2009 05:18 PM

Quote:

Originally Posted by 1Unreal (Post 1829074)
Could you post what BB code you used please. I need to make sure you used the correct syntax.

installed again so tested

Create a directory called "wmcache" and set the permissions/CHMOD to 777

the same error appear

i post

[wm=test test test]http://www.samysoft.net/forumim/isla.../616134056.jpg[/wm]

thank you

this is nice hack i need it
please need to understand to correct ??? :confused:

1Unreal 06-13-2009 05:30 PM

Im really not sure, I did a fresh install of the mod on my test board and pasted this code in

[wm=test]http://www.samysoft.net/forumim/islamic1/1/616134056.jpg[/wm]

And it worked perfectly. I think it might be something to do with your server. Try contacting your host and ask them if they have any limitations regarding the GD.

saadessa 06-13-2009 05:47 PM

Quote:

Originally Posted by 1Unreal (Post 1829092)
Im really not sure, I did a fresh install of the mod on my test board and pasted this code in

[wm=test]http://www.samysoft.net/forumim/islamic1/1/616134056.jpg[/wm]

And it worked perfectly. I think it might be something to do with your server. Try contacting your host and ask them if they have any limitations regarding the GD.

thank you 1Unreal for this great job
i will check with host
so i will try again :)

saadessa 06-13-2009 06:03 PM

i foud code check for GD on the site after check

the result is ( GD v2 installed )

i dont no if this code is true ( is GD installed on my server or no )

PHP Code:

<?PHP  
//check if gd library is installed  
function gdCheck() {  
    if (
function_exists('imagecreatetruecolor')) {  
        print 
"GD v2 installed";  
    }  
    elseif (
function_exists('imagecreate')) {  
        print 
"GD v1 installed";  
    }  
    else {  
        print 
"GD not installed";  
    }  
}  
 
gdCheck();  
?>

i wait the replay :erm:

1Unreal 06-13-2009 07:17 PM

Quote:

Originally Posted by saadessa (Post 1829104)
i foud code check for GD on the site after check

the result is ( GD v2 installed )

i dont no if this code is true ( is GD installed on my server or no )


I wait the replay :erm:

Type in

PHP Code:

<?php
phpinfo
();
?>

into a PHP file and run it and check the GD settings. It should be something similar to this:

https://vborg.vbsupport.ru/external/2009/06/111.jpg

Let me know of any differences.

Smiry Kin's 06-13-2009 07:44 PM

unsure if already released but anyway to make an image be watermarked by defaul e.g no need to put [wm= etc]

1Unreal 06-13-2009 07:48 PM

Quote:

Originally Posted by Smiry Kin's (Post 1829165)
unsure if already released but anyway to make an image be watermarked by defaul e.g no need to put [wm= etc]

What do you mean? Theres nothing in vB which allows you to watermark images.

Smiry Kin's 06-13-2009 07:51 PM

Didnt say within vB i said thats been released...
Just wondering if theres away to watermark images via img or attachment? without having to put the [wm=Watermark text]URL to image[/wm] there?

1Unreal 06-13-2009 11:26 PM

Quote:

Originally Posted by Smiry Kin's (Post 1829174)
Didnt say within vB i said thats been released...
Just wondering if theres away to watermark images via img or attachment? without having to put the [wm=Watermark text]URL to image[/wm] there?

You want every image posted to be watermarked?

Well I made a mod like this before but it just didn't work very well. I think this is better.

bleros 06-14-2009 02:10 PM

Quote:

Originally Posted by 1Unreal (Post 1829038)
I can't think why to be honest. All I can say is make sure you have GD correctly installed and have CHMODded wmcache to 777.

im create wmcache folder whith 777 permission soo.. need to put some image in this folder or

1Unreal 06-14-2009 07:44 PM

Quote:

Originally Posted by bleros (Post 1829529)
im create wmcache folder whith 777 permission soo.. need to put some image in this folder or

No thats all you need to do with that folder. Thats where the new watermarked images are stored.

Once you have done that you can use the BB Code

GhoHan 06-14-2009 08:37 PM

this product i'm tested on vbulletin 3.8.3 today is working fine for .jpg
http://i-comers.com/showpost.php?p=348899&postcount=15

and tested on file .png and .gif is not very good but this is very good idea.
need more inovation for this product.

I'm installed and nominate.
Thank you very much sir i hope you to be continue develop this modification.
Best Regards

1Unreal 06-14-2009 09:46 PM

Quote:

Originally Posted by i-comers.com (Post 1829774)
this product i'm tested on vbulletin 3.8.3 today is working fine for .jpg
http://i-comers.com/showpost.php?p=348899&postcount=15

and tested on file .png and .gif is not very good but this is very good idea.
need more inovation for this product.

I'm installed and nominate.
Thank you very much sir i hope you to be continue develop this modification.
Best Regards

Thank you very much :)

Ive tested it on a number of .png and .gif images and didn't notice anything wrong. Could you give me more details on what images to tested it on so I can try to improve :)

MARCO1 06-15-2009 10:29 AM

I See this message and some warnings
Quote:

Image format is not supported by PHP so it could not be watermarked

MARCO1 06-15-2009 10:32 AM

I Will Install GD Now :)

MARCO1 06-15-2009 11:14 AM

1 Attachment(s)
GD Installed Now the messages is the same :(
this is picture from GD Settings and it didn't have any problem

https://vborg.vbsupport.ru/external/2009/06/109.jpg

waiting any fixes of this great hack

1Unreal 06-16-2009 12:48 AM

Quote:

Originally Posted by MARCO1 (Post 1829987)
I See this message and some warnings

Quote:

Originally Posted by MARCO1 (Post 1830001)
GD Installed Now the messages is the same :(
this is picture from GD Settings and it didn't have any problem

https://vborg.vbsupport.ru/attachmen...1&d=1238764208

waiting any fixes of this great hack

It could be that teh image is not supported by PHP. jpg, gif and png are the only image formats you can use.

7lanet 06-20-2009 08:15 AM

all type img (gif - jpg .....atc)

Image format is not supported by PHP so it could not be watermarked

why?

1Unreal 06-20-2009 09:09 AM

Quote:

Originally Posted by 7lanet (Post 1833192)
all type img (gif - jpg .....atc)

Image format is not supported by PHP so it could not be watermarked

why?

I only added support for those 3 formats because they are the only ones used on the web. Others such as BMP are not used.

What image did you try to use?

gtr-3000 06-22-2009 02:39 AM

Warning: getimagesize(test[/I]]http://localhost/vb/images/misc/vbulletin3_logo_white.gif) [function.getimagesize]: failed to open stream: Invalid argument in [path]\includes\class_bbcode.php(170) : eval()'d code on line 4

whats the problem ??

realmr 06-22-2009 12:38 PM

so this means we can watermark images uploaded in remote also or will it watermark only the attached images on forum ?

Wenbie 06-27-2009 05:02 AM

Nice mod, thanks!!

But is there any way to change the font of the watermark?

Also, would there be any ways to add a button on the editor via custom bbcode? I tried but it won't let me cause when I enter the bbcode tag name as "wm", it says the code name already exists.

1Unreal 06-27-2009 04:02 PM

Quote:

Originally Posted by realmr (Post 1834717)
so this means we can watermark images uploaded in remote also or will it watermark only the attached images on forum ?

Yes it supports external images

Quote:

Originally Posted by Wenbie (Post 1838243)
Nice mod, thanks!!

But is there any way to change the font of the watermark?

Also, would there be any ways to add a button on the editor via custom bbcode? I tried but it won't let me cause when I enter the bbcode tag name as "wm", it says the code name already exists.

I'll add support for fonts soon.

I'm not sure about the button thing, that appears to be a vB issue that I'm not sure how to fix.

I'll look into it though.

deadlySniper 06-27-2009 04:08 PM

Nice, thanks.

Wenbie 06-28-2009 04:01 AM

Quote:

Originally Posted by 1Unreal (Post 1838465)
I'll add support for fonts soon.

I'm not sure about the button thing, that appears to be a vB issue that I'm not sure how to fix.

I'll look into it though.

Thanks! I'll check the thread regularly for the fonts support ^^


All times are GMT. The time now is 06:38 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.01443 seconds
  • Memory Usage 1,848KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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