Closed (fixed)
Project:
Best reply
Version:
6.x-6.4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2009 at 04:48 UTC
Updated:
25 Aug 2009 at 23:46 UTC
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
Comment #1
bryancasler commentedAdditionally I found the following here http://wesleybailey.com/articles/how-to-highlight-author-comments-drupal it's suggestion below
Comment #2
bryancasler commentedFrom random testing I figured out this works in comment.tpl.php
and then add something like this to style.css
Comment #3
taslett commentedHi animelion ,
Glad you figured it out.