This topic has 7 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #92544
     parousia
    Participant

    Hi,

    I dont know if this is a theme issue but when using multi site avatars arent shown across all the sites. Is there a way to fix this?

    Thanks!

    #92665
     Radu
    Moderator

    Hi,

    Please provide a live page url where we can see your described behaviour or some screenshots that shows the problem.

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #97114
     parousia
    Participant

    Hi,

    Sorry for late reply, I’ve attached screenshots, as you can see the avatar isn’t shared across the network.

    Any help greatly appreciated!

    Attachments:
    You must be logged in to view attached files.
    #97117
     parousia
    Participant
    #97255
     Radu
    Moderator

    Hi,

    Try to apply this solution https://premium.wpmudev.org/forums/topic/multisite-buddypress-and-avatars#post-375218

    Let me know if it works

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #97414
     parousia
    Participant

    Hi,

    Thanks so much that fixed it! I’ve tried variations of that code already that hadn’t worked for some reason on that worked fine.

    #151680
     Happiier
    Participant

    Hello Radu and Team,

    Problem: I have this issue with multisite using multi network buddypress (buddydev). Everything works great except avatar doesn’t link to root blog, therefore the avatar doesn’t translate to all subdomains.

    Solution: The code below is a solution BUT when I add a bp_custom.php in the plugins folder with the code below nothing happens. I tested this code by adding it to the buddypress functions root and it works great- but it breaks other components.

    Question: Where can I put this code so it is recognized and works accordingly?

    With Gratitude,
    Blaze

    SOLUTION FROM BUDDYDEV:

    /**
    * To solve avatar issues
    */
    function bpdev_fix_avatar_dir_path( $path ){
    if ( is_multisite() && BP_ENABLE_MULTIBLOG )
    $path = ABSPATH . ‘wp-content/uploads/’;
    return $path;
    }
    add_filter( ‘bp_core_avatar_upload_path’, ‘bpdev_fix_avatar_dir_path’, 1 );
    //fix the upload dir url
    function bpdev_fix_avatar_dir_url( $url ){
    if ( is_multisite() )
    $url = network_home_url(‘/wp-content/uploads’) ;
    return $url;
    }
    add_filter( ‘bp_core_avatar_url’, ‘bpdev_fix_avatar_dir_url’, 1 );
    }

    #151883
     Radu
    Moderator

    You can try to add the code in wp-content/themes/kleo-child/functions.php

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?