Keyword

Not logged can't view comments counter in category

  • rookpl
  • rookpl's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #93018 by rookpl
Hi,

 

I set K2 commets to registered users only, but after that comments counter is not visible to not logged users in my start page ( Category view).

 

In user page view comments counter / add comment link is visible for all, only add comment field is blocked.

 

Is there any way, that in category view comment counter will be visible for all, but only registered users can add new comments?

 

P.S. Sorry for my English, its not my native language

Please Log in or Create an account to join the conversation.

  • rookpl
  • rookpl's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #93019 by rookpl
ok, i don't know php, but i found an answer.

i changed one line in category_item.php

<?php if($this->item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>

to

<?php if($this->item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' ) || ($this->item->params->get('comments') == '1')) ): ?>

 

and know comments link and comments counter is visible to not only registered users

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum