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:
136
34
[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:
90
31
[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:
52
23
[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:
40
10
[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:
24
13
[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?
14
16
[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=”">
Hot debate. What do you think?
11
10
[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().
Hot debate. What do you think?
9
8
[Reply]
BoB
Reply:
May 14th, 2010 at 11:34 pm
Paged comment issue is to be fixed in version 2.0.6.4
Hot debate. What do you think?
4
6
[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.
Well-loved. Like or Dislike:
11
4
[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:
12
2
[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:
4
3
[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:
3
2
[Reply]
Simon
Reply:
January 7th, 2010 at 11:47 am
Thanks Bob. I’ve purchased it now and waiting to get my copy. Thanks
Hot debate. What do you think?
3
5
[Reply]
How much does cost the pro version?
Like or Dislike:
3
4
[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:
5
14
[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:
3
1
[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”.
Hot debate. What do you think?
4
6
[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:
2
2
[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”
Hot debate. What do you think?
4
4
[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:
3
4
[Reply]
BoB
Reply:
December 1st, 2009 at 8:16 am
You select the images in Comment Rating.
Poorly-rated. Like or Dislike:
5
10
Why is voting on a comment disabled on some pages? For example here http://sfpr.uwaterloo.ca/?p=327
??
Like or Dislike:
2
4
[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:
14
2
[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:
2
1
[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!
Well-loved. Like or Dislike:
4
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:
4
2
[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!
Well-loved. Like or Dislike:
7
2
[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?
Well-loved. Like or Dislike:
6
2
[Reply]
Sorry, that was my fault. All done
Hot debate. What do you think?
7
5
[Reply]
this looks like a fantastic product, can’t wait to try it.
Hot debate. What do you think?
4
5
[Reply]
Je vais essayer votre plugin. Merci. I want to try it, thanks
Hot debate. What do you think?
6
4
[Reply]
I’ve been using the comment rating plugin for some time now and just purchased the Pro version and widget. I deactivated the old plugin and turned on the Pro version and everything seems to be working just fine.
Except the widget. It shows up just fine and lets me add it to the sidebar but once rendered on page it doesn’t spit out any posts. It shows the widget title and an empty UL, no posts. Any ideas? Could using the old version for so long cause some kind of a conflict?
Like or Dislike:
3
1
[Reply]
Clark
androidandme.com Reply:
March 30th, 2010 at 7:31 pm
Doh! Ignore me. I’m using an old copy of the DB on the dev site so all my posts were out of the 30 day range. Everything is working great!
Like or Dislike:
2
3
[Reply]
I am using comment-rating-widget-pro, but I have a problem:
% Comment_link does not send the right direction in post with more than 50 comments. This is due to paging of comments.
A correct address should be:
http://www.empresuchas.com/nortehispana-de-seguros-y-reaseguros-sa/comment-page-31/#comment-122955
but the author’s link sent to:
http://www.empresuchas.com/nortehispana-de-seguros-y-reaseguros-sa/#comment-122955
How could be solved?
Thanks
Like or Dislike:
2
3
[Reply]
BoB
Reply:
May 9th, 2010 at 8:46 am
Edward,
I went to your site and click on a comment link on the Comment Rating Widget list. It seems to take me to the comment. so perhaps “page-31″ is not necessary.
Like or Dislike:
2
4
[Reply]
Edward
empresuchas.com Reply:
May 11th, 2010 at 2:12 pm
Certainly, “page-31″ is not necessary.
The idea should be something like:
http://www.empresuchas.com/nortehispana-de-seguros-y-reaseguros-sa/?cp=30#comment-122574
This link sent directly to the comment.
I am using the Paged Comments plugin for paging.
Like or Dislike:
3
4
[Reply]
Edward
empresuchas.com Reply:
May 14th, 2010 at 8:18 pm
Changing the line 1284-1285 [get-recent-comments.php]
$comment_link = $post_link .
“#comment-$comment->comment_ID”;
to just
$comment_link = get_comment_link($comment->comment_ID);
so that the comment-page-xx is included when one uses paginated comments.
http://www.empresuchas.com/santa-lucia-sa-cia-de-seguros/comment-page-174/#comment-122975
Great plugin, Thanks Bob.
Well-loved. Like or Dislike:
9
1
[Reply]
BoB
Reply:
May 14th, 2010 at 11:36 pm
Thanks for the fix. This solves the problem.
Well-loved. Like or Dislike:
5
1
[Reply]
Hidden due to low comment rating. Click here to see.
Poorly-rated. Like or Dislike:
1
4
How I can display only the comments on this post I’m viewing?. to display a ranting by Article
Hot debate. What do you think?
5
3
[Reply]
BoB
Reply:
August 16th, 2010 at 9:17 pm
The widget cannot do that yet.
Well-loved. Like or Dislike:
7
2
[Reply]
I had install this plugin, but it doesn’t work!
you can see this problem at http://appleshop.bloo.ir/wp/?p=1.
please help me and send answer of my question to my mail.
thanks a lot
Like or Dislike:
3
0
[Reply]
I’ve installed the plugin, but it doesn’t work. When voting, there’s no response. I used Firebug, and it returns 404 for this request: http://www.forexcrunch.com/wp-content/plugins/comment-rating/ck-processkarma.php?id=76722&action=add&path=www.forexcrunch.com/wp-content/plugins/comment-rating/&imgIndex=3_14_
I’m using the most recent version of Wordpress, 3.1.2, and of the plugin.
Any help will be appreciated.
Like or Dislike:
4
1
[Reply]
Mojtaba
almonji.ir Reply:
May 24th, 2011 at 9:02 am
Hidden due to low comment rating. Click here to see.
Poorly-rated. Like or Dislike:
1
6
[Reply]