EE Gravatar

Developer

Philip Zaengle

3rd Party (Free)

33 downloads (last 90 days)


EE Version Support

  • ExpressionEngine 1.x
  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

The EE Gravatar Plugin allows you to easily insert a "globally recognized avatar" image from Gravatar (http://www.gravatar.com/).

This plugin requires at a bare minimum one of two possible parameters depending on where you wish to use it. The first option is a user’s email address {email} and the second option is a user’s screen name “{name}”. The reason for this is so the plugin can be used in situations where one or the other parameter won’t return the proper result. It is recommended that you use {email} for comment and entry loops and {name} for display in member profile templates, but feel free to experiment. Here’s the two minimum required uses:

<img src=”{exp:gravatar email=”{email}”}” /> —For use in comment or entry loops.

<img src=”{exp:gravatar name=”{name}”}” /> —For use in templates such as Member Profiles where {email} won’t work as expected.

Parameters

default=“http://www.somesite.com/someimage.jpg”
Defines a default avatar if there isn’t one associated with the email address or if it exceeds the rating.

rating=”[G | PG | R | X]”
Allows you to limit gravatars to the appropriate rating. Anything exceeding the rating will use the default (if supplied) or not display.

size=”[1..80]”
Allows you to define how big the gravatar will be in pixels. Any size other than 80 will cause the original gravatar image to be downsampled using bicubic resampling before output.

Possible examples

Here’s a few examples that you might use:

<img src="{exp:gravatar email="{email}" rating="PG"}" />

Only displays gravatars of PG rating or lower.

<img src="{exp:gravatar email="{email}" rating="R" size='40'}" />

Displays 40x40 pixel gravatars of R rating or lower.

<img src="{exp:gravatar email="{email}" size="70" 
   default="http://www.somesite.com/someimage.jpg"}" 
alt="Picture of {name}" title="{name}" class="avatar" />

Displays gravatars of 70x70 pixels or a default graphic for users without a gravatar. Puts the user’s name in the alt and title tags and styles the image using a class called “avatar.”

<div class='profileTitle'><img src="{exp:gravatar name="{name}" 
size="80" rating="R"}" style="float: left; margin: 0; 
padding: 6px;" alt="{name} pic" title="{name}" />{name}</div>
<p>{lang:member_group}&nbsp; <b>5</b></p>

The above is a snippet of code from my Public Member Profile template showing how to insert a gravatar into the member listings for your site.

Credit

Current Developer: Philip Zaengle http://www.philipzaengle.com
Original Developer: Les Jenkins of http://stupidevilbastard.com/

Download EE Gravatar

EE Support Downloads Add-On Version Release Date
Not Specified Download 2.1 Mar 9, 2010
Not Specified Download 2.1 Mar 9, 2010

EE Gravatar Links

This entry was created October 1, 2008, 4:32 pm.
This entry was last updated January 14, 2013, 3:24 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!