I need your help. Is it possible to add the jomsocial toolbar to a module in joomla 3.0 programmatically? In the past (Joomla 1.5 / 2.5) a few different methods worked but I guess upgrades changes this. I have searched high and low and tried every method I know. Thanks in advance!
This is my code that used to work:
// TOOLBAR ////////////////////////////////
require_once( JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php');
CFactory::load( 'libraries' , 'toolbar' );
$toolbar_lib = CToolbarLibrary::getInstance();
print $toolbar_lib->getHTML(_showMiniHeaderUser);
// (END) TOOLBAR ////////////////////////////////
This code is the common way:
require_once( JPATH_BASE . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php');
require_once( JPATH_BASE . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'toolbar.php');
$toolbar = CToolbarLibrary::getInstance()->getHTML();
echo '<div id="community-wrap">' . $toolbar . '</div>';
Neither of these methods work in jomsocial 3.0 or joomla 3.0 anymore and Jomsocial documentation doesn't offer any suggestions.