BuddyDev

Search

How to implement live notification from plugin into header?

  • Participant
    Level: Enlightened
    Posts: 47
    Alex on #53561

    Hello,
    you offer the great live notifications plugin which updates the number at the WP toolbar in real time if any new message comes in.
    I am not using the WP toolbar. Instead a bell which updates the number by “bp_notifications_get_unread_notification_count( $user_id );”.

    Is it possible to live update it the same like WP toolbar does with your plugin?

  • Participant
    Level: Enlightened
    Posts: 47
    Alex on #53562

    By the way, there is a problem/bug with the live notfication plugin.

    1.Chose public message on someone’s profile.
    2.Then select friendship from the dropdown on the right side
    3.Write something in the text field and click update
    4.On next page click “see acitiviy”
    Then a button “undefined” occurs which counts up every 10 seconds or so. This happens only if your plugin is installed. Interesting, I tested this behaviour with another live bell plugin and it has the same bug.
    If your or his plugin is deactivated everythings works and no “undefined” occurs.

    Tested with twenty twenty five theme, buddypress, buddypress classic and your plugin on a fresh wordpress installation.

    Here a mp4 video about this (link is just viewable 24 hours)
    https://jumpshare.com/s/7EDAITT7ST9YKQYh9bZS

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #53579

    Hi Alex,

    Thank you for using the plugin.

    I am unable to assist you with a custom theme but I will point you to the code updating admin bar.
    https://github.com/sbrajesh/bp-live-notification/blob/master/assets/js/bpln.js#L68

    Please feel free to make that work with your theme.

    About your second issue, I am sorry, I have no idea what might be causing it. I will test it and write back tomorrow.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 47
    Alex on #53920

    Dont using it but curios if you ve been able to fix the bug already? As said, another live plugin like yours having the same issue…

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #53923

    Hi,
    Thank you for the reply.

    I am sorry, I could not look into it due to lack of time. Since you are not using it and it is not reported by anyone else, I will be looking into it with a low priority(may be at the beginning of new year now).

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved