You could use bp-custom.php for this if a hook is available but an alternative method would be to override the template. Check out the BuddyPress Template Hierarchy article for more info. This approach gives you more control over what exactly is to be displayed on your website.
thanks for the fast reply henry,
I understand that by default the all activity page has a whats new form already but I’m using a plugin by buddydev that says show community (sitewide) activity on profile, and it works great but it doesnt have a post form for people to post activity. But when i go to my url.com/activity… there is a post form there. I’m not the best at coding. Any help from the community would be greatly appreciated.
The activity post form that is displayed on the site-wide activity page can be found here. You could use a modified version of that in your profile template?
thanks henry, you’re the man. I didn’t even think of that. after hours of sitting in front of a computer screen looking at code your mind becomes mush. I’m going to play around with it and let you know if it works.
THANK GOD, I FINALLY GOT IT!!!
I’m going to share what I did with the community so they dont have to go through the crap I went though.
The directions that buddydev.com gives you is dated and didnt work with my theme. Since my theme did not have a activity.php I had to change out the file located in buddypress plugin ….
/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/activity.php
inside that file go to line 48 should be something like this
if ( is_user_logged_in() && bp_is_my_profile() && ( !bp_current_action() || bp_is_current_action( ‘just-me’ ) ) )
ALL I CHANGED WAS THAT LINE OF CODE ABOVE TO THIS
if ( is_user_logged_in() && bp_is_my_profile() && ( ” == bp_current_action() || ‘just-me’ == bp_current_action()||BPCOM_ACTIVITY_SLUG == bp_current_action() ) )
IF YOU USE ANY OF THE CODE FROM BUDDYDEV SITE http://buddydev.com/buddypress/show-buddypress-communitysitewide-activity-on-user-profile/#comment-1497563 WITH ALL THE <?PHP BREAKS. IT WILL NOT WORK.
NOTE: For some reason when I tried to add this file to my theme folder, it broke my Activity stream, I didnt design the theme so I have no clue why it would be doing that. So if you add this to the buddypress plugin you will have to replace that file everytime you update buddypress.
HOPE THIS HELPS, THIS TOOK ME A BETTER PART OF A DAY ALMOST 2 DAYS TO ADD A POST FORM FOR THE ALL ACTIVITY IN PROFILE ON THE BOSS THEME. I HOPE IT HELPS THE COMMUNITY NOT HAVE THE FRUSTRATIONS I DID
PLEASE SHOW ME SOME LOVE AND SHARE MY WEBSITE ON YOUR BLOG OR COMMENT ON MY SITE.
http://www.modeltmedia.com
http://www.industrycallsheet.com