Small images for each user

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
ajtruckle
Posts: 69
Joined: 16 Oct 2011, 07:21

Small images for each user

Post by ajtruckle »

On the sample MantisBT tracker from your home page, the users have small pictures of them.

How is this done?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Small images for each user

Post by atrol »

Check settings $g_show_avatar and $g_show_avatar_threshold
https://www.mantisbt.org/docs/master/en ... ig.display
Please use Search before posting and read the Manual
ajtruckle
Posts: 69
Joined: 16 Oct 2011, 07:21

Re: Small images for each user

Post by ajtruckle »

Thanks. Will look.

Can these been set through interface?
ajtruckle
Posts: 69
Joined: 16 Oct 2011, 07:21

Re: Small images for each user

Post 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.
ajtruckle
Posts: 69
Joined: 16 Oct 2011, 07:21

Re: Small images for each user

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

Re: Small images for each user

Post by atrol »

Like told in the documentation, the plugin supports Gravatar https://en.gravatar.com
Please use Search before posting and read the Manual
ajtruckle
Posts: 69
Joined: 16 Oct 2011, 07:21

Re: Small images for each user

Post 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.
ajtruckle
Posts: 69
Joined: 16 Oct 2011, 07:21

Re: Small images for each user

Post by ajtruckle »

Confused. I linked my wordpress account.

I added a image.

I added my mantis email address.

Still no image in mantisbt.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Small images for each user

Post by atrol »

Do you get no image or an image like the one at https://www.mantisbt.org/bugs/view.php?id=22456#c55883 ?
Please use Search before posting and read the Manual
ajtruckle
Posts: 69
Joined: 16 Oct 2011, 07:21

Re: Small images for each user

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

Re: Small images for each user

Post 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"
Please use Search before posting and read the Manual
ajtruckle
Posts: 69
Joined: 16 Oct 2011, 07:21

Re: Small images for each user

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

Re: Small images for each user

Post 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.
Please use Search before posting and read the Manual
ajtruckle
Posts: 69
Joined: 16 Oct 2011, 07:21

Re: Small images for each user

Post by ajtruckle »

Oh, I see.
Post Reply