Mage Reviews
[resolved] V 1.0.7 is broken (6 posts)

  1. arulpr
    Posted 2 years ago #

    Have you checked your plugin on the latest WP. I am using a localhost (WAMP) and it was breaking the entire site, no error was returned either


  2. arulpr
    Posted 2 years ago #

    While using content filter dont use shortcodes as it is very inefficient way to do stuff


    Just yse the following code and not the do_shortcode

    function mage_get_review_average() {
        return mage_reviews_average();
  3. Maximilian Ruthe
    Plugin Author

    Posted 2 years ago #

    Hi Arul,
    I was unable to reproduce the error you mention, but I did remove the do_shortcode() from the content filter with your above suggestion, hoping that may help your issue.
    This fix is in the new version 1.0.8, which I updated today, which also contains new display options.
    Please let me know if that helped -

    Best Regards,

  4. arulpr
    Posted 2 years ago #

    I installed it on fresh install and it went through. I think it might have clashed with other plugins I am testing right now.

    Anyway I have another suggestion here.

    When calculating average you forgot to round off averages, so right now it will have ratings like 2.66666 or 1.33333

    In mage_reviews_average function I changed the following code

    $value = round($value/$divident, 2);

    I also suggest that you change comment meta and post meta keys into something a bit more unique

    _mage_rating is according to wordpress developers rule book.

  5. arulpr
    Posted 2 years ago #

    Found another small bug in function mage_update_rating

    instead of using comment approved as string

    $comments = get_comments(array('post_id' => $parent, 'comment_approved'=>1));

    Use the inbuilt function

    so it is checked against a boolen. Much safer when comment statuses changes.

  6. Maximilian Ruthe
    Plugin Author

    Posted 2 years ago #

    Thanks again for the suggestions -
    I implemented most of them in the new version, 1.0.9, as well as with localization compatibility. The custom meta key transition functions are just temporary and won't be included in the next update.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.