Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Notify when someone @mentions you

This is more of a teaser than an explanation

ah yes, i tend to post in quick theory :-P

I don’t know if it would work but essentially;

you would need to write your own action function that hooks on bp_activity_posted_update that mimics the logic of bp_activity_at_message_notification (where it looks for an username match in the content – then on the match issue the notification. have to figure out a way to delete the notification though)

function bp_core_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = false, $date_notified = false ) { (located in bp-core-notifications.php)

I wouldn’t know what the proper component name/type in this case would be

i did submit a trac ticket enhancement for this though

Skip to toolbar