Skip to Content Skip to Menu

Strange behavior of cb_content module

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 411
  • Thanks: 37
  • Karma: 3
  • Add-ons
1 day 6 hours ago #340471 by liaskas
Strange behavior of cb_content module was created by liaskas
Hello...

Created a new query field that counts some rows from my database.
Created cb_content module (visible to registered users only) to display the query result. Everything works GREAT on all pages that i published the module to.

Then created another field with the exact same query (some differences at the display).
Created cb_content module (visible to guest users only) to display the query result. The module shows the query result only in the cb_activity page. On all the other pages it shows [cb_the_name_of_the_field].

Can you please advise?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48883
  • Thanks: 8356
  • Karma: 1450
22 hours 23 minutes ago #340472 by krileon
Replied by krileon on topic Strange behavior of cb_content module
When the name of the field shows it means the field isn't accessible. Are you sure the field is properly accessible to guests? Strange that it'd show on 1 page and nothing else though. Can you provide the query you're using?


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.

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 411
  • Thanks: 37
  • Karma: 3
  • Add-ons
21 hours 29 minutes ago - 21 hours 24 minutes ago #340473 by liaskas
Replied by liaskas on topic Strange behavior of cb_content module
The query is ok. The field shows fine when the module shows on page...  index.php?option=com_comprofiler&view=pluginclass&plugin=cbactivity&action=recentactivity
Here is the query...
Code:
[code]SELECT     (SELECT COUNT(DISTINCT session_id) FROM #__session WHERE guest = 0) AS guest_0_count,     (SELECT COUNT(DISTINCT session_id) FROM #__session WHERE guest = 1) AS guest_1_count,     ((SELECT COUNT(DISTINCT s.session_id)       FROM #__session s       JOIN #__cbsubs_subscriptions sub ON s.userid = sub.user_id       WHERE s.guest = 0 AND sub.status = 'A') - 1) AS total_matching_count;
[/code]
Last edit: 21 hours 24 minutes ago by liaskas.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48883
  • Thanks: 8356
  • Karma: 1450
20 hours 29 minutes ago #340475 by krileon
Replied by krileon on topic Strange behavior of cb_content module
Your CB Content Module probably isn't configured to load CB plugins. Within your CB Content Module under Community Builder set "Load Plugins" to "Yes" and see if that resolves your issue.


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.

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 411
  • Thanks: 37
  • Karma: 3
  • Add-ons
20 hours 10 minutes ago #340476 by liaskas
Replied by liaskas on topic Strange behavior of cb_content module
No... this is not the reason.
Followed your directions, enabled Load Plugins in the module but the field shows only on one page. Not the others.
(Cache is cleared)

 

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48883
  • Thanks: 8356
  • Karma: 1450
20 hours 1 minute ago #340478 by krileon
Replied by krileon on topic Strange behavior of cb_content module
Strange, please PM backend super user login credentials including 2 URLs with 1 working and 1 not working and will review your install.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum