GoGators Posted February 6, 2016 Posted February 6, 2016 Using the Custom CSS, I increased the avatar/profile picture size to 125px. It worked nicely, but I noticed the Gravatar's are now fuzzy. After investigating the issue, it appears the Gravatar's are being requested using the default size of 80x80, so of course, they are going to be blurred. So I visited the Gravatar website and found this information for developers http://en.gravatar.com/site/implement/images/ Is it possible you could add this setting to the Admin panel, so we could adjust the size of the requested Gravatar. If not, could please you tell me what file controls the Gravatar requests, so I can perhaps modify it myself. Thank you in advance
Mark Posted February 7, 2016 Posted February 7, 2016 system/Member/Member.php The photoUrl() method. Change this: $url = \IPS\Http\Url::external( "https://secure.gravatar.com/avatar/" . md5( trim( mb_strtolower( $memberData['pp_gravatar'] ?: $memberData['email'] ) ) ) )->setQueryString( array( 'd' => (string) $defaultUrl ) ); To: $url = \IPS\Http\Url::external( "https://secure.gravatar.com/avatar/" . md5( trim( mb_strtolower( $memberData['pp_gravatar'] ?: $memberData['email'] ) ) ) )->setQueryString( array( 'd' => (string) $defaultUrl, 's' => 125 ) );
Recommended Posts
Archived
This topic is now archived and is closed to further replies.