Great, DisgruntledGoat,
You pointed in the right direction. However, output_split somehow does not work. So I made some modifications for it to output in the right format and to detect a div/0 error.
} else {
if( ($post['upvotes_raw'] + $post['downvotes_raw'])!=0 )
{
$percent = number_format(100 * $post['upvotes_raw'] / ($post['upvotes_raw'] + $post['downvotes_raw']),0, ".", " ");
$this->output($percent.'% up');
}
else $this->output( 'not enough data available');
}
Thanks again. GS