Page 1 of 1

Gravatars in 2.2.0

Posted: 16 Mar 2017, 12:25
by bruno.riddy
I have Mantis 2.2.0 installed and I want to make use of the Gravatar integration. I have Gravatar installed on the manage plugins page. I have made a gravatar with the same email address as the Mantis user, however no avatar appears.

I have tried adding " $g_show_avatar = YES" to my config file but that breaks the site, so I presume that is now deprecated?

Are there any other steps I should have gone through to enable gravatars?

Re: Gravatars in 2.2.0

Posted: 16 Mar 2017, 12:56
by atrol
You have to set

Code: Select all

$g_show_avatar = ON;
Furthermore you might also want to see avatars for all users instead of seeing just developers, managers and administrators.
If so, ser also

Code: Select all

$g_show_avatar_threshold = REPORTER;

Re: Gravatars in 2.2.0

Posted: 16 Mar 2017, 13:04
by bruno.riddy
Sorry, I miswrote in my post.

I add $g_show_avatar = ON; to my \config\config_inc.php file and the site breaks - HTTP 500 error

Re: Gravatars in 2.2.0

Posted: 16 Mar 2017, 16:15
by bruno.riddy
I fixed the problem - for anybody else's benefit:

I moved the

Code: Select all

$g_show_avatar = ON;
to be higher up the config page.

It was underneath my line to include custom css

Code: Select all

$g_css_include_file = "/css/custom.css";
and for some reason that broke everything.