Hi,
the settings are in includes/misc-functions.php
lines 76, 77, 78 and 107, 108, 109 have code that looks like this:
‘ROUND( ( ( b.avg_star_result * b.avg_count + count_entries * star_result ) / ( b.avg_count + count_entries ) ), 2) AS adjusted_star_result’;
For each of the results “types” change the ) ), 2) to ) ), 1) (the number after the comma is the number of decimal places).
I have no idea where you could put this as an over-ride code to prevent updates changing your new settings.
cheers,
Fred
Hi there,
It’s on my TODO list to include a rounding option where you can choose how many decimals you want to use.
On plugin updates, the misc-functions.php file will be overriden. So I think the best way to do this is in the template files which you can copy into your theme. See rating-result-star-rating.php file in the templates directory and http://danielpowney.com/docs/template-system for instructions.
Thanks
Hi,
Thanks to you both for the reply.
Unfortunately, my misc-functions.php doesn’t seem to contain the described lines.
What am I missing here?
Thanks,
Florin