to show posts by the user on their buddypress profiles
Add the php code in your wordpress theme's functions.php after activating the buddypress plugin. It will add an extra tab of "my post" on buddypress profiles pages which shows all the post by logged in user.