Do You Know How To Comment?
How to highlight comments...
tweetmeme_url='http://aext.net/2010/03/highlight-author-comments-wordpress-right-way/';tweetmeme_source='aextnet';tweetmeme_service='su.pr';tweetmeme_service_api='b57727e991c454bd2b2c62ff71462c79';Quick Tip: Highlight Author Comments in WordPress – The Right Way45 Comments 0 DeliciousStumble it!Share
This is an old topic that has been covered by many other blogs and magazines–to the extreme, but it needs updating. I’m talking about how to highlight comments posted by the author of the article. The tutorials out there only work for one user ID for the whole site. That is a big mistake, as it didn’t allow for scalability — it only works when you are blogging on your own (and with only one account). We have given it an overhaul, and updated the code.
First, we should take a look at the code from the tutorials which highlight the comment based on the user ID:
More Funny Stuff
Funny Pictures
| FUNNY STUFF | |
|---|---|
| Cars in Bulgaria | 521273 |
| sex | 79563 |
| Funny Wallpaper 3D Middle Finger | 71619 |
| Funny Accident | 41828 |
| Viagra | 30549 |
| TOP RATED STUFF | |
|---|---|
| Sand Fantasy | 4.9000 |
| Priceless Cheerleaders Lips Pop Out | 4.7800 |
| Husband Of The Year | 4.7500 |
| Take Control | 4.7400 |
| Really Shock | 4.6600 |
More Quotes
| QUOTES | |
|---|---|
| Richie Allen | 7124 |
| Unknown | 6104 |
| Richie Allen | 5900 |
| Stefan Wyszynski | 5863 |
| Lois Wyse | 5796 |
| TOP RATED QUOTES | |
|---|---|
| Lady Ho | 9.2683 |
| Unknown | 7.6154 |
| Ignazio Silone | 7.3333 |
| Luther Allison | 7.3333 |
| Natalie Wood | 7.2727 |
| LATEST QUOTES | |
|---|---|
| Stefan Wyszynski | 5863 |
| Lois Wyse | 5762 |
| Lois Wyse | 5796 |
| Unknown | 6104 |
| Unknown | 5693 |