By Justin Throngard on Wednesday, 15 January 2014
Posted in Technical Issues
Replies 3
Likes 0
Views 710
Votes 0
I'd like to be able to show something like the following at the beginning of the comment section for each post:

<div id="section-comments" class="blog-section style-aero">
<h3 class="section-title"><span>Comments (YY Total) in post XXX</span></h3>

<ul id="blog-comment" class="reset-ul">


Where YY equals the total amount of comments and XXX equals the post title. How would I go about achieving that?
Hello Justin,

You can edit this file ..\components\com_easyblog\themes\default\blog.comment.box.php and for the total, you can get it using this:

count($blogComments);

The blog title, you can use this:\

$blog->title;


Hope this helps.
·
Wednesday, 15 January 2014 09:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Got it. For others this is the code I used on line 25:

	<h3 class="section-title"><span><?php echo count($blogComments); ?> <?php echo JText::_('COM_EASYBLOG_COMMENTS'); ?> in <?php echo $blog->title; ?></span></h3>
·
Thursday, 16 January 2014 00:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Justin,

Thanks for sharing.
·
Thursday, 16 January 2014 08:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post