New Plugin: Latest Comments With Avatar


Update: This plugin has been replaced and improved with the Latest Comments With Avatars Reloaded Plugin.

Despite my site running ultra-slow at the moment, I’ve managed to release my first plugin: Latest Comments With Avatar (LCA). I decided I’d have a go at creating a MyBlogLog plugin, as I’m a big fan of the new MyBlogLog Avatars that are rapidly appearing on many blogs, and I thought it’d be cool to jazz up the typical ‘Latest Comments’ section. What my plugin does is show the commenter’s Avatar alongside the post title, and you can see it in operation in my sidebar.

The current version of Latest Comments With Avatar (0.9) includes the following:

  • Compatible with Wordpress 2.0+
  • Full control over how many comments are displayed
  • Trackbacks can also be displayed – you decide
  • Not a resource hog – very important given my site’s current performance :-( Uses cache and optimizes database queries

Installation & Usage:

  1. Download the file lca.zip
  2. Upload to your server’s /wp-content/plugins/ folder the file lca.php and activate the plugin
  3. Decide where you want to place the comments by adding the following code (the sidebar is an ideal place):

< ?php if (function_exists (avatar_show_comments)) { avatar_show_comments(5,FALSE); } ?>

The default settings will show 5 comments. To display more comments increase the first function call. To include trackbacks change the second call to TRUE.

Download latest Comments With Avatar (LCA): Version 0.9 (save file and rename it asc.php)
Future Versions:

  1. Because of the image size, I’d like to add an optional comment excerpt as there is loads of space. I’m trying to work out how to do this (can anyone help?)
  2. I’d like to provide an option to show the smaller version of the MyBlogLog Avatars, rather than the full-size Avatars

Support & Comments:

Please leave a comment below if you have any issues. Support will be minimal as I’m no Wordpress whizz, but ask away anyway as more competent users may be able to help.
Credits

This plugin unashamedly draws upon code and great work from the following plugins – My Avatars and Blokura.

That’s it for now. If you haven’t got a MyBlogLog Avatar yet then click here – don’t forget to join my community when you’ve finished!


Read Related Posts




Latest Posts

Filed Under: BloggingInternet News

Tags:

About the Author: Everton is based in London and has worked in the internet and mobile space for over ten years now, and before that worked in corporate strategy and consulting. He has a degree in Economics from Cambridge University.He also writes for Windows 7 News, Windows 8 News and One Tip A Day.

  • cheerio
    Hope my avatar works.. :(
  • A.N.
    Hope my avatar works :)
  • Hi Everton,

    I signed up for the forum, however I haven't received a verification code. Can you please email me at the address you have in email field in this comment so that I can send you a screenshot of the latest comments display in my sidebar (which is what i'm having a problem with)..I tried contacting Brian on his site, however he did not respond. I really appreciate your help.

    thanks in advance
  • Iman - post your problems here and someone will help
  • Everton,
    I tried using Brian's latest comments pugin, but it didn't work for me.. it listed the names in rows instead of one line. Do you mind helping me out figure out what the problem may be? i tried adjusting sidebar margins, but that didn't help. Any help would be appreciated.

    Thanks,
  • the plugin I'm using in my sidebar iman is this one
  • Everton,
    It was a syntax error.

    Can you please email the code I need to enter in my sidebar so that it appears like yours (without the bullet points of course)
    Thank you in advance.
  • May the force be with you :)
  • yep, next I'm going to package up this theme - you've trained me well obi-wan
  • Good work... so Mr.EB is not entered the world of plugins. Will get the word out on this.
blog comments powered by Disqus