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 ));