merge friends Acrivity And Personal Activity in one page
-
Hello,
I’m New with Buddypress i want to merge friends Acrivity And Personal Activity in one page
first i removed the subnav “friends” and “personal” with this function
function bp_merge_friends_personal()
{
global $bp;
bp_core_remove_subnav_item($bp->activity->slug, ‘friends’);
bp_core_remove_subnav_item($bp->activity->slug, ‘just-me’);}
and every thing worked fine
i add new Sub Nav called ” wall “with this code
function bp_Add_Wall ()
{
global $bp;
$activity_link = $user_domain . $bp->activity->slug . ‘/’;
bp_core_new_subnav_item( array( ‘name’ => __( ‘Wall’ ), ‘slug’ => ‘wall’, ‘parent_url’ => $activity_link, ‘parent_slug’ => $bp->activity->slug, ‘screen_function’ => ‘bp_activity_wall’, ‘position’ => 10, ) );}
every thing worked fine i should write code for bp_activity_wall function to display the user activity and his friends in the same page like “Facebook”
when i clicked to the Wall link it return me to the man page
my questions is
how to add new template or page to that display these activities
or if there another solution to merge friends activity and personal activity in the same page
Regards
- The topic ‘merge friends Acrivity And Personal Activity in one page’ is closed to new replies.