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: Hiding the title?
Pages: [1]   Go Down
  Print  
Author Topic: Hiding the title?  (Read 728 times)
0 Members and 2 Guests are viewing this topic.
MattG
Newbie
*

Karma: 0
Offline Offline

Posts: 15


« on: September 09, 2010, 11:24:05 »

Hi,

Is it possible to hide the title in comments and only display the user name and date?

Here is an example:




Any help is appreciated. Thank you.  Smiley


-Matt
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: September 09, 2010, 15:02:05 »

If you want to remove title - just disable this field in JComments settings (see second tab with view and layout settings). If you want to remove all this string from template - edit file /components/com_jcomments/tpl/default/tpl_comment.php and remove:

Code: (php)
<?php
                
if (($this->getVar('comment-show-title') > 0) && ($comment->title != '')) {
?>

<span class="comment-title"><?php echo $comment->title?></span> &mdash;
<?php
                                
}
                if (
$this->getVar('comment-show-homepage') == 1) {
?>

<a class="author-homepage" href="<?php echo $comment->homepage?>" rel="nofollow" title="<?php echo $comment->author?>"><?php echo $comment->author?></a>
<?php
                
} else {
?>

<span class="comment-author"><?php echo $comment->author?></span>
<?php
                
}
?>

<span class="comment-date"><?php echo JCommentsText::formatDate($comment->datetimeJText::_('DATETIME_FORMAT')); ?></span>
« Last Edit: September 09, 2010, 15:03:56 by smart » 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: Hiding the title?
 
Jump to: