1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

GravWall

gravwall.jpg 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.

One Comment

  1. Vanna White
    Posted June 18, 2008 at 6:12 am | Permalink

    Hey!…Thanks for the nice read, keep up the interesting posts..what a nice Wednesday . Vanna White

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
business, gravwall, cod5 kill ratio hack, thoughtmechanics, thought mechamics, cloud