Buddypress Facebook Connect – Avatar problem.
-
When logged in with Facebook connect, I’m getting this error message.
Warning: constant() [function.constant]: Couldn’t find constant BP_AVATAR_THUMB_HEIGHT in /home/stefnitert/domains/regionofinterest.com/public_html/wp-content/plugins/bp-fbconnect/bp-fbconnect.php on line 83
On this page: http://regionofinterest.com/members/stefnitert2/The avatar is also displayed to big in the recent active member avatars widget.
This is the code on line 83 of /bp-fbconnect.php.
function bp_fbconnect_replace_avatar( $img, $args ) {
extract( $args );if ( $object != ‘user’ )
return $img;if ( !$fbuid = fbc_get_fbuid( $item_id ) )
return $img;$user = new stdClass;
$user->user_id = $item_id;if ( !$height ) {
if ( ‘thumb’ == $type )
$height = constant( ‘BP_AVATAR_THUMB_HEIGHT’ );
else
$height = constant( ‘BP_AVATAR_FULL_HEIGHT’ );
}if ( ‘thumb’ == $type || $height < 50 )
$size = ‘square’;
else
$size = ‘normal’;return fbc_get_avatar( $img, $user, $height, $size, false );
}Anybody have an idea how to solve this?
Thanks!
- The topic ‘Buddypress Facebook Connect – Avatar problem.’ is closed to new replies.