BuddyDev

Search

Show BuddyPress community(sitewide) activity on User Profile

Hi All,

It has been more than a week since I lasted posted a new plugin. Well, I am back again with a simple plugin. Thanks to Greg for the Idea.

The plugin, BP Community Activity on profile shows all the community activity on user profile. It adds a sub nav in User activity with name “All Activity”. A logged in user can click on it to see what is happening across the network.

Features:-

  • Show sitewide activity on user profile itself
  • what more?

Screenshot:-

This plugin will help you to stream line your network on the lines of the popular social networks like facebook etc.

Hope it will help a few of you.

Download & Installation:-

http://buddydev.com/plugins/bp-community-activity-on-profile/

Customization:-
In case you want to show the post form on the All activity page, please open your theme

<?php if ( is_user_logged_in() && bp_is_my_profile() && ( '' == bp_current_action() || 'just-me' == bp_current_action() ) ) : ?>
	<?php locate_template( array( 'activity/post-form.php'), true ) ?>
<?php endif; ?>

and change it to

<?php if ( is_user_logged_in() && bp_is_my_profile() && ( '' == bp_current_action() || 'just-me' == bp_current_action()||BPCOM_ACTIVITY_SLUG == bp_current_action() ) ) : ?>
	<?php locate_template( array( 'activity/post-form.php'), true ) ?>
<?php endif; ?>

That will show the post form on the Community activity page.

Please let me know your suggestions for the improvement or anything you want to know.

Get latest WordPress & BuddyPress tutorials, news and tricks in your inbox.

We send out a lovely email newsletter with the most popular stories. Be a part of it.

