Ben
Ben is a lifelong Nintendo fan who likes to build websites, and make video games. He buys way too much Lego.
WordPress and Games
In my excitement to get the BM-Comment-Highlight plugin out yesterday I forgot to tell you how to actually use the thing. Also since posting it yesterday I have though of another feature for the plugin so I have updated it accordingly.
To use the plugin all you have to do is include a single php function call in your wordpress loop. This will return to you a string that you can use as a class in any way you see fit.
<?php foreach ( $comments as $comment ) { $commentClass = bm_commentHighlight(); ?> <li class="<?php echo $commentClass; ?>"> <?php comment_text(); ?> </li> <?php } ?>
When the function is called you will get a number of classes returned (most likely more than one). These let you style the comment appropriately.
The classes you get are:
The update to the plugin is the additional feature of telling you if the comment is a comment, a trackback, or a pingback. This will let you style your incoming links in a more effective way.