Results 1 to 4 of 4

Thread: Anyone heard of a plugin to count number of comments by author?

  1. #1
    thewpguy's Avatar
    thewpguy is offline Hello World
    Join Date
    Feb 2010
    Location
    Sydney, Australia
    Posts
    16

    Default Anyone heard of a plugin to count number of comments by author?

    Any ideas. Have a friend that has a post with 500+ comments and he wants to know how many comments each commentor has contributed. Users are not required to log in to make comments. They just put in the usual name, email, website details in.

    I think he might want to display the number of comments the person has made beside the their name on the comments too.

  2. #2
    Rarst's Avatar
    Rarst is offline Big Tipper
    Join Date
    Jul 2009
    Posts
    322

    Default

    Tried looking through official repository?

    This seems to fit
    http://wordpress.org/extend/plugins/comment-counter/
    Rarst.net - cynical thoughts on software and web (and sometimes WP) | @Rarst | I seem to be non-GPL-compliant person. Beware my poisonous thoughts.

  3. #3
    Ryan's Avatar
    Ryan is offline WordPress Legend
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    2,801

    Default

    That's simple enough I'd probably just stick into the theme itself.

    All you'd need to do is as each comment is processed, put each of the names into an array and if the same name is repeated then bump the value up by 1, at the end just check which name in the array is the highest and there's your answers. You can then echo it onto the page wherever you want.

  4. #4
    Ryan's Avatar
    Ryan is offline WordPress Legend
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    2,801

    Default

    Actually, you would probably want more than the name of course as multiple people may have the same name. It looks like the plugin Rarst linked to does all of that anyway though.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •