Zen-Dreams

Zen-Dreams.com

Plugin Wordpress : Top commenteurs avec Gravatar

Aujourd’hui, je suis tombé sur  un article parlant de MyBlogLog et globalement, ils expliquent pourquoi ne pas utiliser le système et je n’ai pu que reconnaitre les mêmes raisons que celles qui ont fait que je n’utilise plus ce système.

A vrai dire, c’est une perte d’espace phénoménal et peu complètement briser votre design. De plus, les gens qui passent sur votre blog, et qui sont donc affichés, ne sont pas forcément des gens qui participent.

Dans ce même article, l’auteur suggère la création d’un plugin permettant d’afficher le top des commenteurs, ou les derniers (au choix) en affichant leurs gravatar plutot que simplement leur nom.

Donc voila le plugin, il a eu l’idée et je l’ai fait :)

Voici la liste des fonctionnalités :

  • Affiche soit les derniers commentateurs, soit le top
  • Affiche le nom des utilisateurs (ou pas, au choix)
  • Affiche un lien vers le site de l’utilisateur (ou pas, au choix)
  • Gravatar par défaut
  • Taille du Gravatar

Télécharger ZdCommentsWidget

Une fois le plugin activé, il vous suffit d’ajouter le widget dans votre barre latéralle et de le paramétrer pour qu’il se comporte comme vous le voulez. Ensuite, il ne vous reste plus qu’a modifier votre CSS pour que l’affichage vous convienne.

Ce plugin n’est pas encore disponible sur Wordpress extend, mais il le sera ce soir ou demain afin que vous puissiez profiter des mises à jour automatiques :)

Quant à la documentation, cela viendra aussi dans la foulée.

Par Anthony

41 Commentaires

  1. Ecrit le 6 août 2008 à 18:49 | Permalien

    Plugin looks good. Nice to see someone act upon my idea so quickly.

  2. Ecrit le 6 août 2008 à 21:42 | Permalien

    Well,

    To me, coding is not the most difficult part, but getting the idea is !

    If you have other ideas, don’t hesitate to share them ;)

  3. Ecrit le 7 août 2008 à 20:06 | Permalien

    hi. Thanks for plugin

    perfect.

    Regards

  4. Ecrit le 8 août 2008 à 21:35 | Permalien

    Great idea!

    I installed and activated the plugin, but how to make it work? I am with Wordpress 2.6 and do not see any plugin options page where I could adjust it.

    Can you please provide more info on the activation process?

    Regards from Bulgaria!

  5. Ecrit le 8 août 2008 à 21:42 | Permalien

    Hold on, I got it. There is a special new widget addon, which appeared in the widget section. But because the name was a bit similar to another widget (Get Recent Comments), I got confused.

    Now it works great! :-)

  6. Ecrit le 8 août 2008 à 22:03 | Permalien

    After Brian´s Latest Comments seized working from WP 2.5 upwards, I been looking for a plugin that does the same and some but couldn´t find one. Perhaps you find the idea as useful as I do. The plugin should output the latest comments in the form:

    Postname1
    commentername, commentername, commentername,…
    X comments

    Postname2
    and so on

    I find this threaded view much more transparent and not the less more interesting for readers. You can identify the most talked about posts with one look.

  7. Ecrit le 9 août 2008 à 5:32 | Permalien

    anyway to install without widgets.

  8. Ecrit le 9 août 2008 à 6:35 | Permalien

    in my template,i haven’t widget,then how to use it?how to quote to my pages?

  9. Ecrit le 11 août 2008 à 10:01 | Permalien

    To activate the widget without widgetised sidebar, just include something like this :
    < ?php $ZdComWidget->widget(); ?>
    But be ware that you won’t be able to change options as they are only setup in the widget control panel.

  10. Ecrit le 11 août 2008 à 16:00 | Permalien

    Great plugin!
    Anthony, if i want display not Default gravatar, but avatar, that was generated by WP_Texticon plugin - what i must edit in your plugin?

  11. Ecrit le 12 août 2008 à 18:04 | Permalien

    TRanslated to portuguese: Download

  12. Ecrit le 12 août 2008 à 20:48 | Permalien

    broadly speaking, i search for plugin, that can show area with ONLY gravatars, like your Flickr widget, but with avatars. Each avatar link to author’s site or page with comment. This feature will be very cool…

  13. Ecrit le 12 août 2008 à 21:12 | Permalien

    Brainsolid, if you deactivate the option that display usernames, this plugin will do what you want ;)

    Just style your css classes.

  14. Ecrit le 12 août 2008 à 21:18 | Permalien

    But how i can show not default avatar, but avatars, generated by WP_Texticon?

  15. Ecrit le 13 août 2008 à 9:23 | Permalien

    Brainsolid,

    I’ll have to look at a solution for that because I don’t know how it is supposed to work between WP_Texticon and gravatar

  16. Ecrit le 14 août 2008 à 18:20 | Permalien

    @Anthony thanks for your help :-)

  17. Ecrit le 14 août 2008 à 19:32 | Permalien

    Anthony, thank you very much!

  18. Aegiale
    Ecrit le 22 août 2008 à 13:39 | Permalien

    C’est moi qui l’ai mal configuré, ou le plugin n’affiche pas le lien vers l’article commenté pour chacun des commentateurs pris en compte ?

  19. Aegiale
    Ecrit le 22 août 2008 à 13:44 | Permalien

    Grumpf, désolée, j’ai posté trop vite; si j’ai bien compris, quand on choisit d’afficher les derniers commentateurs, le plugin n’affiche que ça : le nom des commentateurs, pas le post qui a été commenté.

  20. Ecrit le 22 août 2008 à 17:34 | Permalien

    Aegiale,

    Effectivement, le but du plugin est de mettre en avant les lecteurs et pas les posts sur lesquels ils ont répondus. Je ferais surement une option pour mettre le post plutot que la personne.

  21. Ecrit le 29 août 2008 à 2:58 | Permalien

    some advice:
    1,exclude option should be added, if you dont want someone showed on the list, like the blog owner himself.
    2,set a time limit to the top commenter, like: the top commenter of this week/ this month.

    3,very thankful to your great plugin.
    I like it..

    ^_^

  22. Ecrit le 29 août 2008 à 9:31 | Permalien

    Xiaomo,

    Blog owner is automatically excluded. In fact any authentified user is excluded. I agree that it should be an option.

  23. Ovidiu
    Ecrit le 2 septembre 2008 à 22:19 | Permalien

    I’d love to use this plugin on wpmu not simple wordpress but the wordpress multi user edition. Here it doesn’t make sense to exclude registered/logged in users at all.
    Also I guess the gravatar size is in px, right? What is expected inside the default gravatar field? an absolute path or an url?
    Could this plugin not follow the settings of the wordpress isntallation meaning if that blog is setup to display either gravatar otherwise monsterid can’t this plugin also do that?

    Another nice option would be to add a link to the post the user commented on, something like *avatar* - *commentername* - on *postname*

  24. Ecrit le 3 septembre 2008 à 10:47 | Permalien

    Ovidiu, Yes gravatar size is in pixels (I would advise to use 25 or 32).

    In next release there will be an option not to exclude registered users.

    Regarding monsterid, I have to look how to use this function.

  25. Ecrit le 10 septembre 2008 à 4:42 | Permalien

    Thank you very much for this plugin, this is exactly what I was looking for!

  26. Ecrit le 10 septembre 2008 à 4:58 | Permalien

    Actually, just a small thing (people always ask for more, don’t they!): is there a CSS to modify the look of the widget? For example, margins between the link and the gravatar.

    Thanks!

  27. Ecrit le 10 septembre 2008 à 9:46 | Permalien

    Zhu,

    You can customize the layout via the class used by the widget which is called : zd_CommentsWidget_widget

    This would mean something like this : .zd_CommentsWidget_widget ul { your style for the global list }
    .zd_CommentsWidget_widget ul li { your style for each item in the list }

  28. Ecrit le 22 septembre 2008 à 19:56 | Permalien

    Anthony great plugin, thanks!

    I have 1 question: How to make it to show only gravatars without text (commentator name). I want Gravatars to show 5 per line and 5 in the column. Is something - http://img229.imageshack.us/img229/7213/gravatarsfy9.gif

  29. Ecrit le 22 septembre 2008 à 20:01 | Permalien

    Mishef,

    To do that, you have to uncheck the option Display Names.
    To have multiple columns,rows, you have to tweak your CSS so that they are corretly aligned (have a look at ul li { float:left })

  30. Ecrit le 27 septembre 2008 à 21:07 | Permalien

    Great plugin :D thx

  31. Ecrit le 3 octobre 2008 à 19:37 | Permalien

    Sweet mod I was considering adding it to my blogs and it seems I should have! Do you think most the comments here today are because you have this mod?

    This was a serious question because if it’s so I will 100% install this mod.

  32. Ecrit le 3 octobre 2008 à 20:51 | Permalien

    Brian,

    I do not have the plugin installed on my wordpress, so most comments on this post are because of the plugin, but not on my blog.

  33. Ecrit le 3 octobre 2008 à 23:30 | Permalien

    ok so the mod you have is the regular Gravatar mod?

  34. Ecrit le 4 octobre 2008 à 9:43 | Permalien

    bbrian, the plugin i made is a widget with gravatars, which is not included by default. I do not use it, and yes, the comments are using the regular gravatar system from WP 2.6

  35. Ecrit le 6 octobre 2008 à 17:35 | Permalien

    Alright I’m starting to catch on! I think I want the top commenters that allows the gravatar also!

    Why don’t you use your own plugin here?

  36. Ecrit le 6 octobre 2008 à 22:11 | Permalien

    bbrian07, only a design matter :) I don’t want to put too much information on my sidebar.

  37. nasgorkam
    Ecrit le 15 octobre 2008 à 19:23 | Permalien

    I can’t thank you enough for the plugins, its work like magic :)

    CMIIW but the styling that works for me is
    #comments-widget ul {}
    #comments-widget ul li {}

    :D

  38. Ecrit le 16 octobre 2008 à 18:30 | Permalien

    Ditto on what the commenter above me said. To get it to appear in columns X rows (don’t display names), the CSS that worked for me is:

    #comments-widget ul {
    list-style-image:none;
    list-style-position:outside;
    list-style-type:none;
    }

    #comments-widget ul li {
    float:left;
    list-style-image:none !important;
    list-style-position:outside !important;
    list-style-type:none !important;
    margin:2px !important;
    }

    Hope that helps newbies (coz I’m one). :)

  39. Dustin
    Ecrit le 22 octobre 2008 à 9:16 | Permalien

    Hello,
    I was wondering if this could be altered to pull authors/blog contributors and display them in the same way.
    I would like to sort them by the person who most recently posted.

    I can pay for a plugin such as this.

    Thank you.
    Dustin

  40. Ecrit le 12 novembre 2008 à 5:59 | Permalien

    How do you make it reset after a certain # of days?

  41. Ecrit le 12 novembre 2008 à 9:22 | Permalien

    Jayson, this is an alltime top, so you can’t define an expiration on a # of days.

13 Rétrolien

  1. [...] And here’s the plugin: Gravatar Top Commenters. [...]

  2. [...] между уиджета на MyBlogLog и плъгина за WordPress Gravatar Top Commenters е, че за разлика от MyBlogLog, който не носи особена [...]

  3. [...] Gravatar Recent Comments [...]

  4. Par WordPress插件集锦 8/8 | 韶华白首 le 9 août 2008 à 10:12

    [...] Gravatar Recent Comments [...]

  5. [...] Plugin: Gravatar Top Commenters URL Original: Gravatar Top Commenters Autor: Anthony [...]

  6. [...] Gravatar Recent Comments [...]

  7. [...] 10. Gravatar Recent Comments [...]

  8. [...] Gravatar Recent Comments [...]

  9. [...] 插件说明 | 插件下载地址 [...]

  10. [...] visitando o blog Zen-Dreams do Anthony Petitbois encontrei o plugin Gravatar Top Commenters, que além do nome e link também [...]

  11. [...] Gravatar Recent Comments [...]

  12. Par 10 New Useful WordPress Plugins | WP Passion le 14 octobre 2008 à 12:00

    [...] Gravatar Recent Comments [...]

  13. Par 10 New Useful WordPress Plugins | HellBoy le 3 novembre 2008 à 10:20

    [...] Gravatar Recent Comments [...]

Laisser un commentaire

Votre email ne sera jamais distribué. Les champs marqués d'une * sont obligatoires

*
*