Comment Rating Widget
Nov 11th, 2009 by BoB
I was urged by many users of Comment Rating to create a widget displaying Comment Rating results along with the comments on sidebars. Instead of reinventing the wheel, I chose to build the widget upon Krischan Jodies’ popular and stable “Get Recent Comment” widget. All the features of “Get Recent Comment” remain as is. The “Comment Rating Widget” plugin will track the most recent release “Get Recent Comment”.
This plugin is an add on to the Comment Rating plugin (version 2.9.0 or later). It displays ratings along with the most recent comments in the sidebar in formats of your design. The comment rating and images on display can be “Likes only”, “Dislikes only”, or Both. This is customizable by the “Value for comment_karma” option in Comment Rating.
The Pro version of the plugin can display comments ordered by their Comment Rating in the last X days. If you’re interested, please donate to get Comment Rating Widget Pro.
The plugin also comes with an internal cache to reduce performance impact on page loading.
If the Comment Rating plugin is not present, this plug in will function exactly as “Get Recent Comment”.
The following is Krischan Jodies’ description of Get Recent Comment.
This plugin shows excerpts of the latest comments and/or trackbacks in your sidebar. You have comprehensive control about their appearance. This ranges from the number of comments, the length of the excerpts up to the html layout. You can let the plugin order the comments by the orresponding post, or simply order them by date. The plugin can (optionally) separate the trackbacks/pingbacks from the comments. It can ignore comments to certain categories, and it offers support for gravatars. It only gives extra work to the database, when actually a new comment arrived. You can filter out unwanted pingbacks, which originate from your own blog. And it is a widget.
Feature List
- The Pro version allows ordering by Comment Rating in the last X days on a sidebar. If you’re interested, please donate to get Comment Rating Widget Pro.
- Highly configurable via WordPress admin interface.
- Adjustable layout by macros.
- Handles trackbacks and comments in separate lists, or in one combined list.
- Widget support
- Caches the output
- Order comments by date, or by posting
- Support for Gravatars
- Option to exclude comments to posts in certain categories
- Doesn’t show pingbacks originating from own blog
You can download the latest version here.
Installation
- After download the plug in, you can upload and install it from Wordpress Dashboard -> Plugins -> Add New. Alternatively, you can unpack and upload the dir with files to the wp-content/plugins folder on your blog.
- Activate the plugin.
- You also need to install Comment Rating plugin version 2.9.0 or later. If the Comment Rating plugin is not present, this plug in will function exactly as “Get Recent Comment”.
- Now you need to add the widget to your sidebar. Go to Appearance -> Widgets and drag the “Comment Rating Widget” the desired sidebar.
- You can configure the options under Setting -> Comment Rating Widget. The default options should be good enough.
- The comment rating and images on display can be “Likes only”, “Dislikes only”, or Both. This is customizable by the “Value for comment_karma” option in Comment Rating (under Advanced Option).




Great idea. Where can I find the widget?
Well-loved. Like or Dislike:
38
9
[Reply]
BoB
Reply:
November 11th, 2009 at 12:20 pm
The widget comes in as a separate plugin. I just had Wordpress.org approved it. Let me do a few more rounds of testing and will release it in a day or two.
Well-loved. Like or Dislike:
21
9
[Reply]
BoB
Reply:
November 27th, 2009 at 8:49 am
The plugin had been released as Comment Rating Widget at Wordpress.org. There’s also a Pro version which allows ordering comments by their rating in the last X days, if you’re interested. http://wealthynetizen.com/donate/
Well-loved. Like or Dislike:
11
6
[Reply]
I installed the new comment rating widget because a good recent comment widget is something I’ve been very much interested in having. However, I found the same “fatal flaw” in this one that exists in several other recent comment widgets. It doesn’t work with “paged comments” turned on. With paged comments, the URL for the comment has to include the page number, or else sometimes the comment link won’t work.
Well-loved. Like or Dislike:
11
4
[Reply]
BoB
Reply:
November 13th, 2009 at 8:47 am
That’s a tough nut to crack for me. Did you notify the author of Get Recent Comment?
Well-loved. Like or Dislike:
9
4
[Reply]
Dr. Conspiracy
obamaconspiracy.org Reply:
November 13th, 2009 at 7:59 pm
The built in Recent Comments works with paged comments, and I believe the Vertical Scroll Recent Comments works also. No response from Get Recent Comments author.
Hot debate. What do you think?
5
5
[Reply]
Dr. Conspiracy
obamaconspiracy.org Reply:
November 14th, 2009 at 8:46 am
I looked in the WordPress code, at the file default-widgets.php, where the built-in Recent Comments widget lives. I don’t begin to understand what’s going on here, but it looks like the link to the comment is returned by a function:
This is the code snippet:
have_posts()) : $r->the_post(); ?>
<a href="” title=”">
Well-loved. Like or Dislike:
6
1
[Reply]
Dr. Conspiracy
obamaconspiracy.org Reply:
November 14th, 2009 at 8:47 am
Well the editor ate a lot of the code there. the function is the_permalink().
Like or Dislike:
2
3
[Reply]
Someone else reported the problem on the Plug-in site in June, but there was no reply, and the Plug-in hasn’t been updated since then.
Hot debate. What do you think?
6
3
[Reply]
I’ve got the widget loading comments just fine but would love an option for displaying the highest rated comments (instead of the most recent). How would work would it take to sort comments by votes received? And maybe over a certain time period (eg: top rated comments in the last week)?
Well-loved. Like or Dislike:
6
0
[Reply]
Simon
Reply:
January 7th, 2010 at 7:24 am
Hi,
I want to do the same thing – did you manage to do it??
Simon
Like or Dislike:
1
1
[Reply]
BoB
Reply:
January 7th, 2010 at 8:16 am
This had been done in the Pro version. Please see http://wealthynetizen.com/comment-rating-pro/
Like or Dislike:
1
0
[Reply]
Simon
Reply:
January 7th, 2010 at 11:47 am
Thanks Bob. I’ve purchased it now and waiting to get my copy. Thanks
Like or Dislike:
2
0
[Reply]
How much does cost the pro version?
Like or Dislike:
0
1
[Reply]
BoB
Reply:
November 29th, 2009 at 10:02 am
The Pro version was made to thank those who support the project. Any amount is appreciated, $20 would be preferred. http://wealthynetizen.com/donate/
Poorly-rated. Like or Dislike:
0
4
[Reply]
I get this while trying to activate this plugin
Fatal error: Cannot redeclare kjgrc_subpage_misc() (previously declared in /home/***/public_html/wp-content/plugins/get-recent-comments/get-recent-comments.php:22) in /home/***/wp-content/plugins/comment-rating-widget/get-recent-comments.php on line 95
Like or Dislike:
0
0
[Reply]
BoB
Reply:
November 29th, 2009 at 9:04 pm
You have to deactivate “Get Recent Comment”. Comment Rating Widget builds on top of “Get Recent Comment”.
Like or Dislike:
0
1
[Reply]
Help me
Reply:
November 30th, 2009 at 7:21 pm
I have 1 template pages based on the “Get Recent Comment” and uses it’s code. After i activate comment-rating-widget, will i be able to activate “Get Recent Comment” again? And will my configuration be saved?
Like or Dislike:
0
1
[Reply]
BoB
Reply:
November 30th, 2009 at 8:31 pm
Comment Rating Widget is backward compatible to Get Recent Comment. So if you disable Get Recent Comment and enable only Comment Rating Widget, everything should work like before.
However, to see the ratings, you’ll need to change the template by added “%comment_rating”
Like or Dislike:
2
1
[Reply]
Help me
Reply:
December 1st, 2009 at 12:12 am
thank you very much
1 more question how to change image to display in sidebar up_20.png…
Like or Dislike:
0
2
[Reply]
BoB
Reply:
December 1st, 2009 at 8:16 am
You select the images in Comment Rating.
Poorly-rated. Like or Dislike:
1
7
Why is voting on a comment disabled on some pages? For example here http://sfpr.uwaterloo.ca/?p=327
??
Like or Dislike:
1
2
[Reply]
BoB
Reply:
December 31st, 2009 at 8:36 am
I can vote on that page. You must be the author of the comment or have already voted.
Well-loved. Like or Dislike:
9
1
[Reply]
A friend has made a donation but PayPal only redirects to your website’s home. So…where is the “Comment Rating Widget Pro”?
Like or Dislike:
0
0
[Reply]
ElPerro
elplog.com Reply:
January 12th, 2010 at 7:58 pm
Sorry, forget it…We recieved your email with all download links…Really sorry!
Like or Dislike:
0
0
[Reply]
Hi Bob,
I really like the design of the thread on this site. But I don’t want dates on my comments. So far I haven’t found a plugin yet that threads without dates.
Have you a suggestion?
Cheers,
JanPaul
Like or Dislike:
1
0
[Reply]
Hi Bob,
Thank You!
Great plugin
I needed if possible a script I can insert that would allow the highest rated comment to be place on the page where the comment was made. I want to place the highest rated comment under an image on the page. The page only has the one image on it.
Thanks for the help!
Like or Dislike:
4
1
[Reply]
Hi. When i try to activate this plugin-widget i revice this message:
\\\\\\\\\\\\\\\\\\\\\\\\\\\
Parse error: syntax error, unexpected $end in /home/lampoche/public_html/inspireme.ru/wp-content/plugins/comment-rating-widget/get-recent-comments.php on line 114
\\\\\\\\\\\\\\\\\\\\\\\\\\\
What i doing wrong?
Like or Dislike:
3
0
[Reply]
Sorry, that was my fault. All done
Like or Dislike:
2
0
[Reply]
this looks like a fantastic product, can’t wait to try it.
Like or Dislike:
0
0
[Reply]
Je vais essayer votre plugin. Merci. I want to try it, thanks
Like or Dislike:
0
0
[Reply]