Anyway to add the star rating to the top.php? It would be nice to show the start rating in the top 10s. Ive tried everything but cant get it to work. little help?
Carl
from the original MOD find: $register_array['image_rating_number_'.$i] = "<b>".$top_list[$i]['image_rating']."</b> (".$top_list[$i]['image_votes']." ".$lang['votes'].")";
replace with: $register_array['image_rating_number_'.$i] = "<b><img src=\"".TEMPLATE_PATH."/images/".floor($top_list[$i]['image_rating']).".gif\">"."</b> (".$top_list[$i]['image_votes']." ".$lang['votes'].")";
This is all well and fine, but it just doesn't work.
What is it exactly you've done here? In my top.html i have:
{image_rating_1}
{image_rating_2}
{image_rating_3}
{image_rating_4}
{image_rating_5}
{image_rating_6}
{image_rating_7}
{image_rating_8}
{image_rating_9}
{image_rating_10}
Now, by placing the "star-rating" code next to those "ranking-varibles" how will it know which is which?
Let me demonstrate:
<table>
<tr>
<td>{image_rating_1}</td>
<td>img src="templates/site/images/{rating_pic}"></td>
</tr>
</table>
How can it know whether {rating_pic} refers to {image_rating_1}, {image_rating_2} or any of the others?