Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity Feed Default set to Friends


  • Nick Watson
    Participant

    @nickbwatson

    I was wondering how I could set my activity feed so that it’s defaulted to the friends feed of the user viewing it.

    I have my home page (www.mysite.com) set so that it displays the activity feed.

    There are the options to select:

    “All Members” and “My Friends”, but I just want to make the default to “My Friends”.

    Any help would be great, thanks.

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

  • Nick Watson
    Participant

    @nickbwatson

    Oh okay, I hadn’t seen any posts on this yet.

    I’ll keep a watch on yours.


    ssmediaco
    Participant

    @ssmediaco

    Any response to this? I’d love to figure this out too


    abysshorror
    Member

    @abysshorror

    Hey, I came up with this solution.
    I wanted to make “Following” the default activity sub_nav if I’m visiting my profile and “Personal” if I’m visiting someone elses’. On /plugins/buddypress/bp-activity/bp-activity-loader.php:
    `
    // Add ‘Activity’ to the main navigation
    $main_nav = array(
    ‘name’ => __( ‘Activity’, ‘buddypress’ ),
    ‘slug’ => $this->slug,
    ‘position’ => 10,
    ‘screen_function’ => ‘bp_activity_screen_my_activity’,
    ‘item_css_id’ => $this->id,
    ‘default_subnav_slug’ => bp_is_my_profile() ? ‘following’ : ‘just-me’
    );

    // Add the subnav items to the activity nav item if we are using a theme that supports this
    $sub_nav[] = array(
    ‘name’ => __( ‘Personal’, ‘buddypress’ ),
    ‘slug’ => ‘just-me’,
    ‘parent_url’ => $activity_link,
    ‘parent_slug’ => $this->slug,
    ‘screen_function’ => ‘bp_activity_screen_my_activity’,
    ‘position’ => bp_is_my_profile() ? 29 : 10
    );
    `
    Then change the ‘position’ => of “Mentions” and “Favorites” for values higher than 29 and lower than 40 (“Friends”)

    Hope it helps ! I’d like some feedback on this

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Activity Feed Default set to Friends’ is closed to new replies.
Skip to toolbar