I'm experimenting with the comment form in SVN HEAD.

My commentform.php is this:
<!-- commentsform -->
<?php $post->comment_form()->out(); ?>
<!-- /commentsform-->

It works fine, but what I'm trying to do is add a field to it, for a
spam honeypot.

public function action_form_comment( $form, $context = 'public' ) {
                $form->append( 'text','more_content','null:null', _t
( 'spambots type here, humans do not' ) );
                return $form;
}

which works to add the field, but I can't seem to find a way to test
the value afterward. SpamHoneypot currently checks against
more_content in action_comment_insert_before, but I don't see a way to
get more_content out of the comment.

I was trying something along the lines of how the twitter plugin does
this:

public function filter_adminhandler_post_user_fields( $fields ) {
     $fields['twitter_name'] = 'twitter_name';
     return $fields;
}

but I can't seem to find a similar adminhandler function for adding
comment info fields.

-mikelietz
--~--~---------~--~----~------------~-------~--~----~
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