Thank you so much, Mercime! I’ve got most of it all installed with the exception of a few hiccups.
I had a difficult time with the avatars even before this modification. I’m getting this error code
‘/home/integral/public_html/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 479’
When I go into bp-core-avatars.php on line 479 I see this as the definition:
‘function bp_core_fetch_avatar_filter( $avatar, $user, $size, $default, $alt ) {
// If passed an object, assume $user->user_id
if ( is_object( $user ) )
$id = $user->user_id;
// If passed a number, assume it was a $user_id
else if ( is_numeric( $user ) )
$id = $user;
// If passed a string and that string returns a user, get the $id
else if ( is_string( $user ) && ( $user_by_email = get_user_by_email( $user ) ) )
$id = $user_by_email->ID;
// If somehow $id hasn’t been assigned, return the result of get_avatar
if ( empty( $id ) )
return !empty( $avatar ) ? $avatar : $default;
// Let BuddyPress handle the fetching of the avatar
$bp_avatar = bp_core_fetch_avatar( array( ‘item_id’ => $id, ‘width’ => $size, ‘height’ => $size, ‘alt’ => $alt ) );
// If BuddyPress found an avatar, use it. If not, use the result of get_avatar
return ( !$bp_avatar ) ? $avatar : $bp_avatar;
}’
I’ve tried installing a bp-custom.php file within the plugin directory so that it would not be deleted when updating Buddypress but it produces an error everywhere on the site.
Here is what I tried to add as the bp-custom.php file for reference:
‘define( ‘BP_AVATAR_UPLOAD_PATH’, ‘/var/www/wp-content/blogs.dir/1/files’ );
define( ‘BP_AVATAR_URL’, ‘hxxp://integralbeings.com/files’ );’
As I look at the code, I’m wondering if this is because there is no hxxp://integralbeings.com/files directory. Do I need to add this or is the path incorrect? Also, I’ve not seen hxxp before, is this a typo?
Thanks for the support on this, it’s rather minor in the grand scheme of things, but I’m wondering if it will become a bigger problem as the community grows.
Cheers,
-Brant