Viewing 1 post (of 1 total)
  • Author
    Posts
  • nihues Friend
    #159855

    Hello, my site isn’t updating the comment counter in the K2 blog category, it’s all updated from JA Update Extension, and it was right before the update, here is the relevant code:

    Using the ja_community_blog theme in K2 and JA Comments:

    templates/ja_community_plus/html/com_k2/templates/ja_community_blog/category_item.php
    Line 46-60
    [PHP]
    <div class=”catItemCommentsLink”>
    <?php if(!empty($this->item->event->K2CommentsCounter)):?>
    <!– K2 Plugins: K2CommentsCounter –>
    <?php echo $this->item->event->K2CommentsCounter; ?>
    <?php else: ?>
    <?php if($this->item->numOfComments > 0): ?>
    <a href=”<?php echo $this->item->link; ?>#itemCommentsAnchor”>
    <?php echo $this->item->numOfComments; ?> <?php echo ($this->item->numOfComments>1) ? JText::_(”) : JText::_(”); ?>
    </a>
    <?php else: ?>
    <a href=”<?php echo $this->item->link; ?>#itemCommentsAnchor”>
    <?php echo JText::_(‘:-)’); ?>
    </a>
    <?php endif; ?>
    <?php endif; ?>
    </div>
    [/PHP]

    Live website: http://www.10emvendas.com.br/blog

Viewing 1 post (of 1 total)

This topic contains 1 reply, has 1 voice, and was last updated by  nihues 13 years, 9 months ago.

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