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?
Directory
3. If a directory install, is it in root or in a subdirectory?
Root
4. Did you upgrade from a previous version of WordPress? If so, from which version?
No
5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
Yes
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?
No
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?
Standart
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?
No
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
OKay, I followed this guy http://androoha.com/web-design-tuts/80-custom-notifications-buddypress-en
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>';
break;
}
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