The fm:Gravatar creates a gravatar (Globally Recognized Avatar) for either a user-id or email address.
<fm:Gravatar email="you@example.org" />
Name | Required | Default | Description |
---|---|---|---|
default | Optional | The url to a default image, if the user did not have a gravatar. Alternatively you could try "identicon" or "monster". | |
Optional | Specify an email address to generate the gravatar for. Either this or uid is required. | ||
size | Optional | 100 | The width and height of the generated gravatar. |
uid | Optional | Specify a user id to generate the gravatar for. Either this or email is required. |
Either uid or email MUST be specified for this to work.
This example grabs the gravatar for user 12345, which will be displayed as a 40x40px image. If the image couldn't be found we show the 'identicon' version instead.
<fm:Gravatar uid="12345" size="40" default="identicon" />