jcomment comment ticket. Number of comments

This forum is for general questions about extensions for Joomla! 3.x.
Post Reply
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?

$commentsAPI = JPATH_SITE . '/components/com_jcomments/jcomments.php';
if (file_exists($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>';
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “Extensions for Joomla! 3.x”