Gossamer Forum
Home : Products : Links 2.0 : Customization :

review image

Quote Reply
review image
Ok...I was getting off topic on your other post Eliot, so I'll just make a new one. I was actually wondering if the system uses like half a star for a rating of 5.5 or something like that? If not how many stars would a site with a rating of 5.5 get---5 or 6? If so, would I name half a star rate05.gif?? Or maybe the review system only uses numbers without decimals...I haven't been able to tell yet! Thanks.

Quote Reply
Re: review image In reply to
If you are talking about the alt tag...it is taken care of in the following sub:

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;
}


Notice the bolded codes...

Now...the Ratings are compiled the same way they are with the regular sub build_update_ratings. The difference is that the LinkIDs in the review.db are used to compile the percentage of the Ratings, which are updated in the links.db rather than the Votes field with the old rating system.

Regards,

Eliot Lee
Quote Reply
Re: review image In reply to
Ok...that's good to know. But I was actually more concerned with the display of the images/stars....no big deal, I'll just rate one until it has a rating with a decimal and see what image/star will appear next to it. Thanks though, I appreciate it.

Quote Reply
Re: review image In reply to
You're welcome.

The short of it...the images will appear the same as they do with the old rating system.

Wink

Regards,

Eliot Lee
Quote Reply
Re: review image In reply to
Ok...that's where I was getting confused, I haven't been using images for the rating system previously....I was just using numbers. A site can have a rating of 1-10, right? Ok, so how many images do I need to have? I read somewhere that I need 20 images---but here is what I don't get. To keep things easy...I'm using stars and I'm going to assume rate1.gif should obviously be an image of one star, but what would rate2.gif be? An image of half a star, one and a half stars, or two stars?? I know this can't be that difficult, but for the life of me the numbers just don't match in my head. :~! Thanks.

Quote Reply
Re: review image In reply to
Why don't you just download the images for the Ratings found in many Threads in this forum and also in the Resource Center?!?!?

Regards,

Eliot Lee
Quote Reply
Re: review image In reply to
Well, I knew this wasn't brain surgery, I just couldn't find any images....so I made my own and wanted to know what to save them as. Anyway, now that I know some are floating around here, I'll go find em. Thanks again.

Quote Reply
Re: review image In reply to
You're welcome.

Regards,

Eliot Lee
Quote Reply
Re: review image In reply to
Ok....if anyone else needs to find this here you go:

http://www.asan.com/...nix/mod-ratings.html