Multimedia file viewing and clickable links are available for registered members only!! You need to or !!
wrote on 08/24/04 at 00:31:37:Ok, the solution:
I am not a programmer and there might be better options, but this works for me at this stage.
What do you get:
In the display where you see the feedback number you get to see the name of the person (links directly to email address, have to figure out how to hide this or how to access it after you fill in your password and login name, but that is another story) followed by the number of feedback points (with no ugly line under this number) followed by a star image or what ever you prefer.
What to do:
Find:
#-#############################################
# Sub: Display Item
# This displays an item, its description, and its bids.
# Contributed by: Dieter Werner
#-#############################################
Find in this Sub:
-e "$config{'rating_dir'}/$alias.dat"
? ($rated = (count_rating($alias))[4])
: ($rated = 0);
Enter the following right under this piece of code:
my %fb_icon = (
'1star' => [1, 15],
'2star' => [15, 50],
'3star' => [51, 100],
'4star' => [101, 250],
'5star' => [251, 5000],
);
foreach (keys %fb_icon) {
($rated > $fb_icon{$_}->[0] and $rated < $fb_icon{$_}->[1])
? do {
$rated = qq|<font size="2"><b><span style="text-decoration: none">$rated </b></font></span><img src="$config{'icon_url'}/$_.gif" border='no'>|;
last;
That should be it, now you can see an Ebay style feedback numer and image. Use for the 1star, 2 star, 3 star etc. your own drawn pictures and use the name you gave them. Save them with extension in the img directory of your auction setup and name them .gif!!
Now change the 1 star etc. in your pictures name without the extention.
For more help, mail me. auction@blitzday.com, I am open for improvements on this coding.
Small correction:
Code:my %fb_icon = (
'1star' => [1, 15],
'2star' => [15, 50],
'3star' => [51, 100],
'4star' => [101, 250],
'5star' => [251, 5000],
);
my $rating_pic = qq| |;
foreach (keys %fb_icon) {
($rated > $fb_icon{$_}->[0] and $rated < $fb_icon{$_}->[1])
? do {
$rating_pic .= qq|<img src="$config{'icon_url'}/$_.gif" border="0">|;
last;
}
: ($rating_pic = "");
}
Scroll down to the line:
Code:<a href="$ENV&;anch=123;'SCRIPT_NAME'}?action=disprating&dispuser=$alias"><u><b>($rated)</b></u></font></a>
and replace it with this line:
Code:<a href="$ENV{'SCRIPT_NAME'}?action=disprating&dispuser=$alias"><u><b>($rated)</b></u></font>$rating_pic</a>
Edit: this forum software is driving me crazy ...
this one
my $rating_pic = qq| |;
must be
my $rating_pic = qq|  |;
and this one
$rat ed
must be
$rated