Switch off Comments K2

Questions related to the configuration of Joomla, Templates, and Security related questions/issues
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
Mon Oct 21, 2013 10:31 am
Hi all,

I am currently prepairing a site with the publisher template.
I would like to switch of the comments section of K2, but if I do that, the comments forms are removed, but the "place a comment" sentence still remains.
21-Oct-13 11-26-15.png


Have I done anything wrong? I switched it off globally in the K2 settings.
21-Oct-13 11-26-15.png

site does not have a url yet so it is accessible via http://144.76.87.148/~boetedep

Thanks
User avatar
Fresh Boarder

GK User
Mon Oct 21, 2013 10:36 am
It seems like a little bug, Ill check the code.
User avatar
Moderator

GK User
Mon Oct 21, 2013 10:45 am
Please edit this file:
templates/gk_publisher/html/com_k2/templates/default/item.php
and replace:
Code: Select all
         <h3 class="titleComments"> <?php echo JText::_('K2_LEAVE_A_COMMENT') ?> </h3>
         <?php if($params->get('commentsFormPosition')=='below' && $params->get('itemComments') && !JRequest::getInt('print') && ($params->get('comments') == '1' || ($params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?>
         <div class="itemCommentsForm">
            <?php echo $this->loadTemplate('comments_form'); ?>
         </div>
         <?php endif; ?>


to:
Code: Select all
<?php if($params->get('commentsFormPosition')=='below' && $params->get('itemComments') && !JRequest::getInt('print') && ($params->get('comments') == '1' || ($params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?>
         <h3 class="titleComments"> <?php echo JText::_('K2_LEAVE_A_COMMENT') ?> </h3>
         <div class="itemCommentsForm">
            <?php echo $this->loadTemplate('comments_form'); ?>
         </div>
         <?php endif; ?>
User avatar
Moderator

GK User
Mon Oct 21, 2013 10:59 am
It works perfectly now! Thanks for the quick reply and solution!
User avatar
Fresh Boarder

GK User
Mon Oct 21, 2013 3:21 pm
No problem. It will be fixed with next template release.
User avatar
Moderator


cron