Skip to content

Commit

Permalink
ENHANCEMENT: Added gravatar configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonbanderson committed Mar 6, 2013
1 parent 67f04d6 commit 26d304a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/en/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ The module provides a number of built in configuration settings below are the de
'require_moderation' => false,
'html_allowed' => false, // allow for sanitized HTML in comments
'html_allowed_elements' => array('a', 'img', 'i', 'b'),
'use_preview' => false, // preview formatted comment (when allowing HTML)
'use_preview' => false, // preview formatted comment (when allowing HTML),
'use_gravatar' => false,
'gravatar_size' => 80
);

If you want to customize any of the configuration options after you have added the extension (or
Expand Down Expand Up @@ -48,3 +50,13 @@ The easiest way to do this is through [Composer](http://getcomposer.org).
**Important**: Rendering user-provided HTML on your website always risks
exposing your users to cross-site scripting (XSS) attacks, if the HTML
isn't properly sanitized. Don't allow tags like `<script>` or arbitrary attributes.

## Gravatars

Gravatars can be turned on by adding this to your mysite/_config.php file

Commenting::set_config_value('SiteTree', 'use_gravatar', true);

The default size is 80 pixels, as per the gravatar site if the 's' parameter is omitted. To change this add the following (again to mysite/_config.php):

Commenting::set_config_value('SiteTree', 'gravatar_size', 40);

0 comments on commit 26d304a

Please sign in to comment.