Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Notification module always display number event if it's 0's

9 years 7 months ago
  • Enrico's Avatar
    Topic Author
  • Enrico
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
Licenses:
JomSocial Expired

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

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

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

9 years 7 months ago
  • Enrico's Avatar
    Topic Author
  • Enrico
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
Licenses:
JomSocial Expired

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...

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

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

9 years 7 months ago
  • Enrico's Avatar
    Topic Author
  • Enrico
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
Licenses:
JomSocial Expired

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

9 years 7 months ago
  • Enrico's Avatar
    Topic Author
  • Enrico
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
Licenses:
JomSocial Expired

In addition when I enable the notifications in the JomSocial menu bar, there it works...but not in the module...

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

Hi Enrico,

Where did you put the mod_notify module?

I provide you just for the comparasion, #1 from your website and #2 from our local module hellome + module notification

anyway, have you contacted the yootheme developer?

Attachments:
9 years 5 months ago
  • Enrico's Avatar
    Topic Author
  • Enrico
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
Licenses:
JomSocial Expired

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...


Attachment Screenshot2014-11-1320.29.27.png not found



Attachment Screenshot2014-11-1320.34.22.png not found

Attachments:
9 years 5 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

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());

replace to :
$notif  =  (int) $model->getTotalNotifications(CFactory::getUser());
return $notif > 0 ? $notif:'';

Not tested yet, but I hope it will work.

thank you

9 years 5 months ago
  • Enrico's Avatar
    Topic Author
  • Enrico
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
Licenses:
JomSocial Expired

Hi thanks for the fallow up, appreciated...Unfortunately this tweak did not do anything...

I have posted the issue on Yootheme has well with not success, any other ideas...?

Thanks...!

Ben

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

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

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