Skip to Content Skip to Menu

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

New trigger for CB Auto Action to integrate with DPCalendar

  • inelia
  • inelia
  • OFFLINE
  • Posts: 20
  • Thanks: 3
  • Karma: 2
9 years 3 months ago #268282 by inelia
Hello,

I would like to have new events created with DPCalendar show up in the Recent Activity Stream.

I am trying to use the CB Auto Action plugin, but I cannot seem to find a proper trigger for that action.

Is there a tutorial somewhere on how you can create a new trigger for CB Auto Action that you can then use to post stuff in CB Activity?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago - 9 years 3 months ago #268286 by krileon
You need to first load CB API using the below.

Code:
global $_PLUGINS; if ( ( ! file_exists( JPATH_SITE . '/libraries/CBLib/CBLib/Core/CBLib.php' ) ) || ( ! file_exists( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' ) ) ) { echo 'CB not installed'; return; } include_once( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' ); cbimport( 'cb.html' ); cbimport( 'language.front' ); $_PLUGINS->loadPluginGroup( 'user' );

Next you can fire a trigger like seen in the below tutorial.

www.joomlapolis.com/support/tutorials/120-api-usage/18358-using-cb-triggers

You can then use that trigger in CB Auto Actions.


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 3 months ago by krileon.
The following user(s) said Thank You: activha, inelia

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

Moderators: beatnantkrileon
Powered by Kunena Forum