-
Author
-
December 11, 2015 at 02:19 #92544parousiaParticipant
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!
December 11, 2015 at 18:06 #92665RaduModeratorHi,
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 solutionJanuary 8, 2016 at 00:15 #97114parousiaParticipantHi,
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.January 8, 2016 at 16:05 #97255RaduModeratorHi,
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 solutionJanuary 8, 2016 at 23:54 #97414parousiaParticipantHi,
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.
February 2, 2017 at 07:28 #151680HappiierParticipantHello 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,
BlazeSOLUTION 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 );
}February 3, 2017 at 17:31 #151883RaduModeratorYou can try to add the code in wp-content/themes/kleo-child/functions.php
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.