[wp-hackers] "Report Abuse" for comments
viper at viper007bond.com
Sat Jan 31 09:50:47 GMT 2009
Yes, comment_approved would be the way to go.
Adding the link at the top if easy due to the "comment_status_links" filter.
Getting _wp_get_comment_list() to return your flagged comments for you is
the hard part as it appears to be hard coded and without a filter anywhere.
There should probably be on on the query inside the function.
On Sat, Jan 31, 2009 at 1:12 AM, Mike Schinkel
<mikeschinkel at newclarity.net>wrote:
> Hi all:
> My client want "report abuse" functionality for comments which is easy to
> implement with AJAX, but my concern is providing them with a way to review
> and moderate reported comments. The comment moderation queue would be
> perfect for this but it appears after reviewing /wp-admin/edit-comments.php
> that it was not designed to be extended (am I wrong here?)
> Based also on a review of /wp-include/comments.php the most appropriate
> place to tag it would be to use "comment_approved" and give it a value of
> "abuse" (that field gets 0 for hold (pending), 1 for approve (approved), and
> "spam" for spam.) However, the admin console wouldn't support abuse unless I
> really hacked it and I wouldn't want to hack it until my hacks could be
> rolled into v2.8.
> Thoughts? (Or is there a "hook"able way to do this that I've missed?)
> Thanks in advance.
> -Mike Schinkel
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/
More information about the wp-hackers