This discussion is related to the
Emoticons addon.
Hi, I just updated to 2.0.18 and the latest version of this addon and am experiencing some issues with it. Here's my EmoticonMatch array:
$EmoticonMatch = array("[:0]" => "gasp.gif",);It works sometimes, but if there's no space on both sides of the [:0], the emoticon isn't replaced with an image. So if you have something like:
Hey![:0]or
h[:0]It doesn't work.
Also, if there's a greater than / less than sign in the post prior to the emoticon, things get all screwey and the plugin appears to insert broken HTML. For example, if you make a post like this:
> [:0]or...
blah blah blah >
blah blah
blah blah
blah
[:0]Then broken HTML is inserted, unfortunately.
Would love to see both these things fixed, it's the only thing preventing me from upgrading to 2.0.18 on my main forum!
Comments
DiscussionController_BeforeCommentBody_Handler
PostController_BeforeCommentBody_Handler
PostController_BeforeDiscussionRender_Handler
PostController_BeforeCommentRender_Handler
PostController_BeforeDiscussionPreview_Handler
And in each of those callbacks a function is called which just does a str_replace on the text, replacing the emoticon code with img src HTML code. Again, works perfectly fine in 2.0.17 but for some reason it doesn't in 2.0.18.