Support » Requests and Feedback » P2 – Highlight author comments?

  • In P2, is there an easy way to highlight the original author’s comments?

    I’ve found a few places where they tell me to change the comments.php file. Something like…

    <li class=”<?php echo $oddcomment; ?>” id=”comment…>

    But the P2 comments.php file has nothing like this…

    Is there anything I can do for this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Do you have a link for the instructions you mention? It would be easier to follow then.

    Here’s one. The post is from 2008, but there are a couple comments that say it worked for them in version 2.8 (the same version I’m using).


    Hi again!

    I’ve tried to find the right code and this is the right one:

    function prologue_comment( $comment, $args, $depth ) { (below that function is the code showing comments)

    You’ll find it in functions.php. I don’t have the time to find the correct way to display author-comments in a different way. I tried with

    if( $comment->user_id == $post->post_author)
    //special style
    //default style

    Which seems to be the simplest code to use for this.

    I hope you have more luck! I’m too new to PHP. 🙂


    Oh yeah. P2 is special so the code you started with isn’t there. So that lead will not get you there. As far as I know..

    I’ve tried several variations of what you posted, but I’m not much of a code guy. I can’t seem to make a difference. Thanks for trying. I’ll keep plugging away to see if I can get anything working.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘P2 – Highlight author comments?’ is closed to new replies.