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 ... 3 4 5 6 7 ... 9
more field (Read 1730 times)
bookswap
eAuction User
**
Offline

I love Perl

Posts: 40

Re: more field
Reply #12 - 03/11/04 at 00:42:23
 
Got it to work but now the "top items" doesn't display anything, and when I click on the item in "more top items" it says its already closed.  And under the "high bid" column in "more top items" it says something weird. Any ideas?

Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!
Back to top
 
« Last Edit: 03/11/04 at 10:39:29 by Dieter Werner »  


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

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: more field
Reply #13 - 03/11/04 at 10:35:37
 
In addition to your changes and/or as an replacement of your changes ...
do this:

sub proc_test
delete all instances of $isbn

    for (1 .. 50) {
          $form{'TITLE'} = 'Test Item';
          $form{'ISBN'} = '0123456789';
          $form{'DESC'} = 'Test Description';
          $form{'TITLE'} .= " $_";
          $form{'DESC'} .= " $_";
          $close_time = (time + 120 + ($_ * 60));
          #$close_time = (time + (86400 * 60) + ($_ * 60)); # Author's line
     
         $item_number = write_item_file(1,
               $form{'CATEGORY'},
               $form{'TITLE'},
               $form{'ISBN'},
               $form{'RESERVE'},
               $form{'INC'},
               $form{'DESC'},
               $form{'IMAGE0'},
               $start_time,
               $close_time,
               $clicks,
               $seller_data
          );

################################
sub disp_list
  'isbn'  => q|$isbn eq $form{'searchstring'}|,

################################
sub disp_user_auction

   my (
        $query, $sub, $href, $alias, $password, $item, $cat, $title, $reserve, $image,
        $close_time, $high_bid, $bidder, $action, $img_info, $row, $rowcolor, $tbl_val,
        $record, $seller, $alias_to_rate, $isbn,
        @firstbid, @lastbid, @closetime, @bids, @ratings, @record
   );

   
 (
     $title,
     $isbn,
     $reserve,
     undef,
     undef,
     $image,
     undef,
     $close_time,
     undef,
     @bids
 ) = @{$sub->($cat, $item)};

################################
sub get_random_data

   my (
        $item, $title, $image, $start_time,
        $close_time, $the_bid, @bids
   );


  (
     $title,
     undef,
     undef,
     undef,
     undef,
     $image,
     $start_time,
     $close_time,
     undef,
     @bids
  ) = @{read_item_file($cat, $item)};

################################
sub get_table_val

   my (
      $close_time, $image, $img_info, $title, $bids, $bid, $cat,
      $item, $row, $rowcolor, $tbl_val, $the_bid, $date, $time
   );

   
    (
       $close_time,
       $image,
       $title,
       $bids,
       $bid,
       $cat,
       $item
    ) = split /\[\]/, $_;

################################

Btw:
it's a pain to search a script for code-mistakes done by others. :'(
Keep in mind ...
you are using this script free of any charge!
So it would be nice if you could ask your questions in a more polite way. Kiss
No hard feelings - Just my very private opinion ...
Back to top
 
« Last Edit: 03/11/04 at 13:32:28 by Dieter Werner »  

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
bookswap
eAuction User
**
Offline

I love Perl

Posts: 40

Re: more field
Reply #14 - 03/13/04 at 00:15:12
 
You Rock!! Grin  Now the only problem i have is when i click on "My-auciton center" and try to view "my sold items."  This gives me an error .....

"Modification of non-creatable array value attempted, subscript -1 at eAuction.pl line 2800. "

Everything elso seems to work fine.  Is this error due to a problem with closing the auction on the item?

You have been a great help to me.  Thanks!


Grin Grin Grin
Back to top
 
 


Advertising
View Profile   IP Logged
Pages: 1 ... 3 4 5 6 7 ... 9


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