Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • eVersatile
    Participant

    @eversatile

    I have found the solution within /wp-content/plugins/bbpress/includes/extend/buddypress/groups.php


    eVersatile
    Participant

    @eversatile

    The solution is

    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'Forums' ) {
    	$translated_text = 'Chapters';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    Thank you for your help


    eVersatile
    Participant

    @eversatile

    That line didn’t work either.
    I’ve tried on a clean install also, I receive the same results.
    I’m wondering if there must be some other function since it’s buddypress integrating with bbpress.


    eVersatile
    Participant

    @eversatile

    Good idea. I tried but receive the same results.


    eVersatile
    Participant

    @eversatile

    Ah nevermind. apparently it was “my-groups” duh lol. I don’t know why it wouldn’t show up as a slug though.
    Could you possibly help me one another issue?
    Within the groups I have changed all of the navigation menu using;

    function jm_move_group_activity_tab() {
      global $bp;
      if (isset($bp->groups->current_group->slug) && $bp->groups->current_group->slug == $bp->current_item) {
        $bp->bp_options_nav[$bp->groups->current_group->slug]['forum']['name'] = 'new name';
        $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['name'] = 'new name';
        $bp->bp_options_nav[$bp->groups->current_group->slug]['members']['name'] = 'new name';
        $bp->bp_options_nav[$bp->groups->current_group->slug]['admin']['name'] = 'new name';
        $bp->bp_options_nav[$bp->groups->current_group->slug]['send-invites']['name'] = 'new name';
      }
    }
    add_action('bp_init', 'jm_move_group_activity_tab');

    Though, I am unable to get the “forum” slug to change. I have tried many other options though nothing seems to work. Do you know if there may be another script for just that?


    eVersatile
    Participant

    @eversatile

    Very good, I have used that code though it is not working in this situation. Kind of why I ran into a wall.

    The sub nav for groups > memberships is empty.
    For example: the slug for groups is /members/users/groups/ and the sub nav “memberships” slug is /members/users/groups/ so what would I put into the second slug? I’ve tried “/” and just leaving it empty but that doesn’t work.
    and $bp->bp_nav[‘groups’][‘name’] = ‘new name’; will not work either since it’s a sub nav.


    eVersatile
    Participant

    @eversatile

    @henrywright
    Thank you for your reply, though I am not quite understanding.
    You linked forum mentions to insert the “define” commands into the wp-config.php file. It does ot mention where exactly to insert the settings. I played around with it though nothing happened.
    bp_core_remove_nav_item() would go where? Do I add it as a general function?

Viewing 7 replies - 1 through 7 (of 7 total)
Skip to toolbar