Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • Maksimovič Artur Friend
    #151015

    Hello,

    is there a possibility to show comment count next to the title on the front page and on category and section layouts?
    It should be shown like this: Article title (comment count, if there are more than zero comments)
    I use JComments commenting system. There’s a guide on how to do it here: http://www.joomlatune.com/jcomments-developers-manual.html#jcomments_get_comments_count
    But it doesn’t seem to work in JA Teline III. I would be really grateful if anyone could at least point me to the right direction.

    Thanks in advance,

    Mindaugas

    Maksimovič Artur Friend
    #343585

    I’ve figured this one out. It seems that the suggested function couldn’t get the article id.
    Here’s how I made it work:


    <?php $id = JRequest::getVar('id'); ?>
    <?php $comments = JPATH_BASE .DS.'components'.DS.'com_jcomments'.DS.'jcomments.php';
    if (file_exists($comments)) {
    require_once($comments);
    $count = JComments::getCommentsCount($id, 'com_content');
    echo "($count)";
    }
    ?>

    Thanh Nguyen Viet Friend
    #343595

    Hi Mindaugas,

    We do not support this feature, because there is no way to place a comment quantity next to the article title
    (joomla is not allowed add any html tags or script to article’ title).

    Best regards,
    ThanhNV

    Maksimovič Artur Friend
    #343597

    <em>@thanhnv 178565 wrote:</em><blockquote>Hi Mindaugas,

    We do not support this feature, because there is no way to place a comment quantity next to the article title
    (joomla is not allowed add any html tags or script to article’ title).

    Best regards,
    ThanhNV</blockquote>

    But I’ve added the code that I’ve posted above and it seems to work. Am I missing something?

    Maksimovič Artur Friend
    #343602

    And for the category or section view I use this function:

    <?php $comments = JPATH_BASE .DS.'components'.DS.'com_jcomments'.DS.'jcomments.php';
    if (file_exists($comments)) {
    require_once($comments);
    $count = JComments::getCommentsCount($this->item->id, 'com_content');
    echo $count ? ('('. $count . ')') : '';
    }
    ?>

    Saguaros Moderator
    #343670

    pls kindly keep contact with jcomment’s developers to get best solutions on the issue

    Thanks

    Saguaros Moderator
    #343671

    pls kindly keep contact with jcomment’s developers to get best solutions on the issue

    Thanks
    _______

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 3 voices, and was last updated by  Saguaros 14 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum