jump to navigation

Try Firefox - it's faster, and more secure than internet explorer. It even has a cute little mascot.

Journal

New Wordpress Plugin - BM Comment Highlight

January 27, 2008 | Web Design

A couple of weeks ago I mentioned how to upload plugins to Wordpress.org - and now I give to you, my second Wordpress plugin - bm-comment-highlight.

BM Comment Highlight screenshotComment Highlight does exactly what it says on the tin. If you look around you will find that there are a lot of plugins that do what bm-comment-highlight does, namely add extra classes to comments so that you can make them look different, but none work in the way bm-comment-highlight does.

The problem I had was that I wanted to automate the process, I wanted it to work well when you have multiple authors, and I wanted to have more control over the styling. Since there was nothing that worked the way I wanted I wrote my own.

Most current plugins simply give you a single class to style your comments with. This means that all the comments will either be yours, or your readers - there is no scope for doing interesting things. With bm-comment-highlight, you can see if the commenter is the post author, or a reader. You can see if they are registered or not, and if they are registered you can see their user id, which means that if you want you can style each registered users comments differently (with a photo or avatar perhaps?).

I am currently running bm-comment-highlight on Binary Joy (the Zelda review has a nice example), and you can see it in action on many of the posts on the site. Currently I style the post author and the registered users differently from the average commenter.

You can download the plugin from Wordpress.org

Comments »

  1. 1. Nathan Chapman
    January 28, 2008

    Wow. Great Idea!
    Works very well too. Thanks!

    And also, on your comment form, the white highlighting for “Notify me of followup comments” isn’t high enough. Just thought you should know!

  2. 2. Justin Tadlock
    February 14, 2008

    Cool plugin. I’ll definitely have to try it out, especially now that I’ve integrated bbPress. I’m getting a lot more registered users now, so it would be nice to highlight their comments too.

  3. 3. Ben
    February 14, 2008

    Nathan - thanks for pointing that out. Will take a look

    Justin - glad you like it :)

  4. 4. Stephanie
    April 18, 2008

    Sounds good. Right now, I’m using code in my comments.php file to style the comments but this sounds like something I may switch to instead. However, does this plugin also do general alternating comments styles?

  5. 5. Ben
    April 21, 2008

    Stephanie - currently it doesn’t do the alternating comments thing, but it’s something I will be adding soon as I think it’s a worthwhile addition.

  6. People who link to this post...

Leave a message tell me what you're thinking

Please feel free to comment - I like receiving them - however I would appreciate you using your real name. I am not here to improve your search engine ranking. Abusive/ Inappropriate posts and advertisements will be deleted.

Binary Moon