Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to change Sitewide Activity on activity page in BP 1.7b1

  • @bphelp

    Participant

    I would like the message to say something more appropriate to my site and also have a message that echoes the users name above the status box. WP 3.5.1 and BP 1.7b1 Thank you!

Viewing 12 replies - 1 through 12 (of 12 total)
  • @bphelp

    Participant

    Just to clarify what I meant was change the text “Sitewide Activity” above the activity page post box and also just below that have a function that would echo the users name. Example “Whats new John” John being being the current users name. Thank you!

    @thesingleparentperspective

    Participant

    Is there an answer to this question?

    I would also like to change the heading text “Sitewide Activity” on the activity page.

    @flaviamelo

    Participant

    I also like to change the text “sitewide activity”. Is it possible?

    @8rizzi

    Participant

    Here is how you change the “Sitewide Activity” text.

    buddypress/bp-activity/bp-activity-screens.php – Line 384

    Below is what Line 384 looks like. Just replace the ‘Sitewide Activity’ text with whatever you want it to say.

    ‘post_title’ => __( ‘Sitewide Activity’, ‘buddypress’ ),

    @flaviamelo

    Participant

    Thanks a lot @8rizzi!!

    @simpleone

    Participant

    @8rizzi’s solution worked for me on a site running BP 1.9.1. However, I cannot get that same solution to work on a site running BP 2.0.1.

    In BP 2.0.1, line 384 now reads as: 'post_title' => bp_get_directory_title( 'activity' ),

    So that line 384 is obviously different than it used to be.

    Does anyone have a revised method for BP 2.0.1 that will allow me to change the “Sitewide Activity” text?

    @flaviamelo

    Participant

    @SimpleOne I have the same problem. Does anyone could help us to change the text “sitewide activity” on the BP Version 2.0.1?

    @simpleone

    Participant

    I really need to find a solution for the Activty text change ASAP.

    I’m willing to pay $$ to the first person who can provide a working solution for BP 2.0.1 this week!

    @shanebp

    Moderator

    @sagarjadhav

    Participant

    Try following line of code. Add it in functions.php in your theme.

    add_filter( 'bp_get_directory_title', 'change_activity_title' );
    
    function change_activity_title($data) {
    	if( $data == 'Sitewide Activity' ) {
    		$data = 'Name';
    	}
    
    	return $data;
    }

    Let me know whether it is works or not.

    @simpleone

    Participant

    @sagarjadhav that worked perfectly. Thanks!!!

    @flaviamelo

    Participant

    It’s work perfectly for me too! Thanks so much @sagarjadhav!!!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How to change Sitewide Activity on activity page in BP 1.7b1’ is closed to new replies.
Skip to toolbar