How to display the number of comments jcomments?

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Wed Sep 29, 2010 7:17 am
Hello,

I have found on joomlatune.com code, which is responsible for displaying the number of comments.
Code: Select all
global $mainframe;
  $comments = $mainframe->getCfg('absolute_path'). '/components/com_jcomments/jcomments.php';
  if (file_exists($comments)) {
    require_once($comments);
    $count = JComments::getCommentsCount($id, 'com_mycomp');
    echo $count ? ('Comments('. $count . ')') : 'Add Comments';
  }
Where to insert it? Advice please. Thanks in advance.
User avatar
Fresh Boarder

GK User
Wed Sep 29, 2010 11:40 am
Is anyone alive? Please answer.
User avatar
Fresh Boarder

GK User
Thu Sep 30, 2010 7:19 am
If I understand correctly, the caption for the withdrawal of the "Comments" responsible "COMMENTS" in the file layort.parts.php
Is there is such a line:
Code: Select all
$info_comments = '<a class="nsp_comments" href="'.JRoute::_(ContentHelperRoute::getArticleRoute($news_id,$news_cid, $news_sid)).'#comments">'.JText::_('COMMENTS').'</a>';
Maybe it needed to embed the code above?
I have tried here is such an option:
Code: Select all
$info_comments = $mainframe->getCfg('absolute_path'). '/components/com_jcomments/jcomments.php';  if (file_exists($comments)) {    require_once($comments);    $count = JComments::getCommentsCount($id, 'com_content');    echo $count ? ('Comments('. $count . ')') : 'Add comment';  };
- Error :( Help please.
User avatar
Fresh Boarder

GK User
Fri Oct 01, 2010 9:20 pm
Hello! Can you help me?
User avatar
Fresh Boarder

teitbite
Sat Oct 02, 2010 10:28 pm
Hi

Sorry but this option is not supportet in NSP module yet.
User avatar
Moderator

GK User
Mon Oct 04, 2010 5:30 am
Maybe I'll be able to do so with your help? Do not tell me how?
User avatar
Fresh Boarder

teitbite
Tue Oct 05, 2010 2:08 pm
Hi

You should copy the sql query from where the number of comments is displayed. Sorry but I've tryied to do this without success earlier :(
User avatar
Moderator

GK User
Wed Oct 06, 2010 5:33 am
Thanks for reply. Tell me please did you planing to make this feature in the new version of the module? If yes, when can this happen? Thanks.
User avatar
Fresh Boarder

teitbite
Thu Oct 07, 2010 4:07 pm
Hi

I have no information from the source, but I believe that now the K2 series of our products and the new templates got priority.
User avatar
Moderator

GK User
Thu Oct 07, 2010 5:52 pm
So sorry, because Jcomments very popular component. In Russia the majority of Joomla! users install it. It would be nice to integrate with this component.
User avatar
Fresh Boarder

GK User
Thu Oct 07, 2010 5:58 pm
News Show Pro GK4 v.2.0 beta has this feature ;) you can download it from our bug tracker - pm.gavick.com or wait for the stable version.
User avatar
Administrator

GK User
Thu Oct 07, 2010 6:02 pm
dziudek wrote:
News Show Pro GK4 v.2.0 beta has this feature ;) you can download it from our bug tracker - pm.gavick.com or wait for the stable version.

Thank you very much, there is built-in integration with Jcomments?
User avatar
Fresh Boarder

GK User
Thu Oct 07, 2010 6:03 pm
Module shows amount of comments for K2 and normal Joomla! articles with JComments
User avatar
Administrator

GK User
Thu Oct 07, 2010 6:12 pm
How I can update this module?
User avatar
Fresh Boarder

GK User
Thu Oct 07, 2010 6:15 pm
just override module and language files with the new ones
User avatar
Administrator

GK User
Thu Oct 07, 2010 6:45 pm
Thanks and waiting for the stable version.
User avatar
Fresh Boarder

GK User
Mon Oct 18, 2010 8:20 am
Thanks for the module mod_news_pro_gk4-V2.zip. Today I updated, everything works fine! :)

This is an excellent work!
User avatar
Fresh Boarder


cron