I agree with the advantages, and the $theme->comment_form() just
jogged my memory.

Did you try the one from theme-helper?
http://trac.habariproject.org/habari/browser/trunk/htdocs/system/plugins/themehelper/themehelper.plugin.php#L121

Just scanning that code it appears to start with option 1. I haven't
used it in a theme to say if it works or not.

-mikelietz

On Dec 11, 10:58 am, ringmaster <[EMAIL PROTECTED]> wrote:
> I would like to build the comment form in my theme using FormUI, but
> I'm running into a snag.
>
> When using FormUI to build the comment form, I have two options:
>
> 1) I can set the action URL of the FormUI form to the existing
> "submit_feedback" rewrite rule URL.
> Problem: The native form processing of the FormUI object never takes
> place, and so things like automatic validation of fields (for URL,
> email, and required values) doesn't happen.  This is especially a
> problem for custom-added fields, which is an advantage of using FormUI
> at all.
>
> 2) I can leave the action URL blank and let the FormUI object process
> the form and add the comment.
> Problem: Because the custom submission URL isn't used, plugins like
> SpamChecker that rely on adding additional data to the request via the
> URL don't work properly.
>
> Perhaps I need more time with it, but I haven't been able to determine
> a way for this process to degrade gracefully so that the current
> comment forms continue to work while FeedbackHandler also supports
> FormUI-based submissions and tackles the above problems.  I was
> thinking more eyes on the issue might be fruitful.
>
> If no means can be determined to account for both posting types, then
> ideally what I'd like to do is convert all themes to use FormUI for
> comment submission, and update all plugins that previously modified
> the comment submission process to use FormUI instead.
>
> The advantages of using FormUI for comment submissions, to be clear
> about it:
>
> * Allows plugins to programmatically add fields to the comment form
> (think hidden fields or custom captcha)
> * Allows the form to more effectively process submission errors
> (required fields and field types)
> * Allows the form to be generated from core (by calling one function:
> $theme->comment_form();)
> * Continues to allow customization of the form to fit into the site
> layout
>
> I have code that solves all of the associated issues I could think of
> except for those two points listed above.http://pastoid.com/bil
>
> What I'm looking for is alternate ideas for solving either of the
> above two problems, or opinions on revising comment submission to
> require FormUI.
>
> Owen
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to