Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: I've Figured Out How To Create a Facebook-Style Wall, But…

@luckyrajiv

Participant

@ljmac It works now, but one problem, I had to remove this line

		$following = bp_follow_get_following( array( 'user_id' => $user_id ) );

After this it works, but one more problem, Now all Personal , Favorites, Groups, Mentions have the same stream like wall.

What i have actually done See here:
At bp-activty-template.php I added

	if ( 'wall' == $scope || 'just-me' == $scope || 'friends' == $scope || 'groups' == $scope || 'favorites' == $scope || 'mentions' == $scope ) {

then

			switch ( $scope ) {
				case 'wall':
					if ( bp_is_active( 'friends' && 'bp-follow' ) )
						$friends = friends_get_friend_user_ids( $user_id );
						$me = array( bp_loggedin_user_id() );
						$wall = array_merge_recursive( $friends, $me );
						if ( empty( $wall ) )
					return false;
						$user_id = implode( ',', (array) $wall );
						$display_comments = true;
					break;	
					
				case 'friends':
					if ( bp_is_active( 'friends' ) )
						$friends = friends_get_friend_user_ids( $user_id );
						if ( empty( $friends ) )
							return false;

						$user_id = implode( ',', (array) $friends );
					break;

And After that i Replace the line in Theme/Activity/activity-loop.php

<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ).'&scope=wall' ) ) : ?>
Skip to toolbar