12 thoughts on “Plugin: Recent Commenters

  1. Any chance I can nest this within the Recently Commented function? I am trying to replicate what I did here in MT. It shows the ten most recently commented-on posts and the three most recent authors and times of the comment.

    Thanks for your hard work. These are awesome plug-ins!

  2. Yours was a little more complex to implement than Icyshard’s request, but I think I did it. Go here and refer to the second function on that page, sample2_recently_commented(). Theoretically, you’d just have to do:

    <?php sample2_recently_commented(); ?>

    and you’d get what you currently have under MT. Like I said for Icyshard, you can paste that function into your copy of recently_commented.php, or into the myhacks.php file (you’ll have to find help on using that file yourself). Hope it helps!

  3. Hmmm, can you verify that in your sample2_recently_commented() function, that the call to get_recently_commented() (a call which is necessary) does NOT have ANY spaces between the pair of single-quote characters in the second and third argument to the function. Should be like:

    get_recently_commented($num_posts, '', '')

    If the second and third arguments are ” (a pair of single-quotes without a space in between), get_recently_commented() is not supposed to echo/display the basic formatting. So I’d like to rule out the simple stuff. It ran fine for me on a test blog.

  4. Sorry to be such a pain in your ass, but I think I fixed it! I had a bunch of configurations in the get_recent_commenters from when I was messing with that. I cleared those out and now it looks good.

    Thanks again, and sorry again! Keep the great plug-ins coming…

  5. Sorry to keep borthing you, Scott. I have a small problem, my recent comments list is showing comments that haven’t been approved yet! Is there a setting I can toggle in your script to only display approved comments?

    As always, thanks for your amazing work!

  6. Ruby,
    Revisit the page where I posted your customized code (linked via the second comment in this post). I’ve updated it to omit unapproved comments. The updated line of code, reproduced below, was given this new bit: comment_approved = '1' AND

    $sql = "SELECT comment_date, comment_author, comment_ID FROM $tablecomments WHERE comment_approved = '1' AND comment_post_ID = $row->ID ORDER BY comment_date DESC LIMIT $num_show_comments";

Comments are closed.