Skip to Content Skip to Menu

Comments on Joomla Articles are not working

  • Opendreas
  • Opendreas
  • OFFLINE
  • Posts: 14
  • Thanks: 1
  • Karma: 0
1 month 3 weeks ago #339257 by Opendreas
Hello,

I installed the latest Joomla 5 with several languages and installed CB Quickstart (the first time it installed with errors, because some directories were not created, the second time the installation went fine). A comment line appears under Joomla articles and when I click on “post” nothing happens, but the likes work.

My next question is how to disable this line and is it possible to add it only for certain categories with articles?

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

  • Opendreas
  • Opendreas
  • OFFLINE
  • Posts: 14
  • Thanks: 1
  • Karma: 0
1 month 3 weeks ago - 1 month 3 weeks ago #339261 by Opendreas
Replied by Opendreas on topic Comments on Joomla Articles are not working

My next question is how to disable this line and is it possible to add it only for certain categories with articles?



 
I found the answer
www.joomlapolis.com/forum/professional-members-support/244426-solved-remove-comments-form-specific-pages-on-community
But I don’t understand how Exclude/Include Context works and how to leave only comments in some categories, and only likes in others, and in others both options.
 
Last edit: 1 month 3 weeks ago by Opendreas.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
1 month 3 weeks ago #339267 by krileon
Replied by krileon on topic Comments on Joomla Articles are not working

A comment line appears under Joomla articles and when I click on “post” nothing happens, but the likes work.

Nothing happening when the button is clicked generally means the JavaScript is being blocked by something. Press F12 to open your browsers developer tools. Now click the Console tab. Next refresh the article page and see if there are any errors in the console (they'll be colored red). If not then try posting and again see if there are any errors (again they'll be colored red) and provide those errors here in a reply.

But I don’t understand how Exclude/Include Context works and how to leave only comments in some categories, and only likes in others, and in others both options.

Navigate to System > Manage > Plugins then edit "Content - CB Activity" now under "Comments and Likes" tab you include/exclude contexts, categories, articles, and even authors of articles from commenting/likes functionality.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • Opendreas
  • Opendreas
  • OFFLINE
  • Posts: 14
  • Thanks: 1
  • Karma: 0
1 month 3 weeks ago #339293 by Opendreas
Replied by Opendreas on topic Comments on Joomla Articles are not working

Nothing happening when the button is clicked generally means the JavaScript is being blocked by something. Press F12 to open your browsers developer tools. Now click the Console tab. Next refresh the article page and see if there are any errors in the console (they'll be colored red). If not then try posting and again see if there are any errors (again they'll be colored red) and provide those errors here in a reply.

When I try to post a comment, the following error appears:
POST site.com/index.php
option=com_comprofiler&view=pluginclass&plugin=cbactivity&action=comments.save&str
am=3&id=0&asset=l6r4GBS_t6lK5ewY6Lm4ddBM-3zFU_n
Ly9aNflZyN3wdxW5ryNo4U8ttOjnDKNE&Itemid=1453&format=raw 401 (Unauthorized -
Invalid Asset)
U @ jquery.cbactivity.min.js?v=dbc832cc0530b9c2:1
(anonym) @ jquery.cbactivity.min.js?v=dbc832cc0530b9c2:1
dispatch @ jquery-3.5.1.min.js?v=382698d11d485dee:1
y.handle @ jquery-3.5.1.min.js?v=382698d11d485dee:1

Navigate to System > Manage > Plugins then edit "Content - CB Activity" now under "Comments and Likes" tab you include/exclude contexts, categories, articles, and even authors of articles from commenting/likes functionality.

This is what I found, I don’t understand what context is and how I can turn off comments, but leave likes, if possible.     

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

  • Opendreas
  • Opendreas
  • OFFLINE
  • Posts: 14
  • Thanks: 1
  • Karma: 0
1 month 3 weeks ago #339296 by Opendreas
Replied by Opendreas on topic Comments on Joomla Articles are not working
I tested this on a fresh installation of Joomla 5 with multilingual, nothing other than Community Buider with Quickstart is installed anymore and I get the same 401 error.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
1 month 3 weeks ago #339300 by krileon
Replied by krileon on topic Comments on Joomla Articles are not working

When I try to post a comment, the following error appears:

Navigate to System > Manage > Plugins then edit "Content - CB Activity" and under "Comments" ensure "Stream" is set to "Articles".

This is what I found, I don’t understand what context is and how I can turn off comments, but leave likes, if possible.

You'd need to look into Joomla API regarding this. I've no idea what view you're trying to turn comments off on. For example when directly viewing an article its context is com_content.article. Everything in Joomla basically has a context applied to it to determine where a Joomla event was fired. You can also just exclude by category id as I understood that's what you were wanting. This will exclude for both Comments and Likes though there is no functionality to just exclude 1 of those features.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: Opendreas

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

Moderators: beatnantkrileon
Powered by Kunena Forum