I've Figured Out How To Create a Facebook-Style Wall, But…
After going through the very many posts and requests for this feature, I finally came across a piece of code that allowed me to pull this off in BP 1.7. The only problem is, it requires modification of a BP core file (bp-activity-template.php) – can anybody tell me how to implement this as a bp-custom.php function? The original code from Chris Clayton is here:
After much trial and error, I figured out how to add follow functionality to the code – here is my final code:
case 'wall': if ( bp_is_active( 'friends' && 'bp-follow' ) ) $following = bp_follow_get_following( array( 'user_id' => $user_id ) ); $friends = friends_get_friend_user_ids( $user_id ); $me = array( bp_loggedin_user_id() ); $wall = array_merge_recursive( $following, $friends, $me ); if ( empty( $wall ) ) return false; $user_id = implode( ',', (array) $wall ); $display_comments = true; break;
This has to be inserted in the scope array starting on line 387 (BP 1.7.1). You also have to add the scope name to the list starting on line 375.
Once again, if somebody can figure out how to implement this as bp-custom.php function, please let me know. A very big thankyou to Chris Clayton for this code!
You must be logged in to reply to this topic.