Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
this great module would be much greater if the badges would shown immediatly after a new message (or whatever) is in the inbox without reload the page every time.
any ideas how to make that happen?
regards
Comments
Comment #1
zengenuity CreditAttribution: zengenuity commentedIt's an interesting idea, but I probably don't have time to write this. You would need to add a javascript polling loop that periodically checks for updates and adjusts the badges as needed.
If you (or someone else) want to provide a patch, I will integrate it into this module.
Comment #2
willvincent CreditAttribution: willvincent commentedSounds like a good use case for node.js leveraging socket.io (or something similar) for push notifications.
Comment #3
zengenuity CreditAttribution: zengenuity commentedI'm sure this feature would be better with node.js, but it's significantly harder for most users to set that up. A polling loop would work on any server.
Either way, I still don't have much time right now to implement this and welcome patches from others.
Comment #4
godot882 CreditAttribution: godot882 commentedMaybe using AJAX with Views? Don't know...
Comment #5
willvincent CreditAttribution: willvincent commentedPolling loop would work, but it does add extra unnecessary traffic to the server.
Comment #6
foxfabi CreditAttribution: foxfabi commentedyou can use https://drupal.org/project/views_autorefresh
check also https://drupal.org/project/block_refresh
but you need to add link_badges.css to your html.. put this lines into your theme preprocess_html ..
Comment #7
jason.fisher CreditAttribution: jason.fisher commentedIf you can render the menu using a View, and have badges based on flags, you could potentially use the Views Flag Refresh module for this.
Comment #8
firewaller CreditAttribution: firewaller commentedCan somebody confirm that Views Flag Refresh works? It doesn't seem to be working for me.
Comment #9
Ddroid_za CreditAttribution: Ddroid_za commentedCool module.
I am also trying to update the counter. I tried Views Flag refresh to work, but I see there is no "AJAX" option on the Menu Badge display. I also tried refreshing the view via js, but the counter on my menu link is actually wrapped in a span and not a view, so I 'm stuck. Any pointers?
Comment #10
pribeh CreditAttribution: pribeh commentedBlock refresh works.