I am running an older version of CB for which I have following hack:
In cb.core.php (~line 2480) add two lines (see comment):
[code:1]function _avatarLivePath( &$field, &$user, $thumbnail = true, $show_avatar = 2 ) {
[...]
$oValue = null;
if ( ( $avatar != '' ) && ( $avatarapproved > 0 ) ) {
if ( strpos( $avatar, 'gallery/' ) === false ) {
$oValue = 'images/comprofiler/' . $tn . $avatar;
} else {
$oValue = 'images/comprofiler/' . $avatar;
}
if ( ! is_file( $absolute_path . '/' . $oValue ) ) {
$oValue = null;
}
}
if ( ( $oValue === null ) && ( $show_avatar == 2 ) ) {
if ( $avatarapproved == 0 ) {
$icon = 'pending_n.png';
} else {
$icon = 'nophoto_n.png';
// slabbi's gravatar hack
$grav_url = "
www.gravatar.com/avatar/".md5
(strtolower(trim($user->email)))."?d=monsterid&s=61";
return $grav_url;
}
return selectTemplate() . 'images/avatar/' . $tn . $icon;
}
}
[/code:1]