Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Edit Comment Event
cdavid
New
Dear all,
As previously mentioned, I am trying to do a LaTeX rendering plugin for VanillaForums. What this does is to take the (LaTeX) text, POST it to a URL, get back the data, put it in a column in the database (BodyXHTML) and at rendering set the displayed content to be BodyXHTML.
My problem is that when a user wants to edit a self-owned comment and clicks Save Comment, the content of Body gets saved, but I don't know to what event I should hook in order to transform the new version of the comment to XHTML and store it in the database.
Any ideas?
Thanks,
Catalin
As previously mentioned, I am trying to do a LaTeX rendering plugin for VanillaForums. What this does is to take the (LaTeX) text, POST it to a URL, get back the data, put it in a column in the database (BodyXHTML) and at rendering set the displayed content to be BodyXHTML.
My problem is that when a user wants to edit a self-owned comment and clicks Save Comment, the content of Body gets saved, but I don't know to what event I should hook in order to transform the new version of the comment to XHTML and store it in the database.
Any ideas?
Thanks,
Catalin
1
Comments
CommentModel_BeforeSaveComment_Handler()
Vanilla Forums COO [GitHub, Twitter, About.me]