I finally got through in implementing the code you gave. Thanks for that. However, I have one more request. Is it possible to remove the positive sign "+" and the negative sign "-" in the numbers and display it in one line as opposed to two lines that it is displaying now.
Also, when voting, I would like the thumbs up/down to be replaced with 'Like' and 'Dislike', can you tell me which file to modify to achieve this?
Lastly, how can I display 0 (zero) in the both the dislike and like when there are no votes yest. Right now, it's displaying blank.
Thanks for your help again.
You could change this in JComments template:
1. Open file /components/com_jcomments/tpl/default/tpl_comment.php
2. Find code:
<span class="vote-<?php echo $class; ?>"><?php echo $value; ?></span>
and replace with:
<span class="vote-good"><?php echo $comment->isgood != 0 ? '+' . $comment->isgood : ''; ?></span>/<span class="vote-poor"><?php echo $comment->ispoor != 0 ? '-' . $comment->ispoor : ''; ?></span>