$xml->add_tag('voteavg', process_replacement_vars("$vbphrase[rating]: <img class=\"inlineimg\" src=\"$stylevar[imgdir_rating]/rating_$thread[rating].gif\" alt=\"" . construct_phrase($vbphrase['thread_rating_x_votes_y_average'], $thread['votenum'], $thread['voteavg']) . "\" border=\"0\" />"));
$currate = ($thread['voteavg']*25 . px); $xml->add_tag('voteavg', process_replacement_vars("<table cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td align=\"right\" width=\"45%\" nowrap=\"nowrap\"><div><strong>$vbphrase[trate_currate]</strong></div></td><td align=\"left\" width=\"55%\" nowrap=\"nowrap\"><ul class=\"star-rating\" title=\"" . construct_phrase($vbphrase['thread_rating_x_votes_y_average'], $thread['votenum'], $thread['voteavg']) . "\"><li class=\"current-rating\" style=\"width:$currate;\"></li></td></tr></table>"));
if ($vbulletin->GPC['vote'] < 1 OR $vbulletin->GPC['vote'] > 5)
if ($vbulletin->GPC['vote'] < 1 OR $vbulletin->GPC['vote'] > 10)
var $max_vote = 5;
var $max_vote = 10;
Download Now
Screenshots
trbitdel.JPG (16.6 KB, 0 views) trset.JPG (89.6 KB, 0 views) trshow.JPG (16.2 KB, 0 views) tratevid.gif (337.2 KB, 0 views)
Show Your Support
.star-rating li a
background: url(../../images/rating/stars.png);