WordPress Review Site Plugin

The DG Review Site (DGRS) plugin for WordPress allows you to turn your blog into a powerful review engine. It’s flexible in design and presentation so you could use it as an additional interaction feature for your blog to collect reviews of your posts, or to drive a product/service review site where your users contribute the reviews.

This Version: 1.1.1 released on 1/12/2007
Download: http://www.dangrossman.info/wp-dg-review-site-1.1.php.txt
Updated 1.1 to 1.1.1 to fix typos in the options panel input names.

You can download or view usage instructions for previous versions: 1.0

This plugin is released under the Creative Commons Attribution-ShareAlike License. It is free for personal and commercial use as long as you maintain a link to this site as the original author within the code’s comments.

You can see this plugin in action at Award Winning Hosts. Please don’t submit fake reviews just to test the plugin.

Features

  • Define categories of ratings you wish to collect, the minimum and maximum rating, and the display order of your rating categories.
  • Collect ratings along with every comment.
  • Display ratings collected for each comment.
  • Display average rating from all collected ratings for a post.
  • Display the number of positive or negative ratings for each post (50% or higher overall rating based on your scale).
  • Manage rating categories easily from your WordPress admin options tab.
  • Define HTML to appear before and after rating labels and inputs easily from your WordPress admin options tab — no complicated function arguments.
  • Drop-in to any existing blog to add ratings. Simply doesn’t display anything for comments or posts that didn’t include ratings.
  • Flexible enough to be used as a post rating system, or to drive an entire rating & review site built on WordPress, depending entirely on how you customize the output.

Installation

To install DG-Review-Site, download the plugin from the link at the top of this page, and save it as review-site.php. Upload this to your WordPress plugins directory (usually wp-content/plugins). Then go to the Plugins tab in your WordPress administration area and click the Activate link next to “DG Review Site”. The necessary database tables will be created automatically.

As of version 1.1, this plugin now automatically embeds ratings in the text of your posts and comments if they are present. You can customize the output or disable this functionality through your WordPress admin options panel. You can achieve the most customized website layouts by disabling auto-embed and putting the various template functions within your theme by hand.

Important: You must add the rating input fields to your comments template manually. There is no WordPress hook that allows this to be done automatically. It is the first code snippet below. The auto-embed option takes care of everything else.

Add Rating Inputs To Comments:

To add the set of labels and selection lists to collect ratings, edit your comments.php template and add this code beneath where the name, mail and website are collected:

<?php echo dgrs_get_rating_fields(); ?>

Additional Templating Functions Available

If you choose to disable auto-embed, you can use these functions to add the collected ratings and reviews to your comments and posts.

Display Ratings With Each Comment:

To display the ratings a commentor entered with their comment, edit your comments.php template and add this code within the main loop which displays each comment (you’ll see foreach ($comments as $comment)):

<?php echo dgrs_get_comment_ratings($comment->comment_ID); ?>

Display Number of Positive or Negative Reviews for a Post:

You can add this value anywhere posts are shown — the main loop of your index or archive pages, or the single post page, just make sure it’s somewhere within the loop (after the_post()):

Number of Positive Ratings:
<?php echo dgrs_get_post_positive_ratings($post->ID); ?>

Number of Negative Ratings:
<?php echo dgrs_get_post_negative_ratings($post->ID); ?>

Display the Average Ratings For Each Category For a Post:

To display the average ratings for all the categories you’ve defined for a specific post, just like the positive and negative counts, add this code anywhere a post is displayed:

<?php echo dgrs_display_post_ratings($post->ID); ?>

That will display the categories and average ratings in your specified order as list items. For even more presentational control, you can get the data back as an array you can display yourself:

<?php $ratings = dgrs_get_post_ratings($post->ID); ?>

The $ratings array will be keyed by your categories, with the values being the average rating for that category.

Notes

Unfortunately I do not have time to respond to all your questions and requests personally, or to add new features to the plugin right now. Please make your best attempt at making the changes you’re asking about yourself — there’s only one file of code to read through and most of the look-and-feel requests I get could be accomplished with some CSS and no coding at all.

I also encourage anyone that adds new features to DGRS to make those changes available to others. Please just make sure you release under a license compatible with the terms under which you download the code here.

Like this plugin? You might also like my Auto Tagger plugin that suggests tags for your posts based on the content, or my Blog Stats plugin for adding web stats to your dashboard.

AddThis Social Bookmark Button

