Usage:

This shortcode will automatically retrieve a registered gravatar from www.gravatar.com and display it.

If a user is not logged in or hasn’t registered her/his gravatar, the default avatar specified in your WordPress settings is displayed instead.

This shortcode does NOT support conditional branching with [ELSE_avatar].
Shortcode nesting is NOT supported.

Parameters:

email An alternate email address can be specified.
Default: The logged in user’s email address will be used.
Required: no.
size The desired height and width for the displayed avatar. The default size is defined in the “Plugin Options” panel.
Default: none/set in Plugin Options.
Required: no.
suppress_empty Specifies whether to display a placebo avatar when the user hasn’t registered an image at gravatar.com
Default: none.
Required: no.

Example:

[mbr_avatar]
[mbr_avatar size=96]
[mbr_avatar email='john.smith@example.com' size=96]
[mbr_avatar suppress_empty='yes']

API:

To use this shortcode in your own PHP code, please use as follows:

echo mbr_avatar();
echo mbr_avatar( array( 'size'=>96 ) );
echo mbr_avatar( array( 'email'=>'john.smith@example.com', 'size'=>96 ) );
mbr_avatar( array( 'suppress_empty'=>'yes') );