Widgetz wrote a much nicer Mod that uses less codes and produces the same results. I tried searching the forum for the codes, but could not find them, so I will re-post them here:
1) Add this new sub to the bottom of your
site_html.pl file:
Code:
sub get_rating_image {
#-----------------------------------------------------
my ($rating) = @_;
my ($i, $image);
for ($i = 0; $i <= 20; $i++) {
$image = qq~<img src="$rating_images_url/rate$i.gif" alt="$rating" border="0">~ and last if ($rating <= $i/2);
}
return $image | | $rating;
}
2) Add the following codes in your
sub site_html_link routine in the
site_html.pl file:
Code:
$rate_img = &get_rating_image($rec{'Rating'});
at the top of the sub.
3) Add the following codes in the HTML section of the
sub site_html_link:
4) Add the following variable definition in your links.cfg file:
Code:
$rating_images_url = "http://www.yourdomain.com/images/";
5) Upload 20 ratings graphics to your images directory, like the following:
rate0.gif
rate1.gif
rate2.gif
rate3.gif
etc.
Regards,
------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
[This message has been edited by AnthroRules (edited February 26, 2000).]