Hallo!
Vielen Dank für das wirklich sehr gute und nützliche Modul. Da ich die Toolbar auf einer anderen Modulposition nutze währe es notwendig die "normale" JS Toolbar auschzuschalten, dabei wird aber auch das Modul mit abegschaltet und keines der beiden Menues ist mehr zu sehen.
Um das Modul auf allen Seiten anzeigen zu lassen, habe ich in der modules/mod_knu_menu/mod_knu_menue.php bereits die Zeile 35 und 36:
if($optionkompo == "com_community"){ }
else
entfernt.
Gibt es die Möglichkeit die normale Toolbar auszublenden und dennoch das JS Toolbar Everywhere anzuzeigen.
Vielen Dank im voraus!
ja das würde mich auch interessieren
Bei der Entwicklung des Moduls habe ich auch nach einer Möglichkeit die original Toolbar auszublenden und nur mein Modul aktiv zu lassen. Ich habe keine Möglichkeit gefunden. Wenn man die Toolbar im Backend deaktiviert, wird meine Toolbar auch nicht mehr angezeigt.
Die einzige Lösung für Euer Probleme, die mir gerade einfällt, wäre es die Toolbar in der Jomsocial Konfiguration komplett zu deaktivieren.
Dann müsste man ein neues Modul "Menü" erstellen, welches die Einträge des Menüs "jomsocial Toolbar" anzeigt.
Das Manko an dieser Lösung wären die fehlenden Benachrichtigung-Icons, die könnte man allerdings zB mit meinem Modul "Knu_JSAlerts" welches geschickt neben dem Jomsocial-Menü eingebaut wird, wieder anzeigen lassen. Es würde hier auch das Modul "mod_notify" funktionieren, welches mit im Jomsocial Paket enthalten ist.
Knu_JSAlerts funktioniert auch mit jomsocial 2.8
Hier die Lösung für euer Problem:
Editiert die Datei: com_communitycontrollerscontroller.php line 297
//$view->showToolbar();
Und schon wird sie nicht mehr angezeigt, bleibt aber trotzdem aktiviert und wird über das Modul geladen 🙂
LG, Sören
It hide the original toolbar ! :cheer:
But have you any idea why the JS Toolbar Everywhere keep not showing on every pages ? It still display as if the original toolbar was here. So, it can't show in jomsocial pages but is present in others :blink:
Thanks
Sorry but the menue only works when the original toolbar is switch on, there is no other way
With the upper change the original JS toolbar isnt disabled. It's only to hide it.
To show the Knu Toolbar everywhere you have to edit the file: "/modules/mod_knu_menue/mod_knu_menue.php"
Search for
if($optionkompo == "com_community"){ }
else
{
echo '';
echo '
echo '
echo $toolbar_lib->getHTML();
echo '
';
}
Change it to:
//if($optionkompo == "com_community"){ }
//else
//{
echo '';
echo '
echo '
echo $toolbar_lib->getHTML();
echo '
';
//}
Now the Knu Toolbar shows totaly everywhere.
You know Toolbar is only a module? Search for knu..... in modules. Then select pages you want it and call it a day ;).
You know Toolbar is only a module? Search for knu..... in modules. Then select pages you want it and call it a day ;).
Hey crazymike... thats right but the modul isnt show on js pages.
Do you understand php?
What does this mean? "if($optionkompo == "com_community"){ }" ?
It does not matter where the module is enabled in Joomla. The original Knu code prevents the display. So you have to change the knu code aswell.
Believe me. I implemented it this way and it works beautifully.
^^
Die Lösung //$view->showToolbar(); ist nett aber es müsste nach "jedem" social-update angepasst werden, somit schlecht für ne install-version 🙁
Thank you very much Ajaey !!! It was exactly what I needed. Now I really have the menue on every pages.
Maybe add this as a backend parameter in next release ?!
Great job 😉
Hi there,
"if($optionkompo == "com_community"){ }" means that the toolbar of the module JS Toolbar Everywhere only shows in non jomsocial sites.
When you comment it out the toolbar shows on jomsocial sites a second time!
Please notice that the module don't work if you switch the toolbar off in jomsocial backend configuration!
I wanted create a module to show the jomsocial toolbar on every site without to need hack any core files.
Or write an own js-template 😛
