jcomment comment ticket. Number of comments

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
rrrccc
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Feb 12, 2020 6:52 pm

jcomment comment ticket. Number of comments

Post by rrrccc » Wed Feb 12, 2020 7:03 pm

News Show I want to show the number of comments with the jcomment link in the SP2 news module. K2 also works. jcomment (0) appears. I made changes to the default.php file. I was not successful Can you help? Thank you


I must make changes to the attached files. Can anyone understand me help me?
In which file should I upload these codes?

<?php
$commentsAPI = JPATH_SITE . '/components/com_jcomments/jcomments.php';
if (file_exists($commentsAPI)) :
require_once($commentsAPI);
$total = JComments::getCommentsCount($this->item->id, 'com_content');
echo '<a href="' . JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)). '#comments">' . $total . ' ' . JTEXT::_('TOTAL_COMMENTS'). '</a>';
endif;
?>
You do not have the required permissions to view the files attached to this post.

 
 
Post Reply

Return to “Extensions for Joomla! 3.x”