Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Fixed 1/2 Star rating issue

Discussion in 'Showcase Resolved Bug Reports' started by Bob, Nov 16, 2012.

  1. Bob

    Bob Developer Staff Member

    Fixed the 1/2 star rating issue. The issue was in the Rating DataWriter (rounding to whole number instead of 1 decimal point) when updating an items overall ratings. Forgot to change this when I added in the ability to do 1/2 stars.

    For those that want a fix now, its a very simple quick fix. Just do the steps below. Any ratings AFTER this fix will now round to 1 decimal which will allow the 1/2 star displays to work.

    edit /library/NFLJ/Showcase/DataWriter/Rating.php

    find on line 50:
            $rate['ave'] = round($rate['sum'] / $rate['count']);
    replace with:
            $rate['ave'] = round($rate['sum'] / $rate['count'],1);
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.