Little bit more detailed example:
User influence is set to 50%
My rating User 1 User 2 User 3 AverUserR Should be Result
80 70 95 67 77,3 78,7 65
85 90 60 93 81 83,0 70
75 80 67 97 81,3 78,2 65
80 90 80 90 86,6 83,3 69
95 100 85 68 84,3 89,7 77
Most notably is the 4rd row. All users set rating 80 or bigger, but total rating gone low…
This page located at:
http://montenegro.in-facts.info/puteshestvie-gertseg-novskim-zalivom-otzyivyi/
Sorry for my bad English, I’m from Ukraine.
I made some changes in lines 49-68 and now all calculates correct. Yes, I know, that my solution a little dumb, but it works
$j=0;
foreach($comments as $comment) :
$j=$j+1;
for($i=1; $i<=cwppos("cwppos_option_nr"); $i++) {
if (get_comment_meta( $comment->comment_ID, "meta_option_{$i}", true)!=='') {
${"comment_meta_option_nr_".$i}++;
${"comment_meta_option_".$i} = ${"comment_meta_option_".$i} * ($j-1) + get_comment_meta( $comment->comment_ID, "meta_option_{$i}", true)*10;
}
//var_dump(${"comment_meta_option_".$i});
}
for($i=1; $i<=cwppos("cwppos_option_nr"); $i++) {
if (get_comment_meta( $comment->comment_ID, "meta_option_{$i}", true)!="")
${"comment_meta_option_".$i} = ${"comment_meta_option_".$i}/${"comment_meta_option_nr_".$i};
}
endforeach;
Maybe someone will found it usefull
Plugin Contributor
MariusG
(@marius_codeinwp)
Hello sollerport, thank you for posting the solution too.
We’ll have it fixed in our next update too, among with few other bug fixes and features.
Regards,
Marius
Tnx for Your fast support.
Any idea when the next update will be? Next week, next month etc? It helps to know.
Also is this same issue in the pro version to?
Thanks
Plugin Contributor
MariusG
(@marius_codeinwp)
Hello Dave,
We have this issue on PRO too. I can’t say an exact date for the next update, it’ll probably be in few weeks at most.
Regards,
Marius
Hi Marius,
Thanks for the feedback, it’s appreciated.
Dave