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

cdavidcdavid New
edited August 2010 in Vanilla 1.0 Help
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
Tagged:

Comments

  • TimTim Operations Vanilla Staff
    Edit and Create both use the same underlying data models, so you could hook into

    CommentModel_BeforeSaveComment_Handler()

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • cdavidcdavid New
    edited August 2010
    Thanks, problem solved. BTW, you rule!!! :)
  • edited August 2010
    hooks?
Sign In or Register to comment.