If you're that set on changing it, you don't need to go through all references in the code. Just edit admin/sources/base/core.php buildProfilePhoto() to return the avatar instead of the photo.
Based on this suggestion I made the following changes to the core.php file for my 3.1.2 install. The idea being that if the user has an Avatar image set, but not a Photo then it will use the avatar image. If neither is set it should use the default image. I haven't fully tested it yet, but it seems to be working on the profile pages, but not in the 'Member' list.
at line 8053 in /sources/base/core.php. Change:
$member['pp_main_photo'] = ipsRegistry::$settings['img_url'] . '/profile/default_large.png';to
if($member['avatar']) {
$dom = new DOMDocument();
$dom->loadHTML($member['avatar']);
$avatar_path = $dom->getElementsByTagName('img')->item(0)->getAttribute('src');
$member['pp_main_photo'] = $avatar_path;
}
else
{
$member['pp_main_photo'] = ipsRegistry::$settings['img_url'] . '/profile/default_large.png';
}



Find content
Male

Posted by
Posted by 