Thanks Kyle.
It seems work fine.
I've removed my previous line of code and added this:
Code:
/** Include CB API */
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' );
}
/** End */
I've done some test deleting users with DT plugin and now when I go to the activity page, no blank page.
No sure anyway this can be a stable solution, 'cause the entire plugin should be reviewed, and also not sure that the CB API inclusion is correct, but you can tell me something about this maybe...