Extension:Libravatar

= Libravatar MediaWiki extension =

Provides a  tag for MediaWiki which displays the avatar image for a given email address, using the Libravatar service. It is federated and falls back to Gravatar if no Libravatar is found.

Examples
Simple avatar:



Avatar with special size:



Image title:



Verbose notation:

foo@example.org

Supported attributes

 * email
 * Email address to show avatar of. Required.


 * size
 * Size in pixels (avatars are quadratic)


 * default
 * Default icon type when no avatar has been found. Options: 404, mm, identicon, monsterid, wavatar, retro


 * algorithm
 * Email hashing algorithm. md5 or sha256


 * title
 * Title attribute value for the image tag


 * style
 * Style attribute value for the image tag

Global configuration variables

 * $wgLibravatarSize
 * $wgLibravatarDefault
 * $wgLibravatarAlgorithm

Phar
Copy the mediawiki-libravatar-0.1.0.phar file into your MediaWiki extensions/</tt> directory and add the following to your LocalSettings.php</tt>:

require_once "$IP/extensions/mediawiki-libravatar-0.1.0.phar";

That's it, it works now. All dependencies are included in the .phar</tt> file.

If you get a white page, then you're probably running Suhosin.

Normal installation
require_once "$IP/extensions/Libravatar/Libravatar.php";
 * 1) Run $ pear install Services_Libravatar-alpha
 * 2) Copy this extension's Libravatar.php</tt> to $mediawiki/extensions/Libravatar/Libravatar.php</tt>


 * 1) Edit LocalSettings.php</tt>:

Dependencies
Requires the Services_Libravatar package from PEAR.