I have the best reply module up and running successfully. The following is in my Comment.tpl.php

<div <?php if ($comment->bestreply) print 'id="bestreply"'; ?>  class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ($comment->status == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; print ' '. $zebra; ?>">

I also want to be able to theme comment reply's by the author, and when googling for solutions I came across this. http://11heavens.com/theming-comments-by-author-of-node It's suggestion for Comment.tpl.php be changed to the following

<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ($comment->uid == $node->uid) ? ' comment-by-author-of-post' : ''; print ' '. $status ?> clear-block">

I've tried several combination but my understanding of PHP is not strong. Would someone who understand what is going on please explain it to me and additionally if possible, provide the code with both the snippets integrated.

Comments

bryancasler’s picture

Additionally I found the following here http://wesleybailey.com/articles/how-to-highlight-author-comments-drupal it's suggestion below

<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ($comment->uid == $node->uid) ? ' author-comment' : ''; print ' '. $status;?>">
bryancasler’s picture

From random testing I figured out this works in comment.tpl.php

<div <?php if ($comment->bestreply) print 'id="bestreply"'; ?> class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ($comment->uid == $node->uid) ? ' author-comment' : ''; print ' '. $status;?>">

and then add something like this to style.css

.author-comment
{
      background-color: #ff5;
      border: 1px solid #aaa;
}
taslett’s picture

Status: Active » Closed (fixed)

Hi animelion ,
Glad you figured it out.