Small images for each user

General discussion of Mantis.

Moderators: Contributor, Developer

Small images for each user

Postby ajtruckle » Oct 20, 2017 2:56 pm

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

How is this done?
ajtruckle
 
Posts: 46
Joined: Oct 16, 2011 2:21 am

Re: Small images for each user

Postby atrol » Oct 20, 2017 11:43 pm

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
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6716
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Small images for each user

Postby ajtruckle » Oct 21, 2017 2:05 am

Thanks. Will look.

Can these been set through interface?
ajtruckle
 
Posts: 46
Joined: Oct 16, 2011 2:21 am

Re: Small images for each user

Postby ajtruckle » Oct 21, 2017 2:48 am

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: 46
Joined: Oct 16, 2011 2:21 am

Re: Small images for each user

Postby ajtruckle » Oct 21, 2017 2:52 am

I found this:

viewtopic.php?f=3&t=24523&p=61701&hilit=g_show_avatar#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?
ajtruckle
 
Posts: 46
Joined: Oct 16, 2011 2:21 am

Re: Small images for each user

Postby atrol » Oct 21, 2017 3:03 am

Like told in the documentation, the plugin supports Gravatar https://en.gravatar.com
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6716
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Small images for each user

Postby ajtruckle » Oct 21, 2017 3:08 am

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: 46
Joined: Oct 16, 2011 2:21 am

Re: Small images for each user

Postby ajtruckle » Oct 21, 2017 3:33 am

Confused. I linked my wordpress account.

I added a image.

I added my mantis email address.

Still no image in mantisbt.
ajtruckle
 
Posts: 46
Joined: Oct 16, 2011 2:21 am

Re: Small images for each user

Postby atrol » Oct 21, 2017 4:53 am

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
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6716
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Small images for each user

Postby ajtruckle » Oct 21, 2017 6:40 am

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?
ajtruckle
 
Posts: 46
Joined: Oct 16, 2011 2:21 am

Re: Small images for each user

Postby atrol » Oct 22, 2017 2:54 am

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
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6716
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Small images for each user

Postby ajtruckle » Oct 22, 2017 3:33 am

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?
ajtruckle
 
Posts: 46
Joined: Oct 16, 2011 2:21 am

Re: Small images for each user

Postby atrol » Oct 22, 2017 3:46 am

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
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6716
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Small images for each user

Postby ajtruckle » Oct 22, 2017 4:17 am

Oh, I see.
ajtruckle
 
Posts: 46
Joined: Oct 16, 2011 2:21 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 7 guests