Page 1 of 1

Small images for each user

Posted: 20 Oct 2017, 19:56
by ajtruckle
On the sample MantisBT tracker from your home page, the users have small pictures of them.

How is this done?

Re: Small images for each user

Posted: 21 Oct 2017, 04:43
by atrol
Check settings $g_show_avatar and $g_show_avatar_threshold
https://www.mantisbt.org/docs/master/en ... ig.display

Re: Small images for each user

Posted: 21 Oct 2017, 07:05
by ajtruckle
Thanks. Will look.

Can these been set through interface?

Re: Small images for each user

Posted: 21 Oct 2017, 07:48
by ajtruckle
I can't work it out. I have the Avatar plugin installed anyway. But I can't see how to set this through IDE and no examples of possible values in docs.

Re: Small images for each user

Posted: 21 Oct 2017, 07:52
by ajtruckle
I found this:

http://www.mantisbt.org/forums/viewtopi ... tar#p61701

So now I have:

Code: Select all

# === Avatars
$g_show_avatar = ON;
$g_show_avatar_threshold = REPORTER;
So how do I set the avatar images?

Re: Small images for each user

Posted: 21 Oct 2017, 08:03
by atrol
Like told in the documentation, the plugin supports Gravatar https://en.gravatar.com

Re: Small images for each user

Posted: 21 Oct 2017, 08:08
by ajtruckle
I am sorry but as a user that doesn’t mean much to me. I just looked and am bombarded by a whole website. One assumes a simple option to choose a image per user via their profile.

I will try to understand what I must do by looking more at their site.

Re: Small images for each user

Posted: 21 Oct 2017, 08:33
by ajtruckle
Confused. I linked my wordpress account.

I added a image.

I added my mantis email address.

Still no image in mantisbt.

Re: Small images for each user

Posted: 21 Oct 2017, 09:53
by atrol
Do you get no image or an image like the one at https://www.mantisbt.org/bugs/view.php?id=22456#c55883 ?

Re: Small images for each user

Posted: 21 Oct 2017, 11:40
by ajtruckle
It was my fault. I did not realise I could set a image per email address. I thought it was a group of email addresses for one image.

All good now. :)

That said, was there a interface option for these? I have to edit the config file manually to add them. Could I have done it visually?

Re: Small images for each user

Posted: 22 Oct 2017, 07:54
by atrol
ajtruckle wrote:Could I have done it visually?
Yes, by using the generic page for options: Manage > Manage Configuration > Configuration Report
There is a section "Create Configuration Option"

Re: Small images for each user

Posted: 22 Oct 2017, 08:33
by ajtruckle
I see. But, this doesn't seem to let me see what all the current options are?

Since we know I have input two new options I can't see them actually listed for modification. Or am I using the interface wrong?

Re: Small images for each user

Posted: 22 Oct 2017, 08:46
by atrol
The UI does not list any options from config_inc.php (file), it lists just the options set by any of the configuration pages that store their settings in database.
Mantis checks first for the setting in database, after that in config_inc.php and finally in config_defaults_inc.php.

Re: Small images for each user

Posted: 22 Oct 2017, 09:17
by ajtruckle
Oh, I see.