I searched for hours looking for something that allowed me to use this awesome extension in Community Builder (CB) user profiles, but all efforts lead to nowhere! However, I finally found the solution and thought I would share it here.
In your file directory, find this file: "comprofiler.html.php" you can find it by following this path: /www/yoursite/components/com_comprofiler/
Find this line of code:
$userViewTabs = $tabs->getViewTabs($user); // this loads, registers menu and user status and renders the tabs
Place this directly underneath the code above:
// CB AUTOHACK enable_mambots1 START
global $_MAMBOTS;
$_MAMBOTS->loadBotGroup( 'content' );
$tmp_row = new stdClass();
$tmp_params = new mosParameters('');
foreach($userViewTabs as $key=>$text){
$tmp_row->text = $text;
$_MAMBOTS->trigger( 'onPrepareContent', array( &$tmp_row, &$tmp_params ), true );
$userViewTabs[$key]=$tmp_row->text;
}
// CB AUTOHACK enable_mambots1 END
Then find this line of code:
$calendars = new cbCalendars( 1 );
$tabs = new cbTabs( 0, 1, $calendars );
$tabcontent = $tabs->getEditTabs( $user );
Then add this directly below the code above:
// CB AUTOHACK enable_mambots2 START
global $_MAMBOTS;
$_MAMBOTS->loadBotGroup( 'content' );
$tmp_row = new stdClass();
$tmp_params = new mosParameters('');
$tmp_row->text = $tabcontent;
$_MAMBOTS->trigger( 'onPrepareContent', array( &$tmp_row, &$tmp_params ), true );
$tabcontent=$tmp_row->text;
// CB AUTOHACK enable_mambots2 END
After the code has been inserted and saved, your videos should now work in Community Builder! Thanks to
www.mikkosoft.fi