View Full Version : BB Code Enhancements - Watermark Images BB Code - [wm]
1Unreal
06-11-2009, 10:00 PM
What does it do?
What this mod does is allows your users to watermark images using a BB Code called . It creates the watermarks using the GD. It then saves these watermarked images to your server.
Installation Instructions
Download the product and install it on your forum
Create a directory called "wmcache" and set the permissions/CHMOD to 777 - THIS PART IS IMPORTANT
Then you can start using it!
Syntax
Very simple syntax
[wm=Watermark text]URL to image
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:
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
after first use all things are ok
after refresh topic, this error occured:
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.
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
http://i39.tinypic.com/1zxry9s.gif
1Unreal
06-13-2009, 03:58 PM
when i'm posting. i'm get this error above site
http://i39.tinypic.com/1zxry9s.gif
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
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
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
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
test test test[/I]]http://www.samysoft.net/forumim/islamic1/1/616134056.jpg
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
http://www.samysoft.net/forumim/islamic1/1/616134056.jpg
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
Im really not sure, I did a fresh install of the mod on my test board and pasted this code in
http://www.samysoft.net/forumim/islamic1/1/616134056.jpg
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
//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
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
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
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 URL to image there?
1Unreal
06-13-2009, 11:26 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 URL to image 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
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
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
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
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
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
I See this message and some warnings
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/attachment.php?attachmentid=100596&stc=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
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
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
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
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 ^^
Merjawy
06-28-2009, 06:31 AM
Not working for me,, I get same error message saying image format not supported by php but its .jpg.. I tried few different ones and sizes.. also top of page there was a php error ..
Thanks though
Merjawy
06-28-2009, 07:01 AM
it looks like it won't work on attachments but straight images will work.
is that the case or its just not supposed to do that?
http://www.XXXXXXXXX.com/forums/attachment.php?attachmentid=27038&stc=1&d=1246175598
this won't work, but a direct link to an image will work
1Unreal
06-29-2009, 07:15 AM
I made it to support external images only. Ive not looked into attachments.
forsanelhaq
07-01-2009, 08:11 PM
hello can i make uploaded images in another hosting not on my vbulletin server
ricardoNJ
07-11-2009, 04:35 PM
Well, this watermark is in bottom. Is better in the middle of the picture.... right???
Limode
07-11-2009, 05:38 PM
Very bad mysql :(
ricardoNJ
07-11-2009, 06:01 PM
Uninstall :(
Zaki Shafqat
08-05-2009, 07:14 PM
thanks Installed :D
Just a quick question, how can i change the background colour of the Watermark? or the fonts colour?
Thanks
Working fine for me :D
matthewhotdude
08-05-2009, 08:08 PM
To the person that said this uses loads of bandwith....why does it?
Installed worked first time :)
question, could a button be made to press to bring up the BBcode?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.