Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: Adding text in front of voting results
Pages: [1]   Go Down
  Print  
Author Topic: Adding text in front of voting results  (Read 955 times)
0 Members and 1 Guest are viewing this topic.
ncblazin247
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« on: June 18, 2010, 12:01:48 »

Im currently editing  my jcomments system and I just seperated the + and - votes:
http://www.joomlatune.com/forum/index.php/topic,1376.0.html

Now it shows both the positive votes in green and the negative votes in red and they are seperated but in front of the green number I dont see the plus symbol anymore. Im wondering if there is a way to insert some text in front of the voting results. For example in front of the positive number it could say "Liked by #". Is this possible and if so what needs to be edited?
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: June 18, 2010, 14:57:54 »

You need something like:

Code: (php)
function getCommentVoteValue( &$comment )
{
?>
<span class="vote-good">Liked by #<?php echo $comment->isgood?></span> / Don't liked by #<span class="vote-poor"><?php echo $comment->ispoor?></span>
<?php
}

Also you may need to adjust CSS styles for these elemets (may be you will need increase the width of the block).
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: Adding text in front of voting results
 
Jump to: