Ferodynamics Network

popular: profile privacy, mobile privacy

November 1, 2007

I’ve noticed a plugin doing the rounds of the Wordpress blogs recently called Highlight Author Comments. It helps to achieve an effect previously only possible by altering your theme: different styling for the author’s comments. I’ve decided to compare it to the theme alteration and look at when each is most appropriate.

Using the plugin is very simple. Once installed it provides an option page where styles can be entered and saved. It will take any number of CSS styles in inline format.

author comment options selection
Adding styles to the plugin

The plugin works by wrapping the comment content in a div tag with those inline styles applied so there is quite a lot of flexibility as to the styling options including background colours, images, borders, type changes, and position changes.

Theme Alterations

The plugin and the theme alterations work on exactly the same principle: for each comment check whether the e-mail address entered is that of the posts author, and if so applied a different set of styles of code. At it’s most basic:

[php]
if ($comment->comment_author_email == get_the_author_email()) {
echo '

Author Comment

';
} else {
echo '

'.$comment->comment_author.' says:

';
}

When to use

If you are using a ready made theme then the plugin is ideal. It helps you make the comments stand out very easily. It would also seem to be best if the style changes need only be quite minor, and don’t require any other parts of the template to change. Adding a subtle gradient to the background and changing the colour of the text would be easy.

If you have a more ambitius nature and want to change the template around the comment, such as the header or the way the date is shown, then changing the theme is likely to be more appropriate.

More details about the plugin can be found at All things seen and unseen.

Post Image The Easy Peasy Way
26 comments
page 1065
Quick N Dirty Admin Login Screen
no comment
page 128
Wordpress Chat
one comment
page 1308
Html 5 Gallery
6 comments
page 1305
Html 5 Gallery
6 comments
page 1305
Silence Is Golden
3 comments
page 213
Questions About Habari For Wordpress Users
6 comments
page 424
Theming Habari Vs Wordpress
13 comments
page 440
My Experience Of Flexx
4 comments
page 1026
Plugin Update Fun With Photo Data 2
one comment
page 815
Post Image The Easy Peasy Way
26 comments
page 1065
Categories Vs Tags Either Neither Or Both
12 comments
page 7
Gaining Benefits From Plugins
8 comments
page 1167
Fun With Theme Widgets
24 comments
page 867
Beware Wp Cache
8 comments
page 1310
Six Million Ways To Die Choose One
14 comments
page 1128
Post Image The Easy Peasy Way
26 comments
page 1065
Post Image The Easy Peasy Way
26 comments
page 1065
Wordpress Chat
one comment
page 1308
Post Image The Easy Peasy Way
26 comments
page 1065
Wordpress Chat
one comment
page 1308
Beware Wp Cache
8 comments
page 1310
Wp Polls Reviewed
one comment
page 58
Fun With Photo Data
12 comments
page 330
Fun With Sidebar Tabs Styling
2 comments
page 336
Html 5 Gallery
6 comments
page 1305
Using Your Own Url Shortener
4 comments
page 1190
Html 5 Gallery
6 comments
page 1305
My Experience Of Flexx
4 comments
page 1026
Fun With Sidebar Tabs
193 comments
page 57
Html 5 Gallery
6 comments
page 1305
  updated 1 seconds ago
Post a comment?