Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • shemakeswebsites
    Participant

    @shemakeswebsites

    Fixed! The guys over at Buddydev was a great help.

    I put the following code in my “bp-custom.php” file:

    add_filter( ‘bp_email_use_wp_mail’, ‘__return_true’ );


    shemakeswebsites
    Participant

    @shemakeswebsites

    HI Varun,

    Thank you for your response but it didn’t work. 🙁

    This is what I tried to use:

    /**
     * Translates specific strings in BuddyPress to new values.
     * This function hooks into the 'gettext' filter provided by WordPress, allowing for the modification
     * of text before it is displayed or used on the site. It specifically targets text within the 'buddypress' domain,
     * making it suitable for customizing or translating BuddyPress strings without altering language files.
     *
     * @param string $translated_text The text after being translated.
     * @param string $text The text before being translated.
     * @param string $domain The domain of the text being translated. This function specifically targets 'buddypress'.
     * @return string The modified or translated text.
     */
    add_filter( 'gettext', 'wbcom_translate_buddypress_strings', 20, 3 );
    
    function wbcom_translate_buddypress_strings( $translated_text, $text, $domain ) {
        // Target only BuddyPress strings to avoid affecting other texts.
        if ( 'buddypress' === $domain ) {
            switch ( $translated_text ) {
                // Example: Translate "Friends" to "Connections".
                case 'Groups':
                    $translated_text = 'Packs';
                    break;
    
                // Add more strings to translate as needed, following the pattern above.
            }
        }
    
        return $translated_text;
    }

    shemakeswebsites
    Participant

    @shemakeswebsites

    Thank you for the suggestion. I really dislike working with language files and was hoping to find a php snippet for quick fix.

    Any help would be appreciated.


    shemakeswebsites
    Participant

    @shemakeswebsites

    Thank you! I didn’t even know that this was a thing. My site is fixed!


    shemakeswebsites
    Participant

    @shemakeswebsites

    Sorry, please disregard. It works, not sure what caused the issue with disabling the feature earlier, but all is well.


    shemakeswebsites
    Participant

    @shemakeswebsites

    Oh my goodness – I don’t know how I missed that. I was jumping between browsers and I guess I was looking at a dashboard with “Groups” disabled.

    All is well, I found it. Thank you for leading me out the dark. 😉


    shemakeswebsites
    Participant

    @shemakeswebsites

    Just trying to see if anyone has any input on how I would go about addressing this issue. 🙂


    shemakeswebsites
    Participant

    @shemakeswebsites

    WOW! That was easy and very handy too. Thank you so much.

    If you have any interest I have another post about the groups end page – I’d love your input on that. 😉


    shemakeswebsites
    Participant

    @shemakeswebsites

    Hi Varun, thank you for your response. But I’m not really sure how to do that without affecting the page that currently uses the “groups” slug. Is there a way to change the page end point from groups to regional-groups? I wasn’t able to locate any setting for this.

    I have a site that currently uses: http://www.website.com/groups

    When I enable Buddypress groups, the content of this page is overwritten with the Buddypress groups content. I cannot change the content from my current groups page to another page as I have a lot of printed material that references that particular page. So I am hoping there is a way to have the Buddypress groups content appear on another page (www.website.com/regional-groups).


    shemakeswebsites
    Participant

    @shemakeswebsites

    Update! I found a snippet to change the slug…but that doesn’t fix the problem.

    function ts_change_groups_slug(){
    	global $bp;
    	$bp->groups->root_slug = 'teams';
    	return $bp->groups->root_slug;
    }
    add_filter( 'bp_get_groups_slug', 'ts_change_groups_slug' );
    add_filter( 'bp_get_groups_root_slug', 'ts_change_groups_slug' );

    How do I change the default “groups” page to another page of my choice? Thank you.


    shemakeswebsites
    Participant

    @shemakeswebsites

    Oops! I meant to post it there. Thank you for catching my oversight. 🙂


    shemakeswebsites
    Participant

    @shemakeswebsites

    Thank you for your response.

    So to clarify, if you use BuddyPress on a basic theme, then the dropdown toggle does not show and ALL active tabs appear in the menu?


    shemakeswebsites
    Participant

    @shemakeswebsites


    shemakeswebsites
    Participant

    @shemakeswebsites

    I forgot to add an image to better explain my post.

    BuddyPress profile tabs

    After the tab listed “Articles” there is only one more tab, which is the tab for “Media”. How can I force this tab to be visible instead of being nested in the drop-down. I basically just want to get rid of the drop-down altogether. Thank you.


    shemakeswebsites
    Participant

    @shemakeswebsites

    I found the solution. I tested the script I had tried before…but this time it worked. If anyone else is interested, see the script at the end of this post:

    https://buddypress.org/support/topic/username-vs-display-name/

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