Page 1 of 1
Avatar picture on new issue
Posted: 27 Sep 2012, 12:59
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
Re: Avatar picture on new issue
Posted: 27 Sep 2012, 20:22
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 );
Re: Avatar picture on new issue
Posted: 28 Sep 2012, 12:04
by smartdirk
Working !!!!!!!!!
Thanks.

Re: Avatar picture on new issue
Posted: 28 Sep 2012, 18:02
by newmantisuser
Atrol is awesome!!
I love this. It works.
Great job Atrol.
Any other places where we can include gravatar integration????
Re: Avatar picture on new issue
Posted: 28 Sep 2012, 22:36
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", ....
Re: Avatar picture on new issue
Posted: 01 Oct 2012, 12:26
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
Re: Avatar picture on new issue
Posted: 01 Oct 2012, 16:38
by newmantisuser
Yes please. The more places where we can integrate Gravatar the better.
Re: Avatar picture on new issue
Posted: 01 Oct 2012, 20:11
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 );
Re: Avatar picture on new issue
Posted: 14 Apr 2014, 12:30
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
Re: Avatar picture on new issue
Posted: 14 Apr 2014, 22:24
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 ?
Re: Avatar picture on new issue
Posted: 23 Sep 2014, 13:01
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!

Re: Avatar picture on new issue
Posted: 23 Sep 2014, 13:45
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