Avatar picture on new issue

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
smartdirk
Posts: 3
Joined: 27 Sep 2012, 12:54

Avatar picture on new issue

Post by smartdirk »

Hi,

If someone creates a new issue, I don't see any avatar picture on this issue.
But when the same person creates a note on this or another issue, his/here picture is visible.

So, Is it possible to show the picture of the reporter ?
If not, is it possible to change some php to do so ?

Tx for any answer
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Avatar picture on new issue

Post by atrol »

There is no customization option for it.
If you use version 1.2.11 you can add the following line after line 335 (should be print_user_with_subject( $tpl_bug->reporter_id, $tpl_bug_id );)
of bug_view_inc.php

Code: Select all

print_avatar ( $tpl_bug->reporter_id );
Please use Search before posting and read the Manual
smartdirk
Posts: 3
Joined: 27 Sep 2012, 12:54

Re: Avatar picture on new issue

Post by smartdirk »

Working !!!!!!!!!
Thanks.

:P
newmantisuser
Posts: 68
Joined: 06 Aug 2012, 18:13

Re: Avatar picture on new issue

Post by newmantisuser »

Atrol is awesome!!

I love this. It works.

Great job Atrol.

Any other places where we can include gravatar integration????
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Avatar picture on new issue

Post by atrol »

newmantisuser wrote: Any other places where we can include gravatar integration????
Seems you like looking at pictures ;-)
What about having them also at the "My Account" page, right beside the display "Logged in as", in "View Issues" page, in "Issue History", ....
Please use Search before posting and read the Manual
smartdirk
Posts: 3
Joined: 27 Sep 2012, 12:54

Re: Avatar picture on new issue

Post by smartdirk »

Atol,

I would be nice to have this pictures on the things you mention here.
Could you give us some sources what to change and where to change...

love that...

Dirk
newmantisuser
Posts: 68
Joined: 06 Aug 2012, 18:13

Re: Avatar picture on new issue

Post by newmantisuser »

Yes please. The more places where we can integrate Gravatar the better.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Avatar picture on new issue

Post by atrol »

newmantisuser wrote:The more places where we can integrate Gravatar the better.
I don't think that having them at every place where possible is a good idea.

One more place where I agree is the "Assigned To" field which can be changed nearly the same way in bug_view_inc.php
Search for print_user_with_subject( $tpl_bug->handler_id, $tpl_bug_id ); and add the following line

Code: Select all

print_avatar ( $tpl_bug->handler_id );
If you want the avatars smaller you can add instead

Code: Select all

print_avatar ( $tpl_bug->handler_id, 40 );
Please use Search before posting and read the Manual
gabrielmcs
Posts: 1
Joined: 06 Apr 2014, 22:57

Re: Avatar picture on new issue

Post by gabrielmcs »

Manti's Friends

I don't understand how to show my gravatar account in MantisBT 1.2.17.
My avatar appers only a monsterid, not my pic stored in gravatar account.
That's my config:

Files = config_inc.php and config_defaults_inc.php

$g_show_avatar = ON;
$g_show_avatar_threshold = ANYBODY;
$g_default_avatar = "%path%images/no_avatar.png";


My account in Gravatar is the same email and password configured in MantisBT

Which more steps must I configure in MANTIS to show my pic?

Tks
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Avatar picture on new issue

Post by atrol »

gabrielmcs wrote:[
Files = config_inc.php and config_defaults_inc.php
Never ever change config_deafuklts_inc.php as you might get problems when updating. All configuration is done in config_inc.php and database.
gabrielmcs wrote: $g_default_avatar = "%path%images/no_avatar.png";[/b]
This option is obsolete and not used in MantisBT 1.2.17

I was not able to reproduce your problem with a fresh install of MantisBT 1.2.17

You should provide detailed, step-by-step instructions to reproduce the issue. Additional information listed below may also be useful:

- Exact version of MantisBT, PHP, Database, Web server and Operating System
- Relevant customizations (e.g. changes in config_inc.php, etc)
- Installed plugins or custom functions ?
- Was the MantisBT source code modified in any way ?
Please use Search before posting and read the Manual
rgg
Posts: 9
Joined: 23 Sep 2014, 10:13

Re: Avatar picture on new issue

Post by rgg »

gabrielmcs wrote: $g_default_avatar = "%path%images/no_avatar.png";
atrol wrote: This option is obsolete and not used in MantisBT 1.2.17
How we can define default path to no avatar users?

thanks! :wink:
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Avatar picture on new issue

Post by atrol »

rgg wrote: How we can define default path to no avatar users?
Check setting $g_show_avatar at http://www.mantisbt.org/docs/master-1.2 ... IG.DISPLAY
Please use Search before posting and read the Manual
Post Reply