Skip to:
Content
Pages
Categories
Search
Top
Bottom

Notify when someone @mentions you

  • @motionsw

    Participant

    Is there a way so that you will be notified when you get mentioned, then once the notification is clicked it goes to the permalink? It’s always such a hassle to always check the “@mentions” tab. This would probably help out a lot of people.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @nuprn1

    Participant

    already a feed and email notification

    though i’m sure it is possible to take the function bp_activity_at_message_notification duplicate the atme part and have it hook into bp_core_add_notification (adminbar notification)

    @motionsw

    Participant

    Where can you find this function, and if you have the time, could you please explain more in-depth? thanks.

    @pjnu

    Participant

    It looks like it adds mentions to the scope of the admin bar’s notification menu.

    @rich! could you explain which file and where to make the changes to see this happen? This is more of a teaser than an explanation :)

    Thank you.

    @nuprn1

    Participant

    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

    @motionsw

    Participant

    Awesome thanks, I’ll check how this works!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Notify when someone @mentions you’ is closed to new replies.
Skip to toolbar