Gossamer Forum
Quote Reply
Rate as Image PROBLEMS
hi suddenly i've got a problem with my rate as image function:

i have a global called rate_img with the following code:






sub {
#Rating as Images
my $rec = shift;
my $image = shift;

if ($rec->{'Rating'} eq '10.00') { $image = 'stars5.gif'; }
elsif ($rec->{'Rating'} eq '0.00') { $image = 'stars0.gif'; }
elsif ($rec->{'Rating'} le '0.50') { $image = 'stars1.gif'; }
elsif ($rec->{'Rating'} le '2.50') { $image = 'stars1.gif'; }
elsif ($rec->{'Rating'} le '3.50') { $image = 'stars2.gif'; }
elsif ($rec->{'Rating'} le '4.50') { $image = 'stars2.gif'; }
elsif ($rec->{'Rating'} le '5.50') { $image = 'stars3.gif'; }
elsif ($rec->{'Rating'} le '6.50') { $image = 'stars3.gif'; }
elsif ($rec->{'Rating'} le '7.50') { $image = 'stars4.gif'; }
elsif ($rec->{'Rating'} le '8.50') { $image = 'stars4.gif'; }
elsif ($rec->{'Rating'} le '9.50') { $image = 'stars5.gif'; }
else { $image = 'stars5.gif'; }

return qq|<img src="$Links::CFG->{build_images_url}/$image" border="0" alt="Shop bewerten bei Shop-Netz der Shopping Suchmaschine" align="absmiddle">|;
}




and in my link.html-template i have <%rate_img%>

but since today all i get is the following output, depending on the rating of each link:

stars4

or

stars3

etc.

have a look at http://www.shop-netz.de

No images at all are displayed.

Does anyone knows what to do ?? (The images are in the correct folder)

Regards,
Manu

Shopping Portal Shop-Netz.de® | Partnerprogramme | Flugreisen & Billigflüge | KESTERMEDIA e.K. | European Affiliate Marketing Forum.

Last edited by:

ManuGermany: Sep 21, 2002, 8:35 AM
Quote Reply
Re: [ManuGermany] Rate as Image PROBLEMS In reply to
ok, i got it by myself!

see here if you are interested how:

http://www.gossamer-threads.com/...orum.cgi?post=113856

Regards,
Manu

Shopping Portal Shop-Netz.de® | Partnerprogramme | Flugreisen & Billigflüge | KESTERMEDIA e.K. | European Affiliate Marketing Forum.