Buddypress notifications not working (3.0.5)

7.40K viewsIssues
0

So basically Buddypress integration is only partial working. Anspress properly sends info about activities and BP shows them, but BP doesn’t show any notifications for AP actions. In that case integration with BP is somewhat problematic.

If BP is active, then automatically AP notifications (drop down menu etc.) are switched off. So now there are no notifications at all if you want to integrate AP with BP.

0

I also need help here,

  1. Anspress notification does not syn with Buddypress, when i select buddypress in profile setting.

2. Notification  only works when i select Anspress in User profile setting.

I dont want to use anspress notification , but want it to notify via buddypress.

 

I appreciate all help i can get

0

I fixed notification for BP and it is working well, but I still have issue with deleting comments notifications if I delete whole question or answer. I will need to make a deleting loop for comments.

So notifications are now working, but they are not dismissed after clicking them. So how can I trigger a “read notification” after click and redirect to where that notifications leads?

commented on answer

Comments notifications are stored in AnsPress tables or BP?

Please feel free to send a pull request and I will check.

Yes, I know how to trigger a notify read after, for example, clicking on a dedicated button. I need to dismiss notification when user loads a question page which these notifications relate to. I will write a function, that checks if user has notifications related to that question page, and dismiss them, when he do. What I need, is a add_action, that will execute my function after question page load. Any ideas?

Yes, comments notifications are stored in BP tables. For adding bp notifications I’m using bp_notifications_add_notification();

0

I’ve been poking around this problem and found that notifications for BP where built based on two functions: ap_add_parti() and ap_get_parti(). You do not use these functions anymore, so there You have it.

There is no participant added to the meta after submitting question, answer or comment, so:

$participants = ap_get_parti( $answer->post_parent );

// and

$participants = ap_get_parti( $comment->comment_post_ID ); }

are always returning null.

commented on answer

Yes you are are right, that’s a bug.

0

Hello @marnotrawny,

BP integration was last updated in 2.0 version. I am not getting enough to to update integration. But I will add this to my task list.

Thanks for reporting.

commented on answer

Yes, I can imagine. I’am actually on the way to integrate Anspress with a quite big tech blog. That is just keeping me busy for some time now, and I added lots of small changes to get it working. But in the center of all of that is integration with the Buddypress plugin. It’s essential for me to get notifications working. If I find some time, I will look closer into this, but for now I don’t see any issue with the code. Thx for Your effort, Anspress is a quite big “machine”.