Disable leave comments and super use on every page

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Sep 30, 2013 9:51 pm
Reply with quote
Report this post
I already disabled comments in K2 parameters> global settings for comments> disabled, but still have "leave a comment" and "super user" on every article. I also made all items and categories inherit the disable comments.

What are my options?
User avatar
Senior Boarder

GK User
Mon Sep 30, 2013 10:11 pm
Reply with quote
Report this post
Hi, you're right there may be a problem to disable it.
You have delete it from this file:
components\com_k2\templates\default\item_comments_form.php

1) Delete
Code: Select all
<h3><?php echo JText::_('K2_LEAVE_A_COMMENT') ?></h3>
User avatar
Platinum Boarder

GK User
Mon Sep 30, 2013 10:14 pm
Reply with quote
Report this post
ad 2) To remove "Super Admin" delete this line
Code: Select all
      <h3 class="itemAuthorName">
         <a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
      </h3>


From :
components\com_k2\templates\default\item.php
User avatar
Platinum Boarder

GK User
Mon Sep 30, 2013 11:27 pm
Reply with quote
Report this post
Pawel F wrote:ad 2) To remove "Super Admin" delete this line
Code: Select all
      <h3 class="itemAuthorName">
         <a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
      </h3>


From :
components\com_k2\templates\default\item.php



Thank you for the help. What about if I wanted to edit only certain pages in this way? Can I just edit html of certain pages, instead of having comments completely removed from all pages?


What would be the steps to do so?
User avatar
Senior Boarder

GK User
Tue Oct 01, 2013 12:19 am
Reply with quote
Report this post
My tips won't delete comments form(!) only one label (LEAVE A COMMENT), so practically you don't need him. Users are smart, so when they will see comment form they will use it ;)
User avatar
Platinum Boarder


cron