Note: This is to inform you that these snippets are around 2 years old so these might not work for everyone.

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

  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. Hi. You are correct, there is a mistake in the code. Make sure you delete the current version you are using (that is not working) and copy / paste the new version.

    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

[elfsight_popup id=”1″]