Quote:
Originally Posted by trilOByte
What's that mod? I'd like to do that myself. 
|
Two steps: In the 'ratebit' template, change:
Code:
<br /><span class="smallfont">rated <b>$linkrate</b> star</span>
to:
Code:
<br /><span class="smallfont">rated: $linkrate</span>
Then, in the local_links.php file, find:
PHP Code:
if (isset($links_totrate[$linkid])) {
$linkrate = round($links_totrate[$linkid] / $links_numrate[$linkid]);
eval("\$linkratebit = \"".fetch_template('links_ratebit')."\";");
and change it to:
PHP Code:
if (isset($links_totrate[$linkid])) {
$lr = round($links_totrate[$linkid] / $links_numrate[$linkid]);
$linkrate = "";
$i = 0;
while ( $i < $lr ) {
$linkrate = $linkrate . '<img src="http://pebkac.trippy.org/forums/images/stars/level1.gif"> ';
$i++;
}
eval("\$linkratebit = \"".fetch_template('links_ratebit')."\";");
Obviously, use your own URL to the star image. This isn't fancy, but it works. Hope that helps...
- ZJ