WordPress.org

Ready to get started?Download WordPress

Forums

recent commenters (3 posts)

  1. xtheunderdog
    Member
    Posted 9 years ago #

    I need a plugin/hack that will allow me to output something like this:

    Commenter on Article

    The commenter's name would simply be linked to the Article and the article wouldn't be linked.

    Are there any plugins suitable to this? I've looked and I don't believe I've found anything.

  2. Minna
    Member
    Posted 9 years ago #

    There are loads (see Codex and plugin sites), but I personally like Brian's Latest Comments. It outputs
    "Article name (#)
    Commenter, Commenter"
    Article name is linked to the article, number of comments to the beginning of comment section, and the commenter's name to that particular comment.

  3. xtheunderdog
    Member
    Posted 9 years ago #

    So I've been trying to tinker with the format and it's being a pain.
    original
    echo $prefix."".stripslashes($post->post_title). "  ".$count."
    \n<small>";
    if($usetimesince)
    $title = " title=\"Last comment was ".time_since($comment->unixdate)." ago\"";
    foreach($commenters as $commenter)
    {
    if($usetimesince)
    $title = " title=\"Posted ".time_since($commenter->unixdate)." ago\"";

    if($i++ > 0)
    echo ", ";

    echo "comment_ID."\"$title>".stripslashes($commenter->comment_author)."";
    }
    if($count > $num_comments)
    echo " [...]";
    echo "</small>".$postfix."\n";

    }
    }

    mine
    echo $prefix."".stripslashes($commenter->comment_author)" " on ($post->post_title)";
    if($usetimesince)
    $title = " title=\"Last comment was ".time_since($comment->unixdate)." ago\"";
    foreach($commenters as $commenter)
    {
    if($usetimesince)
    $title = " title=\"Posted ".time_since($commenter->unixdate)." ago\"";

    if($i++ > 0)
    echo ", ";

    }
    if($count > $num_comments)
    echo " [...]";
    echo "</small>".$postfix."\n";

    }
    }

Topic Closed

This topic has been closed to new replies.

About this Topic