GravWall is a tiny application I wrote that queries a Wordpress database for unique comment authors and randomly displays their gravatars as a wall. If a link exists for the user, then the gravatar will link back to the user’s site. Neat, aye?
On sites with lots of comments, such as Squible, the application looks pretty neat. Thanks to Matt Maber for suggesting the cloud idea to me and for testing it out.
There’s plenty that you can do with it. For instance, with a couple of small changes you could use it to display X number of random gravatars on your home page. The possibilities are endless in the teens.
The configuration options are as follows.
Display the gravatars as a cloud (more comments = larger gravatar). Leave it at zero for no cloud, change it to 1 to get a cloud.
$cloud=0;
If you display gravatars in cloud mode, choose your cloud options with the next three variables:
$smallest=20; // Smallest gravatars
$ratio=.5; // Change in ratio
$maxsize=80; // Largest gravatars
Default size for gravatars:
$defaultsize=40;
When there’s no gravatar, display this image:
$default=”http://www.yoursite.com/path/to/default.gif”;
You can download it here. Install it in your root Wordpress directory (i.e. the same directory that contains wp-config.php). Have fun.
Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
No Comments so far
TrackBack URILeave a comment