Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Jreviews and CB Activities Plugin

  • lbcachola
  • lbcachola
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
9 years 5 months ago #264285 by lbcachola
Jreviews and CB Activities Plugin was created by lbcachola
Hello,

I installed CB Activities module and plugin. I published the module on my jreviews site and it says "No activity to display" after I create a review. Are there instructions on how to get this work?

Thank you.

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

  • lbcachola
  • lbcachola
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
9 years 5 months ago #264299 by lbcachola
Replied by lbcachola on topic Jreviews and CB Activities Plugin
I'd like to auto action when someone creates a new review to show to cb activity.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48474
  • Thanks: 8281
  • Karma: 1443
9 years 5 months ago - 9 years 5 months ago #264327 by krileon
Replied by krileon on topic Jreviews and CB Activities Plugin
CB Activity doesn't just start tracking everything. That's not how it works. It has an API to push activity to the activity stream. If jReviews doesn't have the CB Activity API implemented and in use it won't track activity. The API however isn't done yet in CB Activity 3.0.0 RC1 so with 3.0.0 RC1 nothing currently pushes activity to the stream beyond the status posting functionality.

I'd like to auto action when someone creates a new review to show to cb activity.

That's not how CB Auto Actions work. CB Auto Actions acts on CB triggers and performs the action specific. If jReviews doesn't fire a CB trigger then there's nothing for CB Auto Actions to act on.


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.
Last edit: 9 years 5 months ago by krileon.

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

  • Roland
  • Roland
  • OFFLINE
  • Posts: 161
  • Thanks: 16
  • Karma: 11
9 years 3 months ago #267623 by Roland
Replied by Roland on topic Jreviews and CB Activities Plugin
Hey Kyle,

is the API now included in CB Activity?

I want to hire a developer to make a Jreview plugin for CB Activity (I also did it for the last version) and therefore I need as much information as possible how everything is changed now.

For old version we have a working one, but it doesn't work on 3 series...

Greetings, Roland

www.simple-quality.de - The Quality-Web-Portal

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48474
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #267706 by krileon
Replied by krileon on topic Jreviews and CB Activities Plugin
Yes, the API is done, but I highly suggest not hardcoding it. Use CB Auto Actions as a bridge when possible as done with the other activity and the System Actions. To do this you'd load CB API then fire a CB trigger. Next use CB Auto Actions to act on that trigger. If done this way it won't matter if the API changes as CB Auto Actions is bridging the two together, which would be updated with any API changes. Below is an example trigger usage.

Code:
global $_PLUGINS; $_PLUGINS->trigger( 'jreviews_onAfterReview', array( $VAR1, $VAR2, $VAR3 ) );

If CB API isn't loaded it can be loaded using the below example.

File Attachment:

File Name: loading_cb2_api.txt
File Size:1 KB


Then all you need is that trigger code. You won't need anything further for CB Auto Actions to log the activity. The alternative is to use CB Activity API after including CB API then keeping up with every API change, which could break your integration on each release depending on if the API needed to be changed or not.


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.
Attachments:

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

  • Roland
  • Roland
  • OFFLINE
  • Posts: 161
  • Thanks: 16
  • Karma: 11
9 years 3 months ago #267747 by Roland
Replied by Roland on topic Jreviews and CB Activities Plugin
Great! Thanks!
Is there an explanation for what VAR1, VAR2 and VAR3 are? Maybe VAR1 = senderID, VAR2=Title and VAR3=BodyText?

www.simple-quality.de - The Quality-Web-Portal

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

Moderators: beatnantkrileon
Powered by Kunena Forum