63 Responses to Show BuddyPress community(sitewide) activity on User Profile

  • Hi Brajesh,

    I could not translate the “All Activity” in menu to norwegian.. I have not looked into the file yet, most probably i can fix it, but just want to let you know.

  • Thanks, you are the best :)

  • awesome Brajesh! Thank you!

  • Brajesh, how would I set this as the default landing component when a logged-in user visits their profile page? (when they visit another member’s page, it should show that user’s activity)

  • Awesome Brajesh thanks! Can you tell me what file I am looking for to make the post form mod work? I can’t seem to find it, I checked activity-loop.php and the index.php inside my themes activity folder.

  • Thanks Brajesh! Works perfect!

  • Hi Brajesh,

    I could not find anything about the post form to mod in members/single/activity.php of the BP-mag theme?

    Thanks
    Rune

  • thank you, great plug in !!!
    how about if i want to use that to show only the user and his friends activities ? is there a way?

    thank you

  • hi Brajesh,

    great addition!
    since we have this in profile, could you help please re how to hide main BP site wide activity page?

    thank you.

  • Hello, I am using cosmic buddy theme and recently upgraded to 3.2.1. I can no longer add widgets or edit exisiting widgets. I switched to Twenty Eleven theme and then back to cosmic buddy and a bunch of widget content has disappeared (rss feeds, youtube embed, etc.)

    Any help appreciated.
    Steve

  • Hello, i have got another way to redirect user to show all activity

    1) Install BP-PROFILE-AS-HOMEPAGE plugin

    2) INSTALL PLUGIN

    3) in admin dashboard where list of plugin is listed you will find BP PROFILE AS HOMEPAGE PLUGIN, under it THERE IS TWO OPTION deactivate & edit

    4) click on EDIT

    5) Replace following line

    wp_redirect( $bp->loggedin_user->domain );

    WITH THIS

    wp_redirect( bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . ‘/’ . BPCOM_ACTIVITY_SLUG );

    6) You are Surely done. It works 100 Percent. i have also used help from this forum i am thank ful about it.

    Anyone facing problem mail me on jigesh.raval@gmail.com

  • Hi brajesh,

    Thanks for your appreciation, can you help in small CSS issue with my website?

    my website is http://www.spoword.com

    if i am installing some content on left side right side goes down and down…i know its a tag problem but which i am not able to find out..thanks…

  • on my above tutorial there might be some slightly mistake in SPACES or something i am not able to find out but it shows error…so i have another way to remove that error…

    1) please make sure you have installed both plugins BUDDYPRESS PROFILE AS HOMEPAGE & BUDDPRESS COMMUNITY ACTIVITY ON HOMEPAGE (THIS SECOND WILL ADD ALL ACTIVITY TAB)

    2)now in your backend yoururl/wp-admin/ in plugin list you will see bp profile as your homepage below that two option deactivate & edit ( if it is activate)

    3)click edit and replace wp_redirect( $bp->loggedin_user->domain );

    with

    wp_redirect( bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . ‘/’ . BPCOM_ACTIVITY_SLUG );

    4) if you are finding any error then do one trial and error with this line

    wp_redirect( bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . ‘/’ . BP_FRIENDS_SLUG );

    This will show friends activity on profile page…and it works well every time i have tested…

    5) now, only replace last BP_FRIENDS_SLUG with BPCOM_ACTIVITY_SLUG

    This is 100 % work…

    if it is showing error then send me mail on jigesh.raval@gmail.com i will solve your problem.

    Thank you.

  • Pingback: 12 New All-Purpose BuddyPress Plugins For Customizing Your Social Network

  • Just installed the updated version for BP 1.5, and the URL for the Profile > Activity > All Activity tab is:
    example.com/members/admin/activate/all-activity/

    But when I click on it, it redirects me to:
    example.com/members/admin/activate/all-activity/

    Also, this should place “All Activity” under My Name > Activity in the Buddy Bar, but it doesn’t.

  • Thanks for this great plugin.. I’m trying to translate the “All activity” menu item using codestyling plugin, but it doesn’t work.. there is however a notice that says:
    Loading Issue: Author is using load_textdomain instead of load_plugin_textdomain function. This may break behavior of WordPress, because some filters and actions won’t be executed anymore. Please contact the Author about that.

  • This looks like a great plugin thanks! I’m just having one problem. After activating and going to my profile it shows the tab “Testing Activity” instead of “All activity”. I don’t see anywhere in the admin to change the tab name….

  • HI,
    Maybe a bit off-topic, but does anybody have an idea how can I deactivate the site-wide activity completely?
    For me this very option makes little to no sense, I need (as the vast majority of social networks out there small or big) to have users only see the updates posted by their friends.

    I have hours and hours of googling & forums searching behind me, still I did not find a solution to this yet!

    If anyone here has an idea how to deactivate that site-wide activity stream would be sooooo great!

    Thanks!

  • Hi,

    how could I insert a post form editor to the all-activity tab? I think, it would be useful, if users could write instantly.

  • Hi Brajesh,

    I have installed this plugin on my site but the tab created under the activity is named Testing Activity but i want to change the tab’s name into All Activity. Please let me know……..

    Thanks in advance
    Jatinder

  • Can confirm the alternative method by Jigesh Raval works well for me. Thanks

  • Anyone know how to add a submit form on other users pages so people can leave a public message on their profile – similar to how it is done on Facebook?

    Thanks

  • Is there a way to have the “all activity” show as the default screen on a user’s profile, rather than them having to click the link?

  • My apologies, everything is working as it should, privacy is being respected.

  • Thank you for the comment Tim. I am glad it is working :)

  • Where can I find the code that has to be changed, please?

  • Customization:-
    In case you want to show the post form on the All activity page, please open your theme

  • Hi Brajesh

    Nice plugin. Its working fine for me. But after integrating the plugin and the php code you have suggested to place on functions.php, only the all activity is coming. When i click on personal activity, its redirecting to teh same All community activity.

    Kindly help me in solving the issue. I need by default it will redirect the user to teh site wide activity when the user logs in and when the user will click on personal activity, it will show him the logged in user’s personal activity

    Thanks
    Waiting for a reply

  • Hi, One of the nice plugin.. But i want to know which parameters should be added if i want to filter some types of activities like new user registration or if i want to show groups updates which are limited to only my joined (subscribed) groups… How to and where to add that parameter.. Please just give me a one line code and exact location where to add it if you can give me..

Leave a Reply

Are you looking for support?

Please join BuddyDev Premium Club to get timely support. At the moment, We are unable to provide much support in comments. By Joining BuddyDev Premium Club, you will get guaranteed support(and we have 30 days money back guarantee too).

Your email address will not be published. All the fields marked as * are required.


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>