Keyword

Comments doesnt work

  • Jonas Aabye Olsen
  • Jonas Aabye Olsen's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 month ago #116778 by Jonas Aabye Olsen
Comments doesnt work was created by Jonas Aabye Olsen
On the site

www.praematures.dk/index.php/artikler/item/9-international-praematur-dag

When im not logged in - The article will show "Login to comment" , and that is fine.

But when im logged in, the comment area is totally blank.

I have Associated all new users with the K2 Group "registred", and I can see that Im logged in fine, and all users are a member of the prober Group. Also, I have in the K2 settings that "only registred users can comment", and the Group "registrered" are allowed to power comments!

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

More
11 years 1 month ago #116779 by Johan
Replied by Johan on topic Re: Comments doesnt work
Are comments enabled in the general k2 parameters?

I see the problem. Did you try setting it so everyone can comment.. Does the comment box show then?

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

  • Jonas Aabye Olsen
  • Jonas Aabye Olsen's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 month ago #116780 by Jonas Aabye Olsen
Replied by Jonas Aabye Olsen on topic Re: Comments doesnt work
When setting it to "enabled for all" - The comment fields shows as expected.

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

More
11 years 1 month ago #116781 by Johan
Replied by Johan on topic Re: Comments doesnt work
Probably some small misconfiguration. Can you go to k2 parameters and check the permissions there as well.

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

  • Jonas Aabye Olsen
  • Jonas Aabye Olsen's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 month ago #116782 by Jonas Aabye Olsen
Replied by Jonas Aabye Olsen on topic Re: Comments doesnt work
Can you send me an mail on This email address is being protected from spambots. You need JavaScript enabled to view it.

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

  • Jonas Aabye Olsen
  • Jonas Aabye Olsen's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 month ago #116783 by Jonas Aabye Olsen
Replied by Jonas Aabye Olsen on topic Re: Comments doesnt work
Anyone can help me with this?

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

  • Jonas Aabye Olsen
  • Jonas Aabye Olsen's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 month ago #116784 by Jonas Aabye Olsen
Replied by Jonas Aabye Olsen on topic Re: Comments doesnt work
After some tests - I've found that its in this line in item.php it fails

<div class="itemComments">

<?php if($this->item->params->get('commentsFormPosition')=='below' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?>
<!-- Item comments form -->

More specifik

&& K2HelperPermissions::canAddComment($this->item->catid)

If i remove that line - It will show the comments.

After what I can read about that one, it will check the current category for "show comment" in the article view.

The categories I have are

-Articles
- Sub category 1
- Sub category 2
- Sub category 3

Sub category 1,2 and 3 all inherent their proberties from the main "article" category, and there is comments set to "show"... :-/

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


Powered by Kunena Forum