Ok, If i remove the function compare from the jcalpro file mention in the error, it loads fine.
Unfortunately, the tab displays the LOGGED IN USERS events, not the events of the profile being viewed. So susan will see her events in every profile she views instead of the events of the member she is viewing.
Here is the cbjcalproevents.php file
[code:1]<?
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );
class geteventsTab extends cbTabHandler
{
function geteventsTab() {
$this->cbTabHandler();
}
/*Main function */
function getDisplayTab($tab,$user,$ui) {
// init params from plugin
$params = new JParameter($this->params->_raw);
// get output of module
$html = '';
if( is_readable(JPATH_ROOT. DS. 'components'.DS.'com_jcalpro'.DS.'include'.DS.'latest.inc.php') ) {
ob_start();
include( JPATH_ROOT. DS. 'components'.DS.'com_jcalpro'.DS.'include'.DS.'latest.inc.php' );
$html = ob_get_contents();
ob_end_clean();
}
return $html;
}
}
?>
[/code:1]
Can anyone see what we can change to make it only show the events of the profile owner, not the viewer.