Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • whatleycc
    Participant

    @whatleycc

    I don’t know if this is the “correct” way to do it but what I did is created a new function file (say avatar_fix.php) and I placed it in the mu-plugins folder so it will be active for all sites.

    Then I put inside the avatar_fix.php file the following code with the appropriate <?php and ?> open and close tags (sorry can’t seem to put those into the code tags as it keeps on blanking my code out:
    `
    function avatar_setup() {
    //define(‘BP_AVATAR_UPLOAD_PATH’, ‘/martialarts/wp-content/uploads’);
    define(‘BP_AVATAR_URL’, get_bloginfo(‘url’) . ‘/wp-content/uploads’);
    }

    add_action(‘init’,’avatar_setup’);
    `

    The reason the issue was happening for me (and I suspect you as well) is that when it went off the main site, the url it was getting for the image was incorrect (was losing the “wp-content/uploads” portion). You may need to adjust the url part if that is not where you’re storing the avatar images.

Viewing 1 replies (of 1 total)
Skip to toolbar