Jump to content

Gravatar Size too small (80x80)


GoGators

Recommended Posts

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

Link to comment
Share on other sites

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
			) );

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...