Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Handler for displaying comment in preview and AJAX.

ShmizzleShmizzle New
edited October 2010 in Vanilla 2.0 - 2.8
Right now I've got a handler for DiscussionController_BeforeCommentDisplay_Handler. In this function I replace smiley codes with HTML, ie :-) to img src="foo".

This function appears to only be called when a comment that has already been submitted is being displayed in the discussion. It does not get called when displaying a comment in the preview or when displaying a comment that has just been submitted (via AJAX) and displayed on the page. What do I need to do in order to be able to "intercept" a comment's contents for preview/AJAX display so I can replace the smiley codes with HTML properly in these cases?
Sign In or Register to comment.