lexa wrote:3. You use Default template from 1.1.1? You use cache?
I don't understand the plugin. This function shows the rating, right?
- Code: Select all
function rating($what = ''){
global $tpl;
if ($what == 'check'){
return ($_COOKIE['cnpostrating'.$tpl['post']['id']] ? true : false);
} else {
return @round(($tpl['post']['rating'] / $tpl['post']['votes']), 0);
}
}
But $tpl['post']['rating'] and $tpl['post']['votes'] are empty. Where in the plugin do you give them the values?
