show avatar in mantis 1.1.8

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
djcamus
Posts: 6
Joined: 09 Dec 2010, 17:06

show avatar in mantis 1.1.8

Post by djcamus »

hello, as I can show the avatars in version 1.1.8, I have this configuration:

$ G_show_avatar = ON;
$ G_default_avatar = 'C: / bugtracker / images / no_avatar.png';
$ G_show_avatar_threshold = REPORTER

and I'm also registered with Gravatar, but the avatars do not appear. Help me!
atrol
Site Admin
Posts: 8553
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: show avatar in mantis 1.1.8

Post by atrol »

try this

Code: Select all

$g_show_avatar = ON;
$g_show_avatar_threshold = REPORTER;
$g_default_avatar = "%path%images/no_avatar.png";
Please use Search before posting and read the Manual
djcamus
Posts: 6
Joined: 09 Dec 2010, 17:06

Re: show avatar in mantis 1.1.8

Post by djcamus »

thanks
this option had already tried, I have installed mantis on windows 2003 server. these are all the options I tested:

$g_default_avatar = 'C:/bugtracker/images/no_avatar.png';
$g_default_avatar = '/bugtracker/images/no_avatar.png';
$g_default_avatar = ‘/bugtracker/images/no_avatar.png’;
$g_default_avatar = "%path%images/no_avatar.png";


but no work for me.
atrol
Site Admin
Posts: 8553
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: show avatar in mantis 1.1.8

Post by atrol »

I tried my settings with the following test installation which works fine
http://www.mantisbt.org/forums/viewtopi ... =5&t=16188
Check on your server if you get any problems
Please use Search before posting and read the Manual
M@rce
Posts: 99
Joined: 05 May 2011, 20:46
Location: Montevideo - Uruguay

Re: show avatar in mantis 1.1.8

Post by M@rce »

Hi,
On what files are this settings?
Thanaks.
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
atrol
Site Admin
Posts: 8553
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: show avatar in mantis 1.1.8

Post by atrol »

config_inc.php
Please use Search before posting and read the Manual
M@rce
Posts: 99
Joined: 05 May 2011, 20:46
Location: Montevideo - Uruguay

Re: show avatar in mantis 1.1.8

Post by M@rce »

Thanks Atrol, i will try to configure that in my installation..
Regards.
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
M@rce
Posts: 99
Joined: 05 May 2011, 20:46
Location: Montevideo - Uruguay

Re: show avatar in mantis 1.1.8

Post by M@rce »

Showing images from local enviroment is possible? or only from site gravatar.com?
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
atrol
Site Admin
Posts: 8553
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: show avatar in mantis 1.1.8

Post by atrol »

Local storage of avatars is not available with standard delivery of MantisBT but a known feature request.
There are patches available
http://www.mantisbt.org/bugs/view.php?id=8257
Please use Search before posting and read the Manual
M@rce
Posts: 99
Joined: 05 May 2011, 20:46
Location: Montevideo - Uruguay

Re: show avatar in mantis 1.1.8

Post by M@rce »

Why in file_api.php, i don't have file_avatar_upload function?
How run a cleanup?
The "mantis_avatar_simple_patch.patch" file, works on 1.2.5 version?

Thanks.
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
atrol
Site Admin
Posts: 8553
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: show avatar in mantis 1.1.8

Post by atrol »

I don't use this patch in my installations, so I can't give you any more information.
Please use Search before posting and read the Manual
M@rce
Posts: 99
Joined: 05 May 2011, 20:46
Location: Montevideo - Uruguay

Re: show avatar in mantis 1.1.8

Post by M@rce »

If anybody have a idea to apply this functionality in 1.2.5 version, please tell us.
Thanks to all.
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
Post Reply