ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Inline Error Validation on Comment Form Submissions

April 12, 2012 7:09pm

Subscribe [1]
  • #1 / Apr 12, 2012 7:09pm

    elative

    8 posts

    Problem: I’m looking for a way to show inline error messages on server-side (e.g. not via AJAX) comment form submissions and prevent the “User Message” template from being rendered.

    From my brief investigation, it seems that I would need to override any calls to “$this->EE->output->show_user_error(..)” within “insert_new_comment” at “./system/expressionengine/modules/comment/mod.comment.php.”

    I can of course accomplish this with a custom module or extension, but overriding the entire “insert_new_comment” function (even if it’s a simple rewrite) seems like a maintenance nightmare waiting to happen.

    With respect to using an extension, I don’t see a viable hook to accomplish something like this. Perhaps I overlooked the documentation? I would love to get some feedback from the community and hear if anyone has previously solved this issue. Thanks!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases