Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 6, 20169 yr 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
February 7, 20169 yr 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 ) );
Archived
This topic is now archived and is closed to further replies.