Review Site Plugin

Review Site plugin 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. Features: Define categories of ratings […]

Review Site plugin 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.

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 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:

  1. Download Review Site Plugin, and save as review-site.php.
  2. Upload the review-site.php file to wp-content/plugins/ folder.
  3. Activate from the plugins page in WordPress Admin Panel.
  4. Once activated, necessary database tables will be created automatically.

    Usage:

    1. Add Rating Inputs To Comments: Edit comments.php template and add this code beneath where the name, mail and website are collected: <?php echo dgrs_get_rating_fields(); ?>
    2. Display Ratings With Each Comment: Edit 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); ?&gt;
    3. Display Number of Positive or Negative Reviews for a Post: You can add code anywhere inside 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); ?&gt;
      • Number of Negative Ratings: <?php echo dgrs_get_post_negative_ratings($post->ID); ?&gt;
    4. 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: <ul><?php echo dgrs_display_post_ratings($post->ID); &gt;</ul>

      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); &gt; The $ratings array will be keyed by your categories, with the values being the average rating for that category.

Dan Grossman

Review Site,Plugin, WordPress, Blog