• 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?

    https://www.ads-software.com/plugins/buddypress-followers/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author r-a-y

    (@r-a-y)

    Ha! Great minds think alike ??

    I recently made some changes in v1.3 for this.

    v1.3 is currently in alpha status – give it a test:
    https://github.com/r-a-y/buddypress-followers

    You could also be theming BuddyPress the wrong way, but v1.3 should catch this problem.

    Thread Starter nodinosaurs

    (@nodinosaurs)

    Thanks. Awesome!

    I just used the theme that buddpress 2.0 came with and modified from the files in the plugin. The members folder is located in buddypress/bp-themes/bp-default. Not to go off into a tangent but is this not the correct way to theme buddpress anymore?

    Thanks,
    Adrian

    Plugin Author r-a-y

    (@r-a-y)

    As of BuddyPress 1.7, BuddyPress should be supported in all WP themes without needing templates.

    If you’re using a WP theme and you want to customize BP templates, you should be copying the template files from /buddypress/bp-templates/bp-legacy/ and not /buddypress/bp-themes/bp-default/ into your WP theme’s directory.

    Check out this codex article for more info:
    https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    If you’re using an older bp-default theme, then continue doing what you’re doing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Follwing Activity, Custom Theme Issue – when adding folders members and activity’ is closed to new replies.