The gravatar module allows you to easily interact with gravatar.com to display user icons.
The default configuration file is located in MODPATH/gravatar/config/gravatar.php
. You should copy this file to APPPATH/config/gravatar.php
and make changes there, in keeping with the cascading filesystem.
Below is a list of the configuration options:
Take a look at the documentation on the Gravatar site for more information.
// Display the icon for test@example.com
echo Gravatar::instance('test@example.com');
// You can also use render
Gravatar::instance('test@example.com')->render();
Using Gravatar::instance
will keep the Gravatar objects around so you won't have duplicate objects for the same email.
If you see features that are missing or you want to help make this module better, the code is hosted on github. Fork and hack away!
Developed by Dave Widmer