Search Results for 'buddyboss'
-
Search Results
-
Any idea why my activity stream is always completely empty here at buddypress.org? Appears to be broken.
Hi guys! I have a WP 3.7.1 and BP 1.8.1 and I have created the following function in my functions.php to retrieve the number of notifications of the current user. The function has one parametrer $type_notification that can be: ‘new_message’, ‘group_invite’ or ‘friendship_request’.
The function works quite well, but the point is that with that function in functions.php, the BP ajax doesn’t work. For example: the search box in members or the members list pagination. If I delete this function from functions.php, the members pagination, etc. works fine again.
Does anyone know why is this happening? or an alternative function that I can use for this porpouse that doens’t break the ajax?
Thanks in advance! 🙂
Rocío Valdivia
/** * Get notifications for a specific user */ function buddyboss_childtheme_core_get_notifications_for_user( $type_notification ) { global $bp; $user_id = $bp->loggedin_user->id; $notifications = BP_Core_Notification::get_all_for_user( $user_id ); $grouped_notifications = array(); // Notification groups $renderable = array(); // Renderable notifications // Group notifications by component and component_action and provide totals for ( $i = 0, $count = count( $notifications ); $i < $count; ++$i ) { $notification = $notifications[$i]; $grouped_notifications[$notification->component_name][$notification->component_action][] = $notification; } if($type_notification == 'new_message'): $number_notifications = count($grouped_notifications['messages']['new_message']); elseif($type_notification == 'group_invite'): $number_notifications = count($grouped_notifications['groups']['group_invite']); elseif($type_notification == 'friendship_request'): $number_notifications = count($grouped_notifications['friends']['friendship_request']); endif; return $number_notifications; }I am having issues seeing Activity and Members after upgrade to 1.8.1 (from 1.6).
When looking at http://spiritualnotreligious.net/activity/ I see, “Sorry, there was no activity found. Please try a different filter.” This is with filter set to “Everything”.
When looking at http://spiritualnotreligious.net/members I see error “Sorry, no members were found.” (We have more than 1000 members).
I can see all users at /wp-admin/users.php
/wp-admin/admin.php?page=bp-groups says “No Groups Found” with filter of “All” even though it also notes on the tab that there are (5) Public groups.
/wp-admin/admin.php?page=bp-activity says “No activities found.” even though the navigation section on same page states 5,344 items (page 1 of 268).
Help please!
1. Which version of WordPress are you running?- 3.6
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? Yes, 3.4
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? 1.8.1
7. Did you upgraded from a previous version of BP? If so, from which version? 1.6
8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? BackUpWordPress, PHP Execution, s2Member® Framework, All in one Favicon (I have seen same issue with all disabled)
9. Are you using the standard BuddyPress themes or customized themes? BuddyBoss, but have seen same issue with BuddyPress Default
10. Have you modified the core files in any way? No. I even attempted removing the buddypress directory and uploading fresh.
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? No bbPress.
13. Please provide a list of any errors in your server’s log files.
14. Which company provides your hosting? Dreamhost
15. Is your server running Windows, or if Linux; Apache, nginx or something else? Apache (I believe) – Dreamhost VPS