View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0020642 | mantisbt | administration | public | 2016-02-28 05:49 | 2016-06-12 00:42 |
Reporter | dregad | Assigned To | vboctor | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 1.3.0-rc.2 | ||||
Target Version | 1.3.0-rc.2 | Fixed in Version | 1.3.0-rc.2 | ||
Summary | 0020642: Avatar settings should be moved to plugin config page | ||||
Description | It does not make sense to keep Avatar settings in config_defaults page, especially plugin-specific ones such as
This should be handled by the plugin(s) Even the main $g_show_avatar should be removed: plugin installed = avatars enabled, no plugin = OFF | ||||
Tags | avatar | ||||
There are two configuration options involved:
I personally would like to functionally get rid of both. Not just move them around. If we are to keep them, then I wonder if we should just keep them in core (since they would apply to multiple providers). Core knows about the concept of avatars and whether they are enabled or not, plugins just serve them when asked. |
|
If we keep show_avatar, then we will only understand OFF and ON (or any value that is not OFF). Hence, we would be removing all gravatar specific values from documentation and ignoring them. |
|
In my incomplete implementation, I had a "base" Avatar plugin (abstract class), upon which all other avatar plugins are based. With this approach, we can ensure consistency between specific plugins since the Base plugin can take care of common options. And the show_avatar on/off is taken care of by whether a plugin is installed. |
|
$g_show_avatar_threshold However, other thing to discuss is if it's really useful. |
|
MantisBT: master 7c332266 2016-03-09 19:06 Committer: dregad Details Diff |
Move gravatar specific settings out of core config Remove gravatar specific configs from config_defaults_inc.php Fixes 0020642 |
Affected Issues 0020642 |
|
mod - config_defaults_inc.php | Diff File | ||
mod - docbook/Admin_Guide/en-US/config/display.xml | Diff File | ||
mod - plugins/Gravatar/Gravatar.php | Diff File |