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.
FireEvent isn't working when viewtype is JSON
Hello,
I've created my first example plugin and i have problem with events. I've implemented following method in Example plugin:
public function DiscussionController_BeforeCommentMeta_Handler(&$Sender)
{
echo "HelloExample!";
}
When comment is rendered in normal "fullpage" mode everything works ok (string is displayed). But when user edits a comment (fully in ajax mode), js calls url /vanilla/post/editcomment/5499274/32302 with DeliveryMethod='JSON'.
It returns proper html structure but it looks like it doesn't execute my eventhandler. It's normal behaviour? Is there any way to fix it?
Thanks in advance
I've created my first example plugin and i have problem with events. I've implemented following method in Example plugin:
public function DiscussionController_BeforeCommentMeta_Handler(&$Sender)
{
echo "HelloExample!";
}
When comment is rendered in normal "fullpage" mode everything works ok (string is displayed). But when user edits a comment (fully in ajax mode), js calls url /vanilla/post/editcomment/5499274/32302 with DeliveryMethod='JSON'.
It returns proper html structure but it looks like it doesn't execute my eventhandler. It's normal behaviour? Is there any way to fix it?
Thanks in advance
0
Comments
https://github.com/vanillaforums/Garden/issues
You can look in applications/vanilla/views/post/comment.php for a variety of events.
Vanilla Forums COO [GitHub, Twitter, About.me]