Hello my friends!
I have been using cbgjClass::getNotification to send notifications to users and it is working perfectly :laugh: , but I have a problem to load the libraries to use it in a code I'm writing from zero.
I'm using this to load the Community Builder Foundation:
Code:
global $_CB_framework, $mainframe;
if ( defined( 'JPATH_ADMINISTRATOR' ) ) {
if ( ! 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' );
} else {
if ( ! file_exists( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed!';
return;
}
include_once( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' );
}
cbimport( 'cb.plugins' );
But I can't figure out how to include the
GroupJive foundation.
How can I do it?
I'm receiving this error message when trying to use
cbgjData:: or cbgjClass:: functions
Fatal error: Class 'cbgjData' not found in /home...
Please SOS!