Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

  • Avatar of bp-help
    bp-help
    Participant

    @bphelp

    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)
  • Avatar of bp-help
    bp-help
    Participant

    @bphelp

    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!

    Avatar of thesingleparentperspective
    thesingleparentperspective
    Participant

    @thesingleparentperspective

    Is there an answer to this question?

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

    Avatar of flaviamelo
    flaviamelo
    Participant

    @flaviamelo

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

    Avatar of 8rizzi
    8rizzi
    Participant

    @8rizzi

    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’ ),

    Avatar of flaviamelo
    flaviamelo
    Participant

    @flaviamelo

    Thanks a lot @8rizzi!!

    Avatar of SimpleOne
    SimpleOne
    Participant

    @simpleone

    @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?

    Avatar of flaviamelo
    flaviamelo
    Participant

    @flaviamelo

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

    Avatar of SimpleOne
    SimpleOne
    Participant

    @simpleone

    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!

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Avatar of sagarjadhav
    sagarjadhav
    Participant

    @sagarjadhav

    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.

    Avatar of SimpleOne
    SimpleOne
    Participant

    @simpleone

    @sagarjadhav that worked perfectly. Thanks!!!

    Avatar of flaviamelo
    flaviamelo
    Participant

    @flaviamelo

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

Viewing 12 replies - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.