Gravatars in 2.2.0

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
bruno.riddy
Posts: 11
Joined: 14 Mar 2017, 18:05

Gravatars in 2.2.0

Post 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?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Gravatars in 2.2.0

Post 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;
Please use Search before posting and read the Manual
bruno.riddy
Posts: 11
Joined: 14 Mar 2017, 18:05

Re: Gravatars in 2.2.0

Post 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
bruno.riddy
Posts: 11
Joined: 14 Mar 2017, 18:05

Re: Gravatars in 2.2.0

Post 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.
Post Reply