MyBB Community Forums

Full Version: [HOWTO]SSL Gravatar Avatar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey Guys,

I know this is really simple but i thought i would post it just incase, if you have done it any other way please let me know.

If you want to make the Gravatar Avatars SSL you need to edit usercp.php in the forum ROOT directory.

Then,

On line 2161: "avatar" => "http://www.gravatar.com/avatar/{$email}{$s}.jpg"

Change this too: "avatar" => "https://www.gravatar.com/avatar/{$email}{$s}.jpg"

Also in admin/modules/user/users.php :

On line 647: "avatar" => "http://www.gravatar.com/avatar/{$email}{$s}"

Change this too: "avatar" => "https://www.gravatar.com/avatar/{$email}{$s}"


P.S: I think this may have to be done before people set there avatar as it may be stored in the DB, i will investigate this further.


This will then make the avatars get requested using https keeping that green padlock on your ssl secure sites Big Grin

Regards
AsynC
I don't see why this shouldn't be changed in the core.
IIRC is wasn't that easy.
Post Updated