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 8
Information Exchange (Read 3699 times)
mars
eAuction Expert
Tester
***
Offline

I love Perl

Posts: 149

Re: Information Exchange
Reply #12 - 08/01/05 at 18:16:54
 
Dieter,
I kept on trying and realized that where I was inserting the $location variable was disrupting the time related variables and causing the auctions to suddenly close.

So I changed:
(
  $title,
  $reserve,
  $inc,
  $desc,
 $location,
  $image,
  $start_time,
  $close_time,
  $clicks,
  @bids
   ) = @{read_item_file($form{'category'}, $form{'item'})};

To:
(
  $title,
  $reserve,
  $inc,
  $desc,
  $image,
  $start_time,
  $close_time,
 $location,
  $clicks,
  @bids
   ) = @{read_item_file($form{'category'}, $form{'item'})};

Now The location value is being posted on the New Item form and the auction time seems to be running as it should but the bidding is funny-it seems the the program thinks the user who posted the item is also bidding on it via the Bid-Agent and always appears as the high bidder.

I will keep trying.

mars/mars22



Back to top
 
 


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

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: Information Exchange
Reply #13 - 08/02/05 at 16:24:03
 
Step 7:
   goto 'sub disp_item' and add
   my $location;
   to the header
               
   - search 'sub disp_item' for every instance of Code:
    (
       $title,
       $reserve,
       $inc,
       $desc,
       $image,
       $start_time,
       $close_time,
       $clicks,
       @bids
   )  


               
   - replace it with Code:
    (
       $title,
       $reserve,
       $inc,
       $desc,
       $image,
       $start_time,
       $close_time,
       $location,
       $clicks,
       @bids
   )  



Step 8:
  - search 'sub disp_item' for Code:
print <<EO_HTML;
<div align="center">
<h4>$title</h4> 



   -add Code:
                                <tr>
                                   <td bgcolor="$config{'colortablehead'}" nowrap><b>$txt{'Location'}: </b></td>
                                   <td bgcolor="$config{'colortablebody'}" width="300" nowrap><b>$location</b></td>
                               </tr> 


    where you need it.
                   
Will be continued ...
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
mars
eAuction Expert
Tester
***
Offline

I love Perl

Posts: 149

Re: Information Exchange
Reply #14 - 08/02/05 at 19:07:22
 
Dieter,

Thank you once again.  Steps 7 and 8 are done.
You probably are aware that what is happening now is that the user who posts an item is recognized as the highest bidder. After I posted a test item I had a different user bid for it. Their bid was immediately surpassed by the user who originally made the posting so it appears as if the posted pricing information is also being used like the bid-agent would be for the person who posted. I presume this will be eliminated when another sub routine is modified. I will begin to look for which sub routine that might be.

On the learning side of this tutorial you are kindly walking me through-, I am not sure why the $location variable is being inserted multiple times in adifferent subroutines' header. Wouldn't getting it into the Item file be enough for the other sub routines to reference when the $form{'LOCATION'} is referenced or called?

Regards,

mars/mars22
Back to top
 
 


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


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