ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Add an option for a custom default gravatar (Feature #212)


Added by Yuki Sonoda at 2011-02-20 08:09 am. Updated at 2011-02-21 01:09 am.


Status:Open Start date:2011-02-20
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:User interface
Target version:-
Remote issue URL:http://www.redmine.org/issues/7664 Affected version:

Description

Now redmine administrator can choose the default gravatar for users which has no gravatar. But I would like them to use my own default gravatar.

The attached patch allows plugins to add an option for the default gravatar. https://github.com/yugui/redmine_fox_gravatar is an example plugin that uses this feature.


adding-gravatar-options.patch (3.5 kB) Yuki Sonoda, 2011-02-20 08:09 am

adding-gravatar-options2.patch (3.3 kB) Yuki Sonoda, 2011-02-20 08:23 am

add-gravatars-like-themes.patch (7.7 kB) Yuki Sonoda, 2011-02-21 01:09 am


History

Updated by Yuki Sonoda at 2011-02-20 08:23 am

Oops, I attached a wrong patch. Please use adding-gravater-options2.patch.

  • File adding-gravatar-options2.patch added

Updated by Felix Schäfer at 2011-02-20 02:15 pm

The Gravatar plugin already has the capability to show an alternate default, there is no UI for it though. I'd like to keep the complexity of that part as low as possible, and I feel having to install a plugin is overdoing it. Would it be enough to add an option to specify a URL as default in addition to the built-in ones? We could also extend that part later to have a selector showing all images in public/gravatars/ for example.

Updated by Yuki Sonoda at 2011-02-20 03:35 pm

public/gravatars/ like themes? It sounds better than plugin. I'm going to write a patch for the idea. Thank you!

Updated by Felix Schäfer at 2011-02-20 05:00 pm

I've changed the title to reflect the feature request :-)

  • Subject changed from [PATCH] Allowing plugins to add an option for the default gravatar to Add an option for a custom default gravatar

Updated by Yuki Sonoda at 2011-02-21 01:09 am

I wrote the attached patch which scans public/gravatars/ and adds the found files to options for the default gravatar, just like themes.

  • File add-gravatars-like-themes.patch added

Also available in: Atom PDF