Skip to:

Pending Notifications

  • b a



    I’m using BP Like (Dislike) plugin.
    Now I want to hook notifications when somebody likes my post.
    You now, as in fb or G+, I get pending notification.

    So, where to start? I didn’t find any documentation, forum issue or anything similar (very strange).
    Can somebody direct me corect way? Where those notifications are stored? or any example I can see?


Viewing 2 replies - 1 through 2 (of 2 total)

  • b a


    Please try to supply answers to the following questions.

    1. Which version of WordPress are you running?
    Lastest (stable)
    2. Did you install WordPress as a directory or subdomain install?
    3. If a directory install, is it in root or in a subdirectory?
    4. Did you upgrade from a previous version of WordPress? If so, from which version?
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    6. Which version of BP are you running?
    Lastest (stable)
    7. Did you upgraded from a previous version of BP? If so, from which version?
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    Yes, many plugins and all of them BP related, since I don’t have any error/problem with my current installation, I won’t insert here this big list. Need to mantion BP Like/Dislike though
    9. Are you using the standard BuddyPress themes or customized themes?
    10. Have you modified the core files in any way?
    Yes, In many way 😀
    11. Do you have any custom functions in bp-custom.php?
    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
    Lastest, I downloaded it from WP Plugins
    13. Please provide a list of any errors in your server’s log files.
    Strange but no errors (with Debug turned off)
    14. Which company provides your hosting?
    Local installation
    15. Is your server running Windows, or if Linux; Apache, nginx or something else?
    Linux Ubuntu, apache 2.2 php5

    b a


    OKay, I followed this guy

    And it did a trick, in some way, so I will extend my question here.

    I managed to add function which adds notifications to database when I like an activity.
    It displays it well when I have only 1 notification with such component_action.
    But when I have to, it just merges my notifications into one, or something like this, sometimes it even brokes (but might be another issue)

    so here is my code in functions.php

    function bp_members_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { 
    	global $bp; 
    	switch ( $action ) {
    		case 'new_likes': 
    			$thanks_for      = $item_id; 
    			$who_thanked     = $secondary_item_id; 
    			$link = '/heregoeslink'; 
    			$return = '<a href="'.$link.'">'. $who_thanked .' liked your link!</a>'; 
    	return $return; 

    I have 5 notifications in database with new_likes component_action and 4 of them belong to current user. so $total_user contains “4”,

    now I want to remake this code to display user notifications separatly.

    Many thanks even for reading till this )) I also try to continiue thiking for an answer and if something I’ll post it here

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pending Notifications’ is closed to new replies.
Skip to toolbar