Follwing Activity, Custom Theme Issue – when adding folders members and activity
-
Everything works fine when you do not try to theme buddypress. Upon adding folder members and activity you are no longer able to get the correct activity for following.
I have narrowed the issue down to to the “bp_follow_add_activity_scope_filter” function and and its add actions calls.
When you don’t use a custom buddypress theme it uses this add_filter:
add_filter( 'bp_legacy_theme_ajax_querystring', 'bp_follow_add_activity_scope_filter', 10, 4 );
When you do add the “activity” and “members” folders i believe you should use this add_filter:
add_filter( 'bp_ajax_querystring', 'bp_follow_add_activity_scope_filter', 10, 2);
I set the function parameters to the following:
function bp_follow_add_activity_scope_filter( $qs, $object, $filter=false, $scope=true ) {... }
and added the following add_filter:
add_filter( 'bp_ajax_querystring', 'bp_follow_add_activity_scope_filter', 10, 2);
Does anyone else have this issue or did I do something wrong when developing a custom buddypress theme?
- The topic ‘Follwing Activity, Custom Theme Issue – when adding folders members and activity’ is closed to new replies.