BuddyDev

Search

Notifications

  • Participant
    Level: Initiated
    Posts: 1
    travis on #17148

    Is there a way for the notification to be deleted once it has been clicked or read by the user?

    https://buddydev.com/support/forums/topic/how-to-get-notification-for-new-topic-added-in-subscribed-forum-bbpress/#post-7291

    Thanks!

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #17150

    Hello Travis,

    Thank you for posting. Please refer the following gist url:

    https://gist.github.com/raviousprime/d822dab7403858500159d94cc6e01278

    Use the code in your “bp-custom.php” file and Please do let me know.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 1
    travis on #17155

    Thank you for the quick reply and the code. I created a bp-custom.php file, pasted in the code and placed it in the plugins folder. I created a new test topic to see if it worked and unfortunately, the notification appears and still remains.

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #17156

    Hi Travis,
    Can you please share the content of your bp-custom.php. please use pastebin.com to share it.

    Also, the code only works with new notification. Try checking an existing notification(such as message).

    PS:- I am thinking that the bbp-notify-topic plugin might have some issue. Does the notification get mark read when you view the topic.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved