Skip to:
Content
Pages
Categories
Search
Top
Bottom

show entire activity stream – global activity stream


  • Quinn Goldwin
    Participant

    @quinngoldwin

    Hey everyone,

    Right now I’m using this plugin called Facebook Like User Activity Stream by buddydev but it only shows your friends and group activity.

    Is there a way to show all the activity on the site. Like a global news feed? Right now I dont have many users and activity so I’d like to show everyone’s activity on a dedicated timeline. Is there a plugin or what php file and coding would i need to edit to make this happen. Any help is much appreciated.

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

  • danbp
    Participant

    @danbp

    On Activity Page, all activities are up by default. Same for activity RSS feed.

    Deactivate your plugin to see the difference.

    Activity Streams


    Quinn Goldwin
    Participant

    @quinngoldwin

    Thanks dan, I have the all activity on the specific page, but I wanted it in my profile. i ended up seeing this link on buddydev and it’s exactly what I need it to do http://buddydev.com/buddypress/show-buddypress-communitysitewide-activity-on-user-profile/ , I just wish I knew how to default it to that link when clicking on the activity link.

    When i hit the activity link, it goes to my personal activity instead of the “all activity” tab. Could you direct me in how I could change the default sub menu tab in activity.

    Thanks for your help! Have a wonderful independence day!


    danbp
    Participant

    @danbp

    @quinngoldwin

    it goes to my personal activity instead.

    It’s intended so ! You’re on a profile page, and any links added directly to buddybar or his subnav is alwways, and only, user related. It’s a contextual menu.

    But you can use bp_member_options_nav action hook which is on the template.
    bp-templates/bp-legacy/buddypress/members/single/home.php

    Add this snippet to bp-custom.php your your child theme functions.php:

    
    function goldwin_custom_setup_nav() {
      if ( bp_is_active( 'xprofile' ) )
    ?>
    <li><a href="<?php bp_activity_directory_permalink(); ?>"><?php printf ('All Activities'); ?></a></li>
    <?php  
    }
    add_action( 'bp_member_options_nav', 'goldwin_custom_setup_nav' );

    By default, the hook is placed as latest item of the navbar items. To get as first item, simply move the action at the begin of the list.

    Default code looks like this:

    
    <ul>
    
    <?php bp_get_displayed_user_nav(); ?>
    
    <?php do_action( 'bp_member_options_nav' ); ?>
    
    </ul>

    that you can chage to:

    <ul>
    
    <?php do_action( 'bp_member_options_nav' ); ?>
    
    <?php bp_get_displayed_user_nav(); ?>
    
    </ul>

    But you can’t get your custom item as second, or third, or whatever. Only first or latest.

    How to use bp-custom, functions.php and child_theme is explained on the codex.


    Quinn Goldwin
    Participant

    @quinngoldwin

    Hey Danbp,

    Thank you for the quick responses and all your help. I tried playing around with your way but I’m not advanced enough for working with hooks and custom coding just yet.

    I did find an easier work around that I just pasted into my bp-custom.php and it did the trick. But for other members trying to do this, you need to have the plugin http://buddydev.com/buddypress/show-buddypress-communitysitewide-activity-on-user-profile/ for this to work.

    function bp_change_activity_subnav_default() {
    
    	if ( bp_is_user_activity() ) {
    	
    		$args = array(
    			'parent_slug' => 'activity',
    			'subnav_slug' => 'all-activity'
    		);
    		
    		bp_core_new_nav_default($args);
    	
    	}
    	
    }
    add_action('bp_setup_nav', 'bp_change_activity_subnav_default', 5);   

    I understand you guys aren’t getting paid for your services but now i’m just struggling on adding a “whats new” post form to the all activity page. Buddy dev had some directions on how to add it but I think its dated cause I couldn’t find the code that we needed to switch out. Is there a simple way to add a whats new post form to the all activity page? It would be awesome if it was simple enough to paste it into bp-custom.php.

    Thanks again for everything you guys are great!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘show entire activity stream – global activity stream’ is closed to new replies.
Skip to toolbar