WordPress.org

Ready to get started?Download WordPress

Forums

WP Customer Reviews
average review desperately needed? (42 posts)

  1. LondonTiger
    Member
    Posted 2 years ago #

    seems silly that I have to even ask for this, but I think an average review feature is badly needed, this shouldn't take too much time to work into the system..

    You simply put a hook in the pahe like [average rating] and the plugin indentifies it and placed the review stars in the post on there.

    I would and have in the past worked with coders to get iumportant features like these implemented. but then there were always issues with updates, and incompatibility issues. Since wordpress is constantly evolving, it's not really feasable to pay a coder to look into this and constandly reupdate custom mosifications on each wordpress/plugin update.

    Please can you consider this for the near future.

    http://wordpress.org/extend/plugins/wp-customer-reviews/

  2. tamayo
    Member
    Posted 2 years ago #

    Here is how to get the average rating stars to show just above the reviews.

    You will need to modify the wp-customer-reviews.php file. This means that if you upgrade the plugin, your changes will be lost.

    Add the following function anywhere on this file:

    function get_average_rating() {
             global $post;
             $this->get_aggregate_reviews($post->ID);
             $average_score = number_format($this->got_aggregate["aggregate"], 1);
    
            return $average_score * 20; // 20% for each star if having 5 stars
        }

    I put it just before function get_aggregate_reviews($pageID).

    Then inside the function do_the_content($original_content), just after $the_content = ''; add the following:

    // build average ratings html
            $average_rating = 'Average Rating: <div class="sp_rating"><div class="base"><div class="average" style="width:'.$this->get_average_rating().'%"></div></div></div>';

    Then find the following line:

    $the_content .= '<div id="wpcr_respond_1">'; /* start the div */

    and place the following just below it:

    // attach average ratings to beginning of reviews
            $the_content .= $average_rating;
  3. Caps
    Blocked
    Posted 2 years ago #

    Be great to have this function packaged in the next release.

  4. DimaDance
    Member
    Posted 2 years ago #

    Would it be possible to get an example of how this code looks once implemented?

  5. patmatt
    Member
    Posted 2 years ago #

    tamayo,

    This worked perfectly for me so far. Thanks a million!

    How would I add some space between the average rating and the first heading for review title?

    Your help would be greatly appreciated!

  6. mstoddard
    Member
    Posted 2 years ago #

    I am not sure if this is correct, patmatt, but this is what I did.

    // build average ratings html
    $average_rating = 'Average Rating: <div class="sp_rating"><div class="base"><div class="average" style="width:'.$this->get_average_rating().'%"></div></div></div>' \n\n;

    It worked for what I was trying to do.

  7. patmatt
    Member
    Posted 2 years ago #

    mstoddard...

    That worked but at first I was getting a parse error. With a little tweaking, I got it fixed!!

    Instead of the \n\n, I added

    , but on the inside next to the closing div tags.

    // build average ratings html
            $average_rating = 'Average Rating: <div class="sp_rating"><div class="base"><div class="average" style="width:'.$this->get_average_rating().'%"></div></div></div><br/><br/>' ;

    Thanks a ton for the guidance!!

  8. patmatt
    Member
    Posted 2 years ago #

    I dont understand .php well enough to do this myself yet but the only other addition that would make the average rating perfect would be an "if this" and "else" ( if that's the right terminology!)

    In other words....

    If there are no ratings yet, show: This _______ has not been rated yet. Be the first to submit a rating!

    If there are ratings then show the average rating!

    Figured I would throw that out there!!

  9. Caps
    Blocked
    Posted 2 years ago #

    Yes, basic stuff.

  10. almer1984
    Member
    Posted 2 years ago #

    Great plugin, however it is indeed missing some basics.

    I wanted to show the average score of a particular post on the posts page before the <--more--!> tag. However it doesn't seem to be possible. Is there a short code so i can show the average score of 1 post on a particular place, for example the front page?

  11. mtbgeartech
    Member
    Posted 2 years ago #

    Everything worked fine for me except the average rating shows no stars no matter what the rating is. Any ideas?

  12. mtbgeartech
    Member
    Posted 2 years ago #

    I would also like to display the average score just below the title of the single post and on the front page. Any help would be greatly appreciated.

  13. Caps
    Blocked
    Posted 2 years ago #

    Looks like this plugin is dead for development.

  14. gowebsol
    Member
    Plugin Author

    Posted 2 years ago #

    Hi all.

    Caps, we are indeed working on this plugin, we've just been busy working with paid work.

    We will have the average rating worked into the plugin soon, we're just considering the best way to do that, ie: shortcode vs. sidebar widget, etc.

    Give us a few weeks :)

  15. patmatt
    Member
    Posted 2 years ago #

    Add to it multiple star ratings and this will be the best ratings system out there. Simple to use, clean and robust!

  16. gowebsol
    Member
    Plugin Author

    Posted 2 years ago #

    patmatt, explain for me please. How would you want multiple ratings implemented?

  17. patmatt
    Member
    Posted 2 years ago #

    Here is a page on one of our websites that has multiple ratings, but no way to leave a comment tied to the ratings. (This site is currently being replaced by a wordpress site)

    'http://www.allaboutdriveways.com/act-asphalt-specialties-2/index.html'

  18. gowebsol
    Member
    Plugin Author

    Posted 2 years ago #

    Gotcha, so detailed ratings based on configurable values? Interesting. We'll look into that. Thanks for the suggestion.

    We'll be putting a feature tracking tool in place soon too, so watch out for that.

  19. James Thomson
    Member
    Posted 2 years ago #

    Hi @gowebsol

    Thats a +1 from me for multiple star ratings, configurable exactly as described on definable values.

    Thanks for your work on the plugin.

  20. Caps
    Blocked
    Posted 2 years ago #

    Hi Gowebsol,

    Glad you are back. Be great if you would just peep in and say you are busy and will get back later to responding. :)

    Would it be better if within your name we could detect if you are the author or staff? For example: gowebsol_wpUR, would denote that these responses are from the author. What do you think?

    Regards,

    Caps

  21. davy-kelly
    Member
    Posted 2 years ago #

    Firstly thank you for this plugin, it's great!!

    I am really looking forward to the average rating update as this is something that I would really appreciate.

    I completely understand you giving preference to paid work but do you have any idea on how far away it is?

    Kind regards, Davy

  22. davy-kelly
    Member
    Posted 2 years ago #

    hummmm,

    I have just spotted the hreview-aggregate and am tryng to figure out how to use it.

    Any help would be appreciated

  23. longnha
    Member
    Posted 2 years ago #

    I follow the instruction and the average rating work just fine for me.

    Now, I want to change the "average rating" position, from "above review" to "byline" position. I am using Atahualpa theme and "byline" is under "headline".

    The plugin use PHP while Atahualpa use HTML, therefore, the instruction above is not work.

    There have anyone could give me some tip to move "average rating" as I want to, or able to convert PHP code above to HTML?

    Your help is much appreciated.

  24. mlankton
    Member
    Posted 2 years ago #

    thanks everyone, the above instructions worked for me. What I'm doing is a site with an article directory on the front page, linking to category pages that are blank. The individual posts represent product. The customer reviews are on the single page.

    What I am wondering is if there would be a way to display this aggregate rating next to the post title on the category page. Go check out snuffbox.org and you can picture what I am trying to do.

    I really appreciate anyone who takes the time to give me a nudge in the right direction, thanks in advance!

  25. mlankton
    Member
    Posted 2 years ago #

    the example would be
    http://snuffbox.org/category/mcchrystals/

    where, I would like the aggregate rating to display to the right of the post link

  26. mlankton
    Member
    Posted 2 years ago #

    actually number of reviews would be great too

    post link, number of reviews, aggregate rating

    that would be ideal

  27. mlankton
    Member
    Posted 2 years ago #

    what I meant three posts ago was not category pages that are blank, but category pages filled with titled but blank posts. The posts serve as products. sorry

  28. ImJohnLouie
    Member
    Posted 2 years ago #

    hi this is a great plugins but it is possible that wpcr have a multiple ratings to show up the star average ratings see this page http://wireless-link.net/home/products/ubiquiti-networks-products/

  29. mlankton
    Member
    Posted 2 years ago #

    bump

  30. slipperx
    Member
    Posted 2 years ago #

    I would like this feature too. A listing of categories on one page without stars, linking to an expanded list of items (or products) with an average rating generated from the individual ratings on the product post page. Is it possible? Timing?
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic