Skip to Content Skip to Menu

[#6321] Problem with the custom trigger in CB Auto Action

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
7 years 11 months ago - 7 years 11 months ago #288446 by timstohr
Hi Kyle,
you mention that for creating the custom triggers, all one needs to do is go into the auto action, type the trigger and then press enter and it will take it over. That does not work. It does not want to take over my custom triggers (I wanted to add the custom trigger test_event_trigger). Can you reproduce it on your end?

Bye

Tim

PS: I am using this code.
Code:
// Community Builder Triggers 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' ); /*function onTestEvent(){ echo "triggering" }*/ //$_PLUGINS->registerFunction( 'Test_Event_Trigger', 'onTestEvent' ); $item = $this->item; $_PLUGINS->trigger( 'test_event_trigger', array( $item->id, $item->published, $item->creator_name, $item->category_id ));
Last edit: 7 years 11 months ago by krileon. Reason: Added [#6321] tag to subject
The following user(s) said Thank You: krileon

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
7 years 11 months ago #288452 by krileon
Was able to confirm. Looks like the tag usage broke at some point. Have added a bug ticket to fix immediately.

forge.joomlapolis.com/issues/6321


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