Hi, I have the notification module published at the top right of my site when your login but like you will see it always display number of notifications event if it's null ( 0 )...I would like to have it the same way has before please...Can you please edit my file I have placed in the override folder I created for the module...?
Here you can see another post with the same problem I have :
www.jomsocial.com/forum/modules-plugins-...odule-tooltip#102364
Thanks for the help...
Ben
Hi Enrico,
I just changed the code from the override file, but I am not sure why this issue still happens, actually the method is same with this topic
www.jomsocial.com/forum/modules-plugins-...odule-tooltip#102364
, anyway i suggest you YOOtheme's developer, because this issue is coming from their code.
thank you
Thank you for this, appreciated...Yes I will ask Yootheme if it rings a bell...In the mean time can you please guide me the lines of code that are responsable for hiding the class when the value is null...That will probably help finding the issue...
Thanks again for you time...
well.. I aready modified the mod_notify template from original file and override template as well, and commented this code echo "0"; but not effected much your site
Hi there, again thanks for the fallow up...Not sure if this can help you out figure this thing out but when I disable my Yootheme template and use the default ( Protostar ) one I still get the issue...So I guess it's not related to Yootheme...We can take that out of our list...
Any other ideas where I could search for clues...?
Thanks...
Ben
I will contact them, but I think they will send me back to you guys...I don't know how you get to make it work properly cause when I go in template manager and choose protostar template I get the same problem has YooTheme framework, see screenshots...
The module is in the override right now in templates/my_sports_cards/html/com-community/mod_notify/default.php
Thanks for the help...
Hi Enrico,
I see, this is different issue, which in latest version we have AJAX realtime notification, so please you open components/com_community/libraries/toolbar.php, find this code :
return (int) $model->getTotalNotifications(CFactory::getUser());
$notif = (int) $model->getTotalNotifications(CFactory::getUser());
return $notif > 0 ? $notif:'';
Hi Ben,
I see, I think this solution is more complicated than I thought before, I already traced into the deep of codes.. do you think the "0" is very important for you? for fixing this you need more effort, just my personal suggestion, I think you should ignore the "0" issue and skip it, because this is not important things inside the main functions.
Our support in hack jobs is very limited, we cant help you too much... sorry :(
maybe the last solution is you should create the simple javascript for checking the count value, if 0 you hide it.
thank you for your understanding