Hi,
I wanted to include avatars from company official avatars used in exchange, so i set to get avatars from Gravatar and modified the code in class.avatar.php near line 231 to this :
function getUrl($size=null) {
$size = $this->size ?: 80;
// $url = '//www.gravatar.com/avatar/';
// $url .= md5( strtolower( $this->email ) );
// $url .= "?s=$size&d={$this->d}";
//
$url = 'https://MY_EXCHANGE_SERVER/ews/exchange.asmx/s/GetUserPhoto?email=';
$url .=$this->email;
$url .="&size=HR240x240";
return $url;
}
I know it's a hack but if you have ideas to do it better ?
The problem is when there s no photo on Exchange - EWS the avatar is not replaced with mistery icon