A gravatar, or globally recognized avatar, is quite simply an avatar image that follows you from weblog to weblog (or wiki) appearing beside your name when you comment on gravatar enabled sites. Avatars help identify your posts on web forums, so why not on weblogs and wikis?
Signing up for a gravatar.com account is FREE, and all that's required is your email address. Once you've signed up you can upload your avatar image and soon after you'll start seeing it on gravatar enabled weblogs and wikis!
| Vendor | MindTouch |
| Type | Script |
| Categories | Misc |
| Requires | MindTouch Core 8.05.2 or later |
| Status | Stable |
| License | Free/Open Source |
| Manifest | http://scripts.mindtouch.com/gravatar.xml |
Install Script
Table of Contents
This extension allows embedding of Gravatar images.
See also How to add a script, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.
Embed a Gravatar image.
Parameters:
| Name | Type | Description |
| emailhash | str | (optional) Plain email address, or hash of email address. (default: current user email) |
| size | num | (optional) Image size. (default: 80) |
| rating | str | (optional) Image rating. (one of "g", "pg", "r", or "x"; default: "g") |
| default | str | (optional) Default image. (one of "identicon", "wavatar", "monsterid", or custom image uri; default: gravatar logo) |
<extension>
<title>Gravatar Extension</title>
<label>Gravatar</label>
<copyright>Copyright (c) 2006-2009 MindTouch Inc.</copyright>
<description>This extension allows embedding of Gravatar images.</description>
<uri.help>http://developer.mindtouch.com/App_Catalog/Gravatar</uri.help>
<uri.logo>http://scripts.mindtouch.com/logos/gravatar-logo.png</uri.logo>
<requires host="MindTouch Core 8.05.2" />
<function>
<name>gravatar</name>
<description>Embed a Gravatar image.</description>
<param name="emailhash" type="str" optional="true">Plain email address, or hash of email address. (default: current user email)</param>
<param name="size" type="num" optional="true">Image size. (default: 80)</param>
<param name="rating" type="str" optional="true">Image rating. (one of "g", "pg", "r", or "x"; default: "g")</param>
<param name="default" type="str" optional="true">Default image. (one of "identicon", "wavatar", "monsterid", or custom image uri; default: gravatar logo)</param>
<return>
<html xmlns:eval="http://mindtouch.com/2007/dekiscript">
<body>
<eval:block value="var hash = $emailhash ?? user.emailhash">
<img eval:src="uri.appendquery(uri.appendpath('http://www.gravatar.com/avatar', string.contains(hash, '@') ? string.hash(hash) : hash), { s: $size, r: $rating, d: $default })" />
</eval:block>
</body>
</html>
</return>
</function>
</extension>
| Output | ||
|
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |