Anyone that wants to load jomsocial toolbar.
<?php
require_once( JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php');
$ich = CFactory::getUser();
$online = $ich->isOnline();
if($online) // Alleen wanneer online
{
CFactory::load( 'libraries' , 'toolbar' );
$toolbar_lib = CToolbarLibrary::getInstance();
$jinput = JFactory::getApplication()->input;
$optionkompo = $jinput->get('option');
$knu_doc = JFactory::getDocument();
if($optionkompo == "com_community"){ }
else
{
$load_bootstrap = $params->get('load_bootstrap', 1);
if($load_bootstrap) { echo '<script src="/components/com_community/assets/bootstrap/bootstrap.min.js" type="text/javascript"></script>';};
echo '<div class="Otakubook-menu">';
echo '<div class="'.$params->get('moduleclass_sfx').'">'; // moduleclass_sfx
echo '<div id="community-wrap" style="margin-bottom:0px! important;min-height:0px! important;" >';
echo $toolbar_lib->getHTML();
echo '</div></div></div><div style="clear:both;"></div>';
}
}
else {
}
?>
Hi Ninos,
Thank you for sharing this.. if you guys also want use the 3rd party module you can use this
www.suburbans.org/premium-extensions/qbar
Best
QBar is a module, you need to download it and install it
Sébastien wrote: Thanks but which folder do I add code this in?
Please specify
thank you ninos for your explanation ;)
I hope sebastien will follow it..
Ninos,
Thank you for your comment, valued and the link provide for the free download I have used and now it is on my site, Works great.
I have installed and works but in the Jomsocial menu 'Forum' is displayed but in the KNU module it is not showing
All other JS menu links are but not the forum one (It is visible in the JS menu)
I did try to add a new menu item to JS toolbar using joomla menu manager but just ended up with 1 forum link in the KNU menu and 2 instances in the JS toolbar
Any help in achieving this would be much appreciated - Thank you again
Hello and thank you for taking the time to reply
Kunena Version:3.0.5
Also have the Kunena - JomSocial Integration plugin enabled
wightshops.com/forum/index
I will try to pm you temp login info so you are able to see the jomsocial toolbar issue