Getting the notification link for Activities?
I have some custom front-end displays for notifications set up (i.e. a dropdown menu item). I notice when I get a message (assuming it is just a single message) the link will take me to the message itself. I get the notifications using bp_core_get_notifications_for_user($uid, ‘object’). I added a custom notification insert for comments on activity replies using bp_core_add_notification(). I want these notifications to have the same behavior as those of single messages. How do message notifications pass a link to the get_notifications function? How would I do the same for bp_core_add_notification()? Do I need to pass it in that function itself, or is the url to the individual activity inherent in the notification whether you pass it or not? Currently my custom notifications take me to the users activity stream, but don’t go to the activity that was commented on.
P.S. Bonus points if the link just scrolls down to the appropriate activity on the stream as opposed to going to the individual activity url – either works though at this point
You must be logged in to reply to this topic.