Show Top Commentators with Gravatar, a Wordpress plugin

As I was developping La Lune Mauve, a webzine which I use Wordpress as a CMS for, I needed a plugin which would display top commentators *and* their gravatars in my sidebar. Big surprise, it seems no plugin like this does actually exist.

Description

That’s why I modded the plugin originally written by Nate Sanden in order to display the Gravatar of the top commentators next to their nickname.

Download

Download the Show Top Commentators with Gravatars plugin (ZIP ~ 2,45kb)

Tested with Wordpress 2.7.

Installation

Please refer to Nate’s website for install instructions.

Styling the gravatar with CSS

Want to add some styling to the Gravatars of your top commentators? That’s easy. I inserted a span class='gravatar' tag in which the gravatar will be displayed.

In your CSS, simply define the appropriate class, such as:

span.gravatar {
float:left;
padding:2px 10px 2px 2px;
}

And you’re done! 8)

I also added a span class='nb-comments' tag to the number of comments that show at the right of each nickname, so that you can easily style these as well, like in the below example:

Preview of what the plugin looks like

Support

I’ll gladly give support, even though I’m not a professional developper. Let’s cross fingers Nate does include the gravatars in the next version of the plugin.

Français

Comme je suis en train de développer La Lune Mauve, un webzine pour lequel j’utilise Wordpress comme CMS, j’avais besoin d’un plugin qui afficherait les top commentateurs *et* leur gravatar dans ma sidebar. A ma grande surprise, il semble qu’il n’existe aucun plugin qui le permette.

Description

C’est pourquoi j’ai modifié le plugin écrit par Nate Sanden pour afficher le gravatar des top commentateurs à côté de leur pseudo.

Téléchargement

Télécharger le plugin Show Top Commentators with Gravatars (ZIP ~ 2,45kb)

Testé avec Wordpress 2.7.

Installation

Veuillez vous référer au site de Nate pour les instructions d’installations.

Donner du style au gravatar avec CSS

Vous voulez ajouter un peu de style aux gravatars de vos top commentateurs? Rien de plus facile. J’ai inséré une balise span class='gravatar' qui contient chaque gravatar.

Dans votre CSS, définissez simplement la class en question, comme ceci:

span.gravatar {
float:left;
padding:2px 10px 2px 2px;
}

Et voilà! 8)

J’ai également ajouté une balise span class='nb-comments' au nombre des commentaires qui s’affiche à la droite de chaque pseudo, pour que vous puissiez facilement en modifier l’affichage, comme dans l’exemple ci-dessous:

Preview of what the plugin looks like

Support

J’assure le support de cette version modifiée, même si je ne suis pas développeuse professionnelle. Espérons que Nate inclura les gravatars dans la prochaine version de son plugin.

Changelog

  • 2009/01/09: deleted the path to default Gravatar so that you can freely add yours (or not)
  • 2009/01/08: initial release

Add a comment