Hi,
the average is already calculated, because it's needed for the rating functionality (of course that only works properly for numbers) you just have to include to the results display... find the following lines in the file you mentioned:
| Code: |
if ($this->conf->sh_abs) $ret .= " ".$count;
if ($this->conf->sh_abs && $this->conf->sh_perc) $ret.= " (";
if ($r->data->type == "7")
$ret .= $rdes;
else
if ($this->conf->sh_perc) $ret .= " ".$percVal."%";
if ($this->conf->sh_abs && $this->conf->sh_perc) $ret.= ")";
|
These lines are responsible for displaying (depending on the settings) something like "x (y%)". You could now add e.g.:
This is not really beautiful, but it should work (and I guess you can beautify it yourself?)
regards,
Oli