13 Trackbacks to “WordPress Review Site Plugin”

  1. Trackback from Dan Grossman : Turn WordPress Into a Review Site Engine: DG-Review-Site Plugin on January 9th, 2007 at 11:41 pm:

    […] If you’re not interested in my commentary and just want to check out the plugin, you’ll find it here: DG Review Site Plugin. […]

  2. Trackback from Weblog Tools Collection » Blog Archive » WP Plugin: Review Site on January 10th, 2007 at 8:57 pm:

    […] WP Plugin: Review Site allows you to turn your blog into a powerful review engine. It%u2019s flexible in design and presentation so you could use it as an additional interaction feature for your blog to collect reviews of your posts, or to drive a product/service review site where your users contribute the reviews. (No Ratings Yet)  Loading … […]

  3. Trackback from Review Site Plugin » D’ Technology Weblog — Technology, Blogging, Gadgets, Fashion, Life Style. on January 11th, 2007 at 7:27 am:

    […] Download Review Site Plugin, and save as review-site.php. […]

  4. Trackback from Blogtips » WP Plugin: Review Site on January 11th, 2007 at 10:20 am:

    […] Are you thinking to add additional features to your Wordpress blog? Then Dan Grossman Review Site plugin might be an interesting one. The DG Review Site plugin is flexible in design and presentation with which you can collect reviews of your posts or to support a service/product. You can find the details of downloading and installing this plugin at Dan Grossman. […]

  5. Trackback from Plugin: Turn Your Blog Into a Powerful Reviewing Site | Wordpress Tutorials And Blogging Tips on January 11th, 2007 at 4:00 pm:

    […] Wordpress Review Site allows you to turn your Wordpress blog into a powerful Review site, while being flexible enough to allow it to be an additional feature in your blog, or to take the entire site. The plugin allows you to collect and display predefined ratings for a post via the comment function, after which you can display the average rating for the post, display the number of positive or negative ratings for each post (50% or higher overall rating based on the scale you have set). […]

  6. Trackback from [i:rrhoblog] » links for 2007-01-11 on January 11th, 2007 at 5:17 pm:

    […] WordPress Review Site Plugin It’s flexible in design and presentation so you could use it as an additional interaction feature for your blog to collect reviews of your posts, or to drive a product/service review site where your users contribute the reviews. (tags: wordpress plugin wp-plugins rezension bewertung) […]

  7. Trackback from links for 2007-01-12 en newdisco on January 12th, 2007 at 10:21 am:

    […] Dan Grossman : WordPress Review Site Plugin Otro gran plugin de Wordpress. Más que un plugin es un completo sistema de reviews o calificacion para los articulos del sitio en cuestión. (tags: wordpress plugin plugins rating Reviews Review) […]

  8. Trackback from Help To Spread The Word About New Rating System | Web Hosting Review Blog on April 24th, 2008 at 5:20 pm:

    […] to this blog with a more effective way to leave their feedback about web hosting providers, Review Plugin was installed and hacked in such a way that it will allow to rate any of the web hosting providers […]

  9. Trackback from 12 Plugin Komentar Untuk Wordpress Yang Mendukung Pengembangan Komunitas Blog « Budimeeong on April 28th, 2008 at 7:23 am:

    […] DG Review Site — plugin untuk memperbolehkan pengunjung blog memberikan rating individu terhadap artikel atau posting Anda. […]

  10. Trackback from Wordpress не только для блогов: 16 вариантов | Почти все про блоги on May 18th, 2008 at 11:35 am:

    […] используется шаблон Prologue с плагином Дэна Гроссмана (Dan Grossman), позволяющим посетителям сайта оценивать бары, […]

  11. Trackback from WordPress 评分插件 | 我的地盘 on May 20th, 2008 at 12:13 am:

    […] DG Review Site (DGRS),给文章和留言增加评论级别机制,就是给打几颗星的那种意思。 上传激活。Options => DG Review Site中设置评论级别的数量等信息,在留言模版中合适位置(姓名、邮件下方)添加如下代码”<?php echo dgrs_get_rating_fields(); ?>”,在模版其他处可以增加一些代码来显示统计信息,具体代码使用可以参看作者网站。 […]

  12. Trackback from Create A Review Site Using Wordpress | KeithJamesLock.com on May 20th, 2008 at 11:52 pm:

    […] on these sites are actually from customers of the products (or services). The example given on the Review Site Plugin page is a review site for web hosting providers, but it can be for virtually anything. You can go very […]

  13. Trackback from Turn your wordpress into a review site on June 11th, 2008 at 9:12 am:

    […] installed his review plugin for wordpress and it looked pretty cool, but there was alot of styling and coding work to make it look really […]

175 Responses to “WordPress Review Site Plugin”

  1. Aaron
    January 10th, 2007

    Why did you remove your rss feeds for that site?

  2. Dan
    January 10th, 2007

    It’s not exactly a blog, I can’t see many people wanting to “subscribe” to a web hosting directory. Do you have a different opinion?

  3. Roland
    January 11th, 2007

    Hi Dan, this plugin does really have a nice feature set. However, I did not get it to work. I uploaded the and renamed the code to review-site.php into ../plugins and the admin site shows the whole code in the plugin directory. Any idea, what I did wrong?
    BTW My WP is 2.06
    Thanks for your assistance.

  4. steve
    January 11th, 2007

    Great idea, but same results here. I uploaded it to my ../plugins directory, it shows in my admin, and while it appears to be more of a THEME (judging from its appearance on your example), I’m not able to get anything to come up. Now that the plugin has been activated, how do you get it to show up?

    Thanks.

  5. Dan
    January 11th, 2007

    Roland: Please try downloading the file again, I’ve changed it to a plain text file which should make it easier to save and rename.

    Steve: Also please deactivate, download the fresh copy, and activate again with that. Then, you need to follow the “Usage” instructions above. Plugins can’t change your themes (except sidebar widgets) so you need to add the elements you want to use to your templates where you want them to appear.

  6. Hoboken411
    January 11th, 2007

    A few questions:

    - Can this be used on a site where I required user registration in order to comment?

    - Can this be implemented in a way that a user doesn’t have to “review” if they don’t want to?

    - does it limit the number of “ratings” to once per registered user?

    Much appreciated!

  7. Dan
    January 11th, 2007

    Hoboken411: It hooks into WordPress’s action that fires when a comment is submitted. If non-registered users can’t submit comments, they can’t submit ratings. You also would want to only show the extra inputs for selecting ratings in the same part of your comments template you display the comment form for users that are registered. No new logic, just a decision in where to paste the code from the usage instructions.

    I don’t know what WordPress does if you submit a blank comment. You might have to alter that, or make the comment textarea a hidden input instead, and simply don’t display it in your comments template.

    There’s no built-in limiting, it just sits on top of WP’s comment system. If you allow more than one comment per post per user, it’ll allow more than one review.

  8. Gersitz
    January 11th, 2007

    Dan, Great Script, used it on my new dating reviews site. (Check my url for site)

    also the code for “Display the Average Ratings For Each Category For a Post:” is messed up. You need to add the closing question mark.

  9. Gersitz
    January 11th, 2007

    Oh yeah, fair warning… If you are not that familiar with the system of Wordpress, it might be a little difficult for you to get started with this script.

    It does take a while to implement… a lot more than simply dragging into your plugin folder. Once you enable the plugin, you need to add alot of code to your pages in order to get things rolling. I am pretty good in wordpress and it took me about 10 minutes. then a while to monkey around with it.

    If I get time, I will make a template for everyone to download that has this plugin added to it already.

  10. Dan
    January 11th, 2007

    Thanks for the feedback. I’ve fixed the typos. This was my first attempt at extending WordPress, so I’m still not familiar with all the possible hooks that might make integrating the ratings easier, so I took the safe route and just made available the functions to add to the templates manually. If you do make a template for it, I’d appreciate the contribution and add a link here.

  11. Roland
    January 11th, 2007

    @Dan. Thanks for uploading the txt file. That made it!

  12. Lost
    January 12th, 2007

    Still can’t get it to work.

  13. Melodie na mobily
    January 12th, 2007

    Nice plugin, I try it on my testing site, work perfectly.

  14. David
    January 12th, 2007

    When I try to add the line:

    comment_ID); ?>

    to the comments loop, all I get displayed is the following and it break the page build after this point:

    SELECT `cat`, `rating_value` FROM `wp_dgrs_cats` INNER JOIN `wp_dgrs_ratings` ON (`wp_dgrs_cats`.`id` = `wp_dgrs_ratings`.`rating_cat_id`) WHERE `wp_dgrs_ratings`.`comment_id` = 1 ORDER BY `wp_dgrs_cats`.`display_order`

    Have tried a couple of themes (even the default) and it’s the same.

    I have tried it directly after the line:

    and within the tags but the same result.

    I have checked my database and I have a table ‘wp_dgrs_cats’ but not ‘wp_dgrs_ratings`

    Shouldn’t this be created automatically?

    Is it me?

  15. Andrew Peacock
    January 12th, 2007

    Thanks for sharing this. I’ve not installed it, but I’ll definitely be using it in future projects.

    Andy

  16. Gersitz
    January 13th, 2007

    This new version didn’t work as well as it looks. I had some problems with it, but I rigged it up a little differntly. (plug http://www.renting-dvds-online.net/ ) With this new version you have, it is proboally pointless to make a special template for just this hack, since this can fit seemlessly with basically anything now. (once you get things all set)

  17. David
    January 14th, 2007

    I just can’t get this plug-in working. Is there anyone that can offer support?

  18. Tom
    January 14th, 2007

    I really like the looks of this plugin, after checking your demo page. I would like to set up a page WITHIN my blog where writers can review various software designed especially for writers. I presume I must set up a separate page template, perhaps named Reviews, into which I would add hooks for your plugin. As a WordPress neophyte, I learning my way as I go. Am I on the right track for this plugin?

  19. Gersitz
    January 14th, 2007

    If you need a little help, hook me up on AIM “michaelgersitz”… I can give a little support if you really are having troubles..

  20. Brett Robertson
    January 17th, 2007

    The plugin triggers every time someone comments. If they don’t rate the post, the default ratings show up: If the range is set from 0 to 5 (as I have it set), then a non-rated post automatically gets a zero score. This is to say (again) your description “Simply doesn’t display anything for comments or posts that didn’t include ratings” isn’t working for me. Is this a bug or is this how the plugin works? Is there a way to filter out “zero” scores?

  21. Dan
    January 17th, 2007

    Brett: By comments without ratings, I mean comments left before you added the plugin. Choosing the lowest rating in the range you set isn’t the same as not rating someone - how else do you indicate a low rating? You’ll need to customize the plugin if that’s the logic you’re looking for.

  22. Brett Robertson
    January 17th, 2007

    A blank rating might work for commenters who don’t want to comment but don’t want to rate.

  23. Gersitz
    January 18th, 2007

    What he is trying to say is that the dropdown box of ratings should be blank…

    But the point of this plugin is to review a post and give it a rating. He would proboally be better off with a rating plugin.

  24. Dno
    January 18th, 2007

    Man, this looks like what I’ve been trying to find for a while now.

    Couple questions:
    1. Are you able to sort posts by their average rating?
    2. Are you able to sort the reviews/comments by their overall ratings?

    Just wondering how Amazon-like the plugin is…

  25. Dan
    January 18th, 2007

    The plugin doesn’t currently change the sort order of your posts or comments. Doing so without requiring you change core WordPress files and without requiring MySQL 4.1 or higher is at the least non-obvious to me. I’ll try to enhance this plugin when I have the time.

  26. brandon
    January 19th, 2007

    Very nice work Dan! Any chance we will see a future release that will allow submitters/responders to add images (without having to paste in tags), embed videos, etc as you can with the Wordpress editor form? Thanks and keep up the great work!

  27. Paul Gannon
    January 22nd, 2007

    Hey Dan, great plugin! I know I’m going to be able to use this for many different sites.

    I do have a question though, is it possible to also allow post authors to add a rating to the post?

  28. Dan
    January 22nd, 2007

    Paul: Wouldn’t you just type that into the post when you make it?

  29. Paul Gannon
    January 23rd, 2007

    Well the reason I wanted to do it through the plugin would be so I could sort them all together.

    I’m working around it though, no worries.

  30. Moses Francis
    January 24th, 2007

    Well i’ll be dipped in sh*t and rolled in breadcrumbs..this is exactly what i’m looking for.

    Thanks

  31. Martin
    January 27th, 2007

    HI

    First of all great plugin!

    I do have a small problem an was hoping some one could help me.

    The plugin is working great here on the frontpage http://seoinfo.dk/

    But when I look in the Categories or Archives it looks bad:
    http://seoinfo.dk/?cat=1
    It’s all on one single line: Overall Rating: 3.3Delivery: 3.0Service: 4.0Price: 5.0

    I have tried to make changes in the admin area but everytime I change the content on the other pages also.

    Could someone please help?

    Once again thanks for this great tool.

  32. Kuban
    January 28th, 2007

    Hi Dan,

    Thanks for this great plugin :)

    Could you tell me how can i sort posts by positive reviews as on the Award Winning Hosts website?

    If you have the time, You can perhaps indicate me the modifications to be made in the Wordpress core files.

    Thanks.

  33. Tom
    January 29th, 2007

    I have this Review plugin installed. I ask people to rate my posts on a scale of 1-10. 10 being the best. The rating system defaults to 1….. Can I set it so the default is 10 ?

  34. Jer
    February 2nd, 2007

    Great plugin!!! Works great, just got it running on Host Rate

    No problems, great stuff thanks man, ive been looking for something like this for quite some time!

  35. Jer
    February 3rd, 2007

    Dan is there any way to add the lastest X reviews or top X reviews to a file within the template?

  36. Glen
    February 4th, 2007

    Great plugin. Took me far too long to find it though.

    You could make your plugin perfect by giving the option of ajax stars - rather than a standard numerical rating.

  37. ray
    February 6th, 2007

    Dan,

    I cannot get this thing to work. I get the following error when I activate the plugin:

    Warning: Cannot modify header information - headers already sent by (output started at /home/sammyray/public_html/wp-content/plugins/review-site.php:469) in /home/sammyray/public_html/wp-includes/pluggable.php on line 275

    All I am doing is uploading the above file into plugins and activating it in Wordpress … am I missing something?

  38. Tom
    February 6th, 2007

    I still can not figure out how to change my review drop down so that the options are sorted from 10 to 1 instead of 1 to 10. I want the default option to be 10 instead of one. can anyone help please?

  39. Jonix Konios
    February 7th, 2007

    Great plugin this one. i was looking for something like this for ages!

  40. Roland
    February 7th, 2007

    Great plugin!!! I’ll put him on a new blog that i’m building about sites reviews.

  41. muzin
    February 8th, 2007

    Great Plugin!!
    I’m finding the exactly this!

  42. hongkiat
    February 15th, 2007

    Is this plugin compatible with Wordpress 2.1?

  43. Tim Owens
    February 26th, 2007

    Hi Dan, great plugin! We’re using it over at DemoMarks for our web app reviews and it’s working great.

    Quick question/suggestion, is it possible to only have reviewing built in for a specific category? Right now any blog post will show the rating criteria for commenters, we’d like to restrict that to a certain category or have the ability to turn it on or off on a per-post basis.

    Thanks again for an excellent plugin!

  44. Evan
    February 28th, 2007

    how about a feature where someone can submit an item/product/site for people to review or something.

  45. Richard Curry
    March 2nd, 2007

    I was thinking about what Tim above said about restricting to a category..
    Instead a small plugin could be written that when posting it says add review and have a yes or no dropdown. Then really all this does is hold the value.. The user could then add an if statement in their theme saying if (value)=yes then (code you want the post to look like)
    else
    (regular code for post)

  46. Chris
    March 4th, 2007

    Doesnt seem to work with WP 2.1.2

    Once i activate the plugin, WP is displaying empty pages only.
    No Error msg

  47. Luther
    March 6th, 2007

    Working fine on a clean install of 2.1.2.

    Thanks for the good work.

  48. Tim Owens
    March 6th, 2007

    I’ve managed to edit the plugin to at least allow the default ratings to be descending with the highest rating the default. Go to the plugin editor and find this line:

    for ($i = $row['scale_min']; $i

    and change it to

    for ($i = $row['scale_max']; $i >= $row['scale_min']; $i--) {

    That will reverse the order of ratings making the top rating default.

  49. Tim Owens
    March 6th, 2007

    Damn, somehow I knew that part of that code would get lost. Basically you need to find the line and reverse the words “min” and “max”, change the “i++” to “i–” and change the “=”. So three edits to that line and the order will be reversed.

  50. Chris
    March 6th, 2007

    Ok, figured it out.
    It’s not working if Gzip Compression is enabled (tried with WP 2.1.2)

    Working fine after i turned Gzip Compression off.

  51. Remco
    March 9th, 2007

    Hello Dan,

    I cannot get this to work, is it possible to get some help?
    We are more then willing to pay for it!

    Please let us know….

    Kind regards,

    Remco

  52. Kev
    March 12th, 2007

    I cant get this to work at all. If anyone is able to set this up for me Paid obviously the way dan has it done please let me know at bairdoid @ hotmail.com

    appreciated.

  53. L
    March 15th, 2007

    Help!

    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource

  54. GTS
    March 16th, 2007

    Dan,
    This looks like a great plugin. Unfortunately, I just tried to install it in wordpressmu and received a fatal error upon trying to activate. When I look in mysql I can see the tables and data were created for the correct table instances but I can’t tell where the activation dies after that. I am new to wordpress and this is my first plugin so pardon my ignorance but any thoughts on how to debug where this dies? Also, could this be an mu issue? Will try to install in vanilla wordpress but thought I’d see if you had any advice.
    Thanks.

  55. Will
    March 24th, 2007

    Great plugin!

    Simple question that I’m sure someone can help me with.

    How can I style the input box and label?
    How can I move the label to the right of the input box (rather than have it on the left as it is now)?

  56. Dan
    March 24th, 2007

    Unfortunately I don’t have time to provide support for this plugin. There’s not much code so you should be able to find what you want to customize, or use CSS to accomplish a specific appearance you’re looking for.

    Please feel free to release any new features you add to the script for others to use as well, just make sure the license you offer it under is compatible with the one this is distributed with.

  57. tech
    March 31st, 2007

    Nice plugin, I try it on my testing site, work perfectly…

  58. mike
    April 9th, 2007

    excellent plugin shame about the support but like most people here i also get an error upon activating this plugin - Warning: Cannot modify header information. If someone could assist would much appreciate especially as im not the only one with this problem.

  59. mike
    April 9th, 2007

    i found this website with the answer to my and your problem http://drupal.org/node/753.

    So for those of you who get the error Warning: Cannot modify header information… when you activate the plugin, simply remove ?> on the very last line of this plugin. Do that and it will fix the problem.

  60. mike
    April 12th, 2007

    Hi Tim

    Did you manage to findout about having the reviews shown for posts belonging to a specific category only? I’m currently stuck with this one. Any help would be appreciated.

  61. Will
    May 10th, 2007

    Is there a way people can post comments without actually submitting a review score?

    For example, the plugin works great on my site for reviewing beers http://www.goodbeeronline.co.uk/ but sometimes a person who has already reviewed the beer may want to discuss it without affecting the average review score.

  62. chi
    May 14th, 2007

    Hi Dan,
    Is there a way to let users to give an empty value for voting fields? I mean, if someone would just want to add a comment and not give a vote, then he’ll have to give something to the voting fields anyway, right?

  63. Dan
    May 14th, 2007

    The purpose of this plugin was “to turn your blog into a powerful review engine”. That’s why it’s called “Review Site Plugin”. If you want a hybrid where you have reviews sometimes, comments other times, you’ll need to customize it yourself :)

  64. me
    May 29th, 2007

    You can undersatnd though why a blank field in the dropdown would be useful as to not sckew the results. This isnt about a hybrid its more about getting good data.
    If a user forgets, doesnt understand or is just plain impatient and doesnt click the rating it will mess the “real” results up. This is very common and would be easily fixed by having the default rating selection blank or set to none.

  65. Matt
    June 4th, 2007

    How do I add different voting options?

    For example, I don’t want ‘Overall Rating’, I want to change it to something else… and have more than 1.

  66. Will
    June 8th, 2007

    Good point ‘Me’ - a blank field would make this plugin so much more useful!

  67. Ian Mason
    June 8th, 2007

    Hi Dan,

    GREAT plugin!!!

    I have one problem - I get a TON of spam. Comments are put in qeue for approval, or caught by Akismet.

    But even though they are not approved, or if they’re marked as spam, the ratings still show. So, every day my product ratings go down tremendously as the spam comes in (spam bots aren’t selecting ratings, just leaving at 0).

    Is there a way to stop the plugin from using comments for the rating calculations unless they are approved comments?

  68. Will
    June 9th, 2007

    Does anyone know what code is used to display only some of the ratings on a page? For example, if I have an Overall and Taste rating - how can I display just the Overall rating? (The Taste rating will be used in other pages)

  69. Ricky
    June 10th, 2007

    How do we add this to the template? Could someone please post an example template for me? I would really apprecaite it. I am going crazy trying to figure out how to get this running. It is already in the plugins and it is active. :(

  70. gestroud
    June 17th, 2007

    Tried and tried to get this to work with WP 2.2, but no go. Finally had to switch to the Star Rating plugin to display my ratings and the WP Post ratings plugin to display user ratings. :( I really prefer your plugin.

  71. Aaron
    June 20th, 2007

    First of all, great plugin. I just installed it on a client’s site (WP 2.2). They wanted it running only in one category so I thought I would post here how to do that since it has been asked a few times.

    You can do it all in one line of code. Just grab the id of whatever category you want the plugin to run on –in this case it is 7– and add this to your comments.php file where you would normally add the dgrs_get_rating_fields

    if ( in_category(7) ) {echo dgrs_get_rating_fields();}

    Note: The in_category function looks to see if a category is present so if you had categories for different musical instruments and wanted reviews about a specific guitar, you could put it in the guitar category and the review category and the plugin would run on that post.

  72. LEo
    July 3rd, 2007

    Hi

    Unfortunately, the link to your plugin appears to be broken. Is it possible to have this restored, or to have the file emailed to me.

    address: leorampen (at) gmail (dot) com

    Leo

  73. Dan
    July 4th, 2007

    Leo,

    Sorry about that. I upgraded this server from PHP4 to PHP5.1 last night and one of the setting changes caused the file to be parsed instead of sent in plain text. All fixed up now.

  74. Mateus Moraes
    July 16th, 2007

    To me, Chi, Matt and all the others who wanted to have a blank field to avoid “forced” votes:

    Open your ‘comments.php’ and seek this line
    for ($i = $row[’scale_min’]; $i ‘;

    Save your file and that’s all. This is my first attempt with PHP code (I’m migrating from ASP) but that worked for me. Simple and clean :)

  75. Mateus Moraes
    July 16th, 2007

    Oh well… Some tags didn’t appear…

    Here in my blog you can find the trick: http://www.homeopatiaonline.com/mateusmoraes/blog/arquivo.asp?id=647#comentarios

    Let me know if it worked :)

  76. Michael
    July 21st, 2007

    Everything appears to be working except for the function:

    function dgrs_comment_posted($comment_id)

    never seems to get called. Anyone know of a way to force this or put the function call in somewhere else if it is not being fired by the core comment_post action.

    thanks!

  77. Michael
    July 21st, 2007

    Looks like the function is getting called but nothing is getting inserted. All the other aspects work if I manually put in data but the insert is not working. Using WP 2.2.1.

    thanks

  78. Michael
    August 1st, 2007

    Any chance someone has some code that will list posts based on their rating?

    Would be most helpful

    thanks!

  79. Jeroen Onstenk
    August 6th, 2007

    Hi,

    For some reason I can’t call/show an indiviual category

    ID); ?>

    “The $ratings array will be keyed by your categories, with the values being the average rating for that category.” What kind of modification do i have to make to have only one category been displayed?

  80. Dan
    August 6th, 2007

    That function returns an array, it doesn’t display anything. You need to display the part of the array you want.

  81. Jeroen Onstenk
    August 7th, 2007

    Thanks for your answer Dan. Could you give me an code example how to display a specific category?

    And another question I have is if it’s possible to already rate while you are posting? So that the author can give his/her rating about the subject he/she is writing. I’d love that feature.

  82. Dan
    August 7th, 2007

    Sorry, how is this different from writing your rating into the body of the post?

  83. Jeroen Onstenk
    August 8th, 2007

    I mean the following:

    Now you write a review and when you want to rate the reviewed subject, you have to respond/comment to this review. I thought i’d be nice if the person who wrote the review also can rate immediately. Instead of having to write a comment on his/hers own review. And that these ratings will be a part of the other ratings given by visitors of the site.

    And, an code example of how to show only one specific rating category (instead of all categories together) will be very much appreciated!

  84. Euph0rix
    August 15th, 2007

    Hi Dan,

    Thanks for this great plugin.. i have made some tweek with your plugin to show the overall rating as a Graph..

    sample page: http://digxy.com/reviews/cgyhost/

  85. Thorsten
    August 23rd, 2007

    Hi,
    first of all thanks to dan for this great script. It opens up some doors to new usages for wordpress.

    We improved this script a bit so it can handle multiple designs and rating categories. We also implemented some kind of fraud protection, storing of an overall score in a custom field and some star based presentation of the rating value.

    the script can be found at Sourcebench.com

    have fun

    Thorsten

  86. Don
    August 23rd, 2007

    Anyone know where this is? Where in the code it goes, I see alot of the “code beneath where the name, mail and website are collected:>

  87. Don
    August 23rd, 2007

    How do I get my catagories to show?

  88. manele
    August 31st, 2007

    thank you for your preety cool plugin.

  89. aca463
    September 5th, 2007

    Hay alguna otra nueva versión del plugins?
    El plugins necesita tener activados los widgets en el theme?

    Saludos y muchas gracias.

  90. Ash
    September 6th, 2007

    I’m using this plugin on my latest project.

    Thanks for the great mod.

    Has anyone modified it to show stars or images instead of numerical results?

  91. Thorsten
    September 11th, 2007

    Ash…. this was sth i missed there. I added it in my version of SB_Review

  92. Smaug
    September 11th, 2007

    Hello, how can I display best rated posts/products for example in sidebar?

  93. giles
    November 18th, 2007

    Ok .. installed and activated fine .. updated with the text file above.

    How do I enter a Rating into a post .. I don’t see any menu or drop down selector or anything in the WRITE area when making a post that will enter a rating into a post.

    Am I being dumb ? is it a custom field ?

  94. Dan
    November 18th, 2007

    This plugin is to add rating selections for your visitors’ comments, not for the author. If you want to rate something yourself, write it into the body of the post…

  95. giles
    November 18th, 2007

    http://www.channel-ai.com/blog/plugins/star-rating/

    So in order to make the website a complete Review website where author gets to RATE what he is talking about and users when they comment get to do it also I am adding the above plugin as well .. shame that there isn’t one that does both of these things together .. and then allows you to rank whatever you are reviewing by overall ratings or at least show both Author rating and user rating in one nice tidy way.

    I think the stars are the best way to go .. I wish I knew how to code to make it allan AJAX star rating system that combines Author and User ratings.

  96. giles
    November 18th, 2007

    http://www.yvoschaap.com/index.php/weblog/css_star_rater_ajax_version/

    this is also a lot more interesting … it seems all the ideas are out there .. just hasn’t been bundled into the same package .. maybe this link could help you AJAXify your rating feature. Especially as yours is already a plugin .. and these others seem not to be.

  97. Dan
    November 19th, 2007

    You don’t need a plugin to rate things as an author. Just write the rating in the post body. Wrap it in an element with an ID and go crazy with CSS. No plugin is going to do something you can’t with that.

    You can see this plugin hasn’t been updated in almost a year. I don’t have time. It is what it is.

  98. Kristoffer
    November 19th, 2007

    Nice plugin!

    But i am looking for a way to sort posts based on the rating. Like the site Award winning host… any pointers on how to do that?

    Thanks!

  99. donalyza
    November 22nd, 2007

    Liked the plugin, but something is missing. Is there a way we can change the ratings (numbers) to an image like the stars?

  100. Muzica Noua
    November 25th, 2007

    Nice plugin !

  101. John Christensen
    December 17th, 2007

    good plugin.. sort of vague install instructions…

    i would suggest that when putting code into comments.php the directions read:::

    at or around line 160 in the comments.php file, right after

    " />

    put in

    this would have helped immensely. hope it helps!

  102. John Christensen
    December 17th, 2007

    sorry… one more try

    at or around line 160 in the comments.php file, right after

    ” />

    put in

    this would have helped immensely. hope it helps!

  103. John Christensen
    December 17th, 2007

    ok… sorry about previous…

    put code in around line 160 after the comment_author_url code

    whew!

  104. Frank Lucas
    December 25th, 2007

    Good God, Dan, why did you make the default the lowest rating instead of the highest. Anyone not noticing this rating is going to submit the lowest rating. I’d have chosen the highest rating. Any hope?

  105. Dan
    December 26th, 2007

    If you want the default to be different, then make the change in your copy. That’s what open source is all about.

  106. Manele gratis
    January 9th, 2008

    Nice work man! the plugin is great.. thanks;)

  107. Jake Rutter
    January 14th, 2008

    Great Plugin, Im excited to give it a try! I’ve been using wp-ratings, but was looking for something that I can tie to the comments. Thanks!

  108. sangeetha bhatta
    January 15th, 2008

    Am having an issue. I am the admin, and want to change my own ratings.but i do not find GUI for that in admin panel of wordpress.
    please help !!!

  109. xnsofteg
    January 15th, 2008

    Lafarge to buy Orascom Cement for $12.8 bln link

  110. sangeetha bhatta
    January 15th, 2008

    I would like to thank you so much for this plugin.
    I am totally new to web site creations. But with wordpress,
    ddformmailer, and your review-site plugin, i have created a very satisfactory and useful site http://www.myxcompany.com.
    Thank you so much again .

  111. bob
    January 18th, 2008

    GdvzEo hi great site thx http://peace.com

  112. Glenn Kilpatrick
    January 26th, 2008

    Hi Dan

    Thanks for this plugin.

    As someone whose not really skilled in php coding its taken me a while to adapt a template and get your code in place. But I feel it will be well worth the effort in the end. So far Ive been working about 4 hours.

    My question - Is it possible to apply different rating scales to different product reviews ?

    My site will review products relating to kayak fishing. So I will be reviewing Kayaks, but also items like fishfinders - so a score based on stability may well be applicable for kayaks but not for a fishfinder.

    How can I apply diverse rating scales to different products ?

    Thanks again - Glenn

  113. proxies
    January 29th, 2008

    Will you ever share the template?

    Without the template there’s a lot of working and coding to be done in order to put this to work.

    Thanks anyway.

  114. Manele Noi
    February 1st, 2008

    Great Plugin THX!!! http://www.manelele-noi.com

  115. plugin installed but not viewable on site
    February 8th, 2008

    Hi there,

    I have installed this plugin and it appears to be what I am after. For some reason although the plugin is installed correctly ( I have activated it) and also can see the settings within the options tab.

    I cannot see any data being added to the blog posts that I make. Please can I have some advice. I have also added code to the comments.php file.

    Regards. John.

  116. dan
    February 12th, 2008

    Hi,

    this is a suggestion, how about to be able to specify description for each category in admin, that would allow for an explanation for example: “1=great,2=average,3bad”, and this would be shown after select box(in template functions).

    Great Plugin, thanks,
    Good Luck.

  117. Adrian
    February 12th, 2008

    Hi

    I’ve been experimenting with this plugin and can’t seem to get the upload widget to work. I get lots of “open_basedir restriction in effect” errors once i hi