Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.6] Watermark Plugin!
#11
no need, problem solved looooooong time ago
Reply
#12
(2011-09-22, 07:34 AM)B0BBY Wrote: i get this error when i try to change the path to watermark image:
Fatal error: Call to a member function ClearCache() on a non-object in /home/bobby/public_html/forum/inc/plugins/watermark.php on line 367

if i edit "watermark.php" and put there $this->wpic = MYBB_ROOT . "inc/plugins/mylogo.gif";
it's working fine.

i have a better ideea... auto generate a logo with "username @ forum name" and have an option " watermark all my pictures"
in this way all usesr have their pictures branded with their names and forum name Big Grin.

I fixed that problem. Watermark class wasn't istantiated in admin cp now it is
Reply
#13
I uploaded a new version fixing a bug which would've made cache handling cumbersome when you attempted to change watermark image file.

It's on MyBB Mods waiting for approval.

Then i updated a new screenshot! You will say "finally" Smile
Reply
#14
I have installed the plugin, and am attempting to set the location of my watermark image file. Any time I go to save it, the screen just turns white, and nothing saves. Is this a known issue?

(2011-09-21, 07:40 PM)B0BBY Wrote: can you please make it watermark all images automaticaly on upload, without user intervention ?
I agree -- this would be a great ACP option to have, for those that want it.
Reply
#15
(2011-11-27, 02:12 AM)Jayfore Wrote: I have installed the plugin, and am attempting to set the location of my watermark image file. Any time I go to save it, the screen just turns white, and nothing saves. Is this a known issue?

(2011-09-21, 07:40 PM)B0BBY Wrote: can you please make it watermark all images automaticaly on upload, without user intervention ?
I agree -- this would be a great ACP option to have, for those that want it.

Are you running 1.6.5 version of MyBB?
Reply
#16
(2011-11-28, 05:46 PM)flash.tato Wrote:
(2011-11-27, 02:12 AM)Jayfore Wrote: I have installed the plugin, and am attempting to set the location of my watermark image file. Any time I go to save it, the screen just turns white, and nothing saves. Is this a known issue?

(2011-09-21, 07:40 PM)B0BBY Wrote: can you please make it watermark all images automaticaly on upload, without user intervention ?
I agree -- this would be a great ACP option to have, for those that want it.

Are you running 1.6.5 version of MyBB?

When I was testing it, I was on 1.6.4... But I went to 1.6.5 yesterday. Since then, I had not checked/updated the plugin for 1.6.5 yet, so it had been deactivated. I just updated the one area of the code for 1.6.5 (changed "function watermark_admin_group_tab($tabs)" to "function watermark_admin_group_tab(&$tabs)"), and still have the same problem.
Reply
#17
Are you sure you're giving the path of an existing image?
Reply
#18
(2011-11-30, 11:39 PM)flash.tato Wrote: Are you sure you're giving the path of an existing image?

Does this happen for you, if you put in an invalid path?

I believe I am entering the path in the correct format -- my file is called "globe.png" and it's located under <forum root>\images\icons. I have tried entering the following paths, with no success:
  • __root__/images/icons/globe.png (two underscores on either side)
  • /images/icons/globe.png
  • images/icons/globe.png
Permissions on the image file are fine, and I have tried multiple alternate image files (the standard heart.gif, for example).

Thank you for any help you can give!
Reply
#19
My mistake, you've just to use one underscore on both sides (not two, i know my mistake on documenting the feature).

Also keep in mind that _root_ has an ending slash so in your case would be:
_root_images/icons/globe.png

And it continues to not work, then create manually a folder under uploads named watermark_cache, that should do the trick.

Let me know as i didn't find any major faults in the code.
Reply
#20
(2011-12-01, 04:42 PM)flash.tato Wrote: My mistake, you've just to use one underscore on both sides (not two, i know my mistake on documenting the feature).

Also keep in mind that _root_ has an ending slash so in your case would be:
_root_images/icons/globe.png

And it continues to not work, then create manually a folder under uploads named watermark_cache, that should do the trick.

Let me know as i didn't find any major faults in the code.

It's actually behaving the same way, with 1 underscore on either side and leaving the trailing slash out:
_root_images/icons/bell.gif

...And I do have the FORUM_ROOT/uploads/watermark_cache folder created (777 permissions).

On your own site, if you intentionally type in the wrong file location, does it behave like this, and just give you a blank screen like this? If yes, could it be improved to give an error instead? Not sure that would help whatever is happening for me right now, but it would be good for others.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)