Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Tip: Load jomsocial toolbar anywere you want.

8 years 9 months ago
  • Ninos's Avatar
    Topic Author
  • Ninos
  • Offline
  • Junior Boarder
  • Posts: 100
  • Thank you received: 11
Licenses:
JomSocial Expired

Try this :

find this file: mod_knu_menue.php

change this :

	require_once( JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php');
	$ich = CFactory::getUser();
	$online =  $ich->isOnline();	

	if($online) // nur wenn 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="http://mein-mv.de/components/com_community/assets/bootstrap/bootstrap.min.js" type="text/javascript"></script>';};
		echo '<!-- Knuddelesel.de JS Community Menue Everywhere -->';
		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 style="clear:both;"></div>';
		}

	}
	else
	{
	echo '<!-- Knuddelesel.de JS Community Menue Everywhere -->';
	echo JText::_('MOD_KNU_MENUE_ACCESS_FORBIDDEN');
	}

change it to
	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	{
	}
 

maybe this will help? i'm not a expert ! this my code that im using.. and when i create a new menu item @ jomsocial toolbar it will also show on KNU..

The following user(s) said Thank You: Iain
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW