Log Entries to BuddyPress Notifications

Home / Code Snippets / Log Entries to BuddyPress Notifications

This is an example how you can add BuddyPress notifications for users when they gain / lose myCRED points.

Add to your child theme's functions.php file

Last edited October 22, 2016

  1. Hi,

    I’ve added the snippet into my functions file, when its triggered, it shows a new notification, but no text is being displayed.
    Is there any additional action I need to take in order to display the text in the notification?

    Much appreciated!

    1. This, right here, is 1/3 of what is needed to make badges perfect! Some way to let users see when they earned something (not so interested in the points because that gets spammy but badges… so much yes!)

    2. Yes and yes!!! Showing when users earn badges/ranks in the Activity Feed would be epic!

  2. @Gabriel Merovingi

    Superb! When adding the snippet it now displays the text that tokens are earned!
    Would it be possible to have it include the amount of tokens that are earned aswell – and maybe link the actual notification to the history of a user, so they may check in full the entries?

    Thank you very much in advance!

Leave a Reply