comment moderation question

0 views
Skip to first unread message

brandel

unread,
Apr 10, 2008, 5:32:56 PM4/10/08
to habari-users
Is there a way to display the comment the user posted, yet placing
special emphasis on that comment that it is awaiting moderation? I ask
because it is quite bothersome when I have commenters that post the
same comment 5 times because they feel their initial comment was in
error.

Thanks

Michael C. Harris

unread,
Apr 11, 2008, 6:22:29 AM4/11/08
to habari...@googlegroups.com

Yes, in the theme you can check the comment's status and if the comment is posted by the
current user.

Something like this, in a loop of all the comments:

$commenter= User::commenter();
if ($comment->email == $commenter['email'] && $comment->status == Comment::STATUS_UNAPPROVED) {
echo "Your comment is in moderation.";
}


--
Michael C. Harris, School of CS&IT, RMIT University
http://twofishcreative.com/michael/blog

Reply all
Reply to author
Forward
0 new messages