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

Phar
Copy the  file into your MediaWiki directory and add the following to your :

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

That's it, it works now. All dependencies are included in the  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   to


 * 1) Edit  :

Dependencies
Requires the Services_Libravatar package from PEAR.