BuddyDev

Search

[Resolved] BuddyPress Activity as Wire & community theme wording

  • Participant
    Level: Initiated
    Posts: 6
    Laz on #12433

    BuddyPress Activity as Wire

    when on another user’s “wall” Community Builder theme replaces this :

    Write something to “user”?

    with

    What’s new, “user”?

    How can I keep the original Write something to “user”? from the plugin?

    Thanks,

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #12439

    Hi Laz,
    You are correct about it. In the activity as wire, we are filtering on “What’s new, %s?” and checking that the text domain is ‘buddypress’. It will not work with Community Builder as the textdomain is ‘community-builder’.

    I will update activity as wire to remove checking for the textdomain. For now, you may change thi line

    https://github.com/sbrajesh/bp-activity-as-wire/blob/master/bp-activity-as-wire.php#L58

    from

    
    if ( $text == "What's new, %s?" && $domain == 'buddypress' && ! bp_is_my_profile() && bp_is_user() ) {
    	$translated_text = sprintf( __( "Write something to %s?", 'buddypress' ), bp_get_displayed_user_fullname() );
    }
    
    

    to

    
    if ( $text == "What's new, %s?" && ! bp_is_my_profile() && bp_is_user() ) {
    	$translated_text = sprintf( __( "Write something to %s?", 'buddypress' ), bp_get_displayed_user_fullname() );
    }
    
    

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 6
    Laz on #12469

    thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #12484

    You are welcome.

    Brajesh

The topic ‘ [Resolved] BuddyPress Activity as Wire & community theme wording’ is closed to new replies.

This topic is: resolved