MyBB Community Forums

Full Version: question about watermark
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello to all My friends
How can I put watermark on attached images
a Friend said by way of editing attachment.php can do it
and gave me the link below
http://www.sitepoint.com/watermark-images-php/
But I do not know how to use this code

can you help me ?
Heart
thanks
thanks
I've seen this program
Unfortunately I could not use it
I do not know how to specify raster
I could not edit the attachmen.php file
Do you use it?
Truly Works?

I do not know how to use this plugin
Does not work
What should be regulated?

Who can get help?
I do not know how to use this plugin
Does not work
What should be regulated?
Who can get help?
Who can get help? Who can get help? Who can get help? Who can get help? Who can get help? Who can get help? Who can get help? Who can get help? Who can get help?
You can specify the image in Configuration -> Watermark settings..

But there is a bug, so first you need to open the plugin's .php file and replace:
function watermark_on_settings_changed()
{
	global $mybb, $watermark;
	if(strcasecmp($mybb->input['upsetting']['watermark_file'], $mybb->settings['watermark_file']) <> 0 && $mybb->request_method == "post")
		$watermark->ClearCache();
}
with:
function watermark_on_settings_changed()
{
	global $mybb, $watermark;
	if(!is_object($watermark))
		$watermark = new Watermark();
	if(strcasecmp($mybb->input['upsetting']['watermark_file'], $mybb->settings['watermark_file']) <> 0 && $mybb->request_method == "post")
		$watermark->ClearCache();
}

Then specify path such as http://imgur.com/myimage.jpg or _root_images/something.png and save. Then apply watermak on image attchments. Tested - works.
thanks

but dont work and dont add watermark on images