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 10 months ago
  • Ninos's Avatar
    Topic Author
  • Ninos
  • Offline
  • Junior Boarder
  • Posts: 100
  • Thank you received: 11
Licenses:
JomSocial Expired

Anyone that wants to load jomsocial toolbar.

Attachment jomsocialtoolbar.JPG not found


Tested with jomsocial 3.1.1.
i'm using this php code:
<?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	{
	}

?>
I hope this helps a lot of jomsocial community members.

Attachments:
The following user(s) said Thank You: Siniša Krišan, nothing more
8 years 10 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

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

8 years 10 months ago
Licenses:
JomSocial Expired

Thanks but which folder do I add code this in?
Please specify

8 years 10 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

QBar is a module, you need to download it and install it

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

Sébastien wrote: Thanks but which folder do I add code this in?
Please specify


You put it in the file that you wanna show it ? if you cant do that. download this module its free: www.jomsocial.com/addons/modules/knu-jom...l-toolbar-everywhere ( it is using the same php code i posted )

The following user(s) said Thank You: Iain, Dimas Tekad Santosa
8 years 10 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

thank you ninos for your explanation ;)

I hope sebastien will follow it..

8 years 10 months ago
  • Iain's Avatar
  • Iain
  • Offline
  • Fresh Boarder
  • Posts: 70
  • Thank you received: 6
Licenses:
JomSocial Expired

One can also create a new menu module
Choose exclude from community Pages, menu will then show on all pages

Attachment JSmenu.png not found

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

True to that! but style is not the same for users .

The following user(s) said Thank You: Iain
8 years 10 months ago
  • Iain's Avatar
  • Iain
  • Offline
  • Fresh Boarder
  • Posts: 70
  • Thank you received: 6
Licenses:
JomSocial Expired

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

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

What forum are your using? And wat are does menu items links. I will try to do the same and test it. Will be great if you can send me your site link.

The following user(s) said Thank You: Iain
8 years 9 months ago
  • Iain's Avatar
  • Iain
  • Offline
  • Fresh Boarder
  • Posts: 70
  • Thank you received: 6
Licenses:
JomSocial Expired

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

8 years 9 months ago
  • Iain's Avatar
  • Iain
  • Offline
  • Fresh Boarder
  • Posts: 70
  • Thank you received: 6
Licenses:
JomSocial Expired

Or one can login with facebook

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

oke you are using KNU module and not my php code.

I will install forum and test it out on my demo site. I will report back if i found a fix.

ps. my english is bad :P

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

after installing forum : im getting a error message :

Attachment Capture.JPG not found



so i cant not test it out.(don't have time to fiqure out why its not working ) please create a member account for your site and send me a pm so that i can take a look. or just a test test account.

Attachments:
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