888888.888888.88""Yb..dP"Yb..8888b..Yb..dP.88b.88....db....8b....d8.88..dP""b8..dP"Y8
88__...88__...88__dP.dP...Yb..8I..Yb.YbdP..88Yb88...dPYb...88b..d88.88.dP...`".`Ybo."
88""...88""...88"Yb..Yb...dP..8I..dY..8P...88.Y88..dP__Yb..88YbdP88.88.Yb......o.`Y8b
88.....888888.88..Yb..YbodP..8888Y"..dP....88..Y8.dP""""Yb.88.YY.88.88..YboodP.8bodP'


88b.88.888888.888888.Yb........dP.dP"Yb..88""Yb.88..dP
88Yb88.88__.....88....Yb..db..dP.dP...Yb.88__dP.88odP.
88.Y88.88"".....88.....YbdPYbdP..Yb...dP.88"Yb..88"Yb.
88..Y8.888888...88......YP..YP....YbodP..88..Yb.88..Yb

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.

Html 5 Gallery
Wordpress html 5?
6 comments
page 1305
Post Image The Easy Peasy Way
Wordpress link to large image?
26 comments
page 1065
Wordpress Shortcodes What Why How
Create gallery shortcode wordpres?
no comment
page 236
Post Image The Easy Peasy Way
Vivieneasy url?
26 comments
page 1065
Are Child Themes The Best Option
Best thematic childthemes?
15 comments
page 1262
How To Add Sidebars To A Theme
Add a dynamic sidebar area to thematic?
10 comments
page 1053
Theming Habari Vs Wordpress
Habari vs wordpress?
13 comments
page 440
Wordpress 25 Exif Fields
Display image from wordpress database?
12 comments
page 230
Photoshop Design Framework
Framework for photoshop?
3 comments
page 296
Dont Mess With My Toot Toot
Fun with toots?
16 comments
page 599
Dont Mess With My Toot Toot
Fun with toots?
16 comments
page 599
Using Wordpress As A Php Framework
Php framework with wordpress?
2 comments
page 335
Html 5 Gallery
Html5 photo album?
6 comments
page 1305
Dont Mess With My Toot Toot
Fun with toots?
16 comments
page 599
Dont Mess With My Toot Toot
Fun with toots?
16 comments
page 599
Post Image The Easy Peasy Way
Adding image in my post in wordpress?
26 comments
page 1065
Html 5 Gallery
Photo gallery html5?
6 comments
page 1305
Wpunlimited The Ultimate Wordpress Theme
Html5 photo album?
3 comments
page 1141
Html 5 Gallery
Photo gallery html 5?
6 comments
page 1305
Html 5 Gallery
Make gallery html5?
6 comments
page 1305
3 Ways To Speed Up Your Blog Without A Cache Plugin
How to speed up wordpress without using cache?
one comment
page 1321
Wordpress 25 Exif Fields
Wordpress exif plugin?
12 comments
page 230
Html 5 Gallery
Html5 wordpress?
6 comments
page 1305
Fun With Sidebar Tabs Styling
Tabbed widget plugin change background color?
2 comments
page 336
Html 5 Gallery
Html5 image gallery?
6 comments
page 1305
Quick N Dirty Admin Login Screen
Login screen css?
no comment
page 128
Post Image The Easy Peasy Way
Display first image from post loop wordpress?
26 comments
page 1065
Post Image The Easy Peasy Way
Get image link de medium wordpress?
26 comments
page 1065
Using Your Own Url Shortener
Create your own url shortener in php?
4 comments
page 1190
Html 5 Gallery
Html5 photo gallery?
6 comments
page 1305
Wltc Plugin Competition Live Blogging Plugin
Wordpress liveblogging plugin?
2 comments
page 1258
Html 5 Gallery
Html gallery?
6 comments
page 1305
Updating Code Snippets Here
Fun plugin wordpress?
no comment
page 1338
  1 query every 1036 seconds, updated 1 seconds ago.
Post a comment?