eAuction
  Not just another Perl script
Google
Welcome, Guest. Please Login or Register


If you use eAuction a lot and like it or if you make money from eAuction or from eAuction-related activities ...
then the project asks you for a donation in favor of the further development.



The forums are protected by
AccessControl
(written by Dieter Werner)
Click here if you want to check your IP against the most important RBLs of the net.
Click here in order to visite the AccessControl forums.


<< Visit the international e Auction Marketplace >>
Buy and sell PC and Consumer Electronic components






  HomeHelpSearchLoginRegister
 



Pages: 1 2 3 4 5 
Feedback Rating and Icons (Read 763 times)
www.blitzday.com
eAuction User
**
Offline

I love the script
and hate it if it
does not work

Posts: 60

Re: Feedback Rating and Icons
Reply #9 - 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&nbsp&nbsp&nbsp</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.
     
Back to top
 
 


Advertising
View Profile   IP Logged
Dieter Werner
Administrator
*****
Online

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: Feedback Rating and Icons
Reply #10 - 08/24/04 at 14:01:38
 
Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!
  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|&nbsp;&nbsp;&nbsp|;

and this one
$rat ed

must be
$rated
Back to top
 
 

Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


Greetings from Germany
Dieter Werner




Advertising
View Profile | WWW   IP Logged
www.blitzday.com
eAuction User
**
Offline

I love the script
and hate it if it
does not work

Posts: 60

Re: Feedback Rating and Icons
Reply #11 - 08/24/04 at 15:32:17
 
thank you, looks very good, but now the number has the nasty line under it which i hate. So just use the text decoration : none command in html to get rid of that. But thank you again for keeping the format right..
Back to top
 
 


Advertising
View Profile   IP Logged
Pages: 1 2 3 4 5 


If you like eAuction, please Rate it.
If you don't like eAuction, please Rate it too.


1 is being poor and 10 is being excellent


EveryScript

ip-location


AccessControl - Members Only