The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Start Up and more >> more field
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1070819390

Message started by floinfo on 12/07/03 at 18:49:50

Title: more field
Post by floinfo on 12/07/03 at 18:49:50

Hello,

I'd like to ad more "fields" in the EA script.
I mean, on the "Post a new item" page after the "Description" field, I'd like to ad some new fields (boxes, radio buttons, checkboxes...)

How can I do that?

I  think, I have to modify the "sub new", "Sub Procnew" and "Sub Dispitem" or do you have any ideas...

Thanks,  ???

Title: Re: more field
Post by Forum Admin on 12/07/03 at 18:57:02

You are right ...
and you have to add the fields to the sub disp_closed_item too

Title: Re: more field
Post by Forum Admin on 12/07/03 at 19:06:07

Let me know which fields you are missing and I will try to add them into the next version

Feedback is the life of a program :)

Title: Re: more field
Post by floinfo on 12/07/03 at 22:54:35

Hi,

You know what would be very cool? If on the "post a new item" page would be a "costumize your auction" button. So, everybody could change the "fields" (how many and what type of)

For example, on a car-auction site or a realestate-auction site... I would use a couple more checkboxes...
The sellers use the same questions for input... and the buyer could easier compare if he can see the answers for same question...


Here is a part of sample html, full of forms, which would be after the "description" .

Could you show me a correct cgi coding with only one "ad new field" . So, I can follow that and ad more...

It would be a very big help,
Thanks, Franco  ;)


Title: Re: more field
Post by Forum Admin on 12/08/03 at 14:16:42


Quote:
You know what would be very cool? If on the "post a new item" page would be a "costumize your auction" button. So, everybody could change the "fields" (how many and what type of)


That's not possible because the structure of data must be the same in each item-file that has been stored.

Title: Re: more field
Post by floinfo on 12/09/03 at 02:17:11

Here I am, again  ;)

Sorry to hear that the "costumize" idea not working.  :'(

Maybe, you think I am a stu...pid guy, but I have lots of "stupid" ideas...  8)

Here is an other one:
The more-pictures-upload option is very good point!
What about if we able to upload a small "movie" file too. You know, after the pictures...
Show the item, like a "virtual tour" - for car, house, boat, computer... etc. auction it would be great!

Is it possible?  ???

Title: Re: more field
Post by Forum Admin on 12/09/03 at 12:16:57

Sorry ...
but it isn't possible because it isn't possible to upload the movie. :'(

Title: Re: more field
Post by bookswap on 03/10/04 at 04:42:01

I would like to add an ISBN field to the script.  ISBN being the 10 digit number on the back of a book.  I would like to be searchable also.  I can't seem to get it to work though.  Please check out my error and tell what is going wrong.  click on my test item to see the error I get.
http://buckeyetrade.netfirms.com

Title: Re: more field
Post by Forum Admin on 03/10/04 at 15:10:34

Search eAuction.pl for each instance of:
read_item_file
and add $isbn there.

Search eAuction.pl for each instance of:
write_item_file
and add $isbn there.

Search eAuction.pl for
sub disp_list
and add an related querry-string there.

Search eConfig161.pl for
sub disp_header
and add an related option-tag there.

Title: Re: more field
Post by bookswap on 03/10/04 at 17:19:50

I'm not sure where to add it? ???  I added it here...but where else?

   my (
       $title, $isbn, $desc, $start_time, $close_time, $alias, $addr1, $addr2, $addr3,
       $phone, $fax, $email, $password, $cat, $key, $img_info,
       @image
   );

Title: Re: more field
Post by bookswap on 03/10/04 at 17:56:10

now i get a blank page. :-[

Title: Re: more field
Post by Forum Admin on 03/10/04 at 19:41:44

You have to have a 'little' knowledge of programming Perl  ;)

Title: Re: more field
Post by bookswap on 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?

http://buckeyetrade.netfirms.com

Title: Re: more field
Post by Forum Admin on 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. :-*
No hard feelings - Just my very private opinion ...

Title: Re: more field
Post by bookswap on 03/13/04 at 00:15:12

You Rock!! ;D  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!


;D ;D ;D

Title: Re: more field
Post by Forum Admin on 03/13/04 at 23:50:50

Because you have inserted an additional field the (old) data of the closed auctions are no longer compatibly to the data the script requests now.

Title: Re: more field
Post by bookswap on 03/15/04 at 03:18:56

How do I fix this? ???

Title: Re: more field
Post by Forum Admin on 03/15/04 at 13:45:31

Simply delete the 'old' item-files ...

or write a small script containing the following methods:
- open 'item-file'
- read 'item-file' into an array
- close  'item-file'
- add the 'new' field (as an empty string) to the array (take care of the right position)
- open 'item-file'
- write the array-data to the file
- close  'item-file'




Title: Re: more field
Post by bookswap on 03/16/04 at 05:27:13

I just deleted all old closed auctions as you said.....and BAM! it worked!!!  Dieter is the King!  Many thanks for the amazing support.   :D

Can't wait until EA162 is released.

Title: Re: more field
Post by reindance on 03/29/04 at 14:45:42

I am trying to add two features of the new version but not sure where to add them. I tried going by the Add On Database for 1.53 but can't find the lines in this version.
I want to add an "Email Admin of New Item Posting" and also an "Email Seller Confirmation of Item Posting".
We are about to allow outside postings and I want to check out all outside postings to make sure people are abiding by our posting policy. A confirmation is nice for the seller to have as a reference.
 Also, will the old EAccount software work if I insert the correct Require statement, at least until the New version of EAccount is completed? I have it installed already and thought I would give it a try. I need some way to keep track of postings and ended sales.
  Do you have a time frame for the completed Accounting add on? Just curious. Keep up the great work!
 You may view our site, still under construction! At:
   http://www.reindancetack.com/cgi-bin/eAuction161/eAuction.pl



 

Title: Re: more field
Post by Forum Admin on 03/30/04 at 12:11:18

Search eAuction.pl for:
sub proc_new

Search 'sub proc_new' for the lines:
print <<EO_HTML;
<div align="center">
<p> </p>
<b>$form{'TITLE'}</b><br>$txt{'was posted under'}:<br>
<b>$category{$form{'CATEGORY']</b><br><br>
$txt{'You may want to go to'}
<a href="$our_env{'SCRIPT_NAME'}?action=dispitem&category=$form{'CATEGORY'}&item=$item_number&lang=$form{'lang'}">
<b><u>$txt{'the Item'}</u></b></a> $txt{'to confirm placement'}
<p> </p>
@{[disp_banner('tbl')]}
</div>
<br>
EO_HTML

insert the following code (below the lines)


Code:

my $message = <<EO_HTML;
$form{'TITLE'}
$txt{'was posted under'}:
$category{$form{'CATEGORY']
$txt{'You may want to go to'}
<a href="$our_env{'SCRIPT_NAME'}?action=dispitem&category=$form{'CATEGORY'}&item=$item_number&lang=$form{'lang'}">
$txt{'the Item'}</a>
$txt{'to confirm placement'}
EO_HTML

my $subject = 'Your item has been placed';
           
   sendemail(
       \$form{'EMAIL'},
       \$config{'admin_address'},
       \$subject,
       \$message
   );

$subject = 'Admin notification';

   sendemail(
       \$config{'admin_address'},
       \$config{'admin_address'},
       \$subject,
       \$message
   ) if $config{'cc_to_admin'} == 1;


I don't know whether a third party accounting script is usable with eAuction - Sorry.

Title: Re: more field
Post by reindance on 03/30/04 at 13:34:08

:D
Thank You, Thank You! You are the best!

Title: Re: more field
Post by Forum Admin on 03/30/04 at 13:58:54

This is a better one ...


Code:

my $message = <<EO_MAIL;
$form{'TITLE'}
$txt{'was posted under'}:
$category{$form{'CATEGORY']
$txt{'You may want to go to'}
http://$our_env{'SCRIPT_NAME'}?action=dispitem&category=$form{'CATEGORY'} &item=$item_number&lang=$form{'lang'}
$txt{'the Item'}
$txt{'to confirm placement'}
EO_MAIL


Title: Re: more field
Post by reindance on 03/30/04 at 14:16:31

:D
 Thank You! I'll give this one a go!
I think i will just wait for the Accounting add on to be completed. The old 3rd party version I have wroks, but has a lot of kinks in it. A lot has to be done manually, and the plug ins don't work properly. Not really worth the hassle. Let us know when you have completed the new one, can't wait to check it out! Keep up the awesome work!

Title: Re: more field
Post by floinfo on 07/26/04 at 07:07:15

Hello Bookswap and Dieter,

I am very interested how to add more fields (4-5) and I tried to follow all your postings... I'm glad, finally BookSwap did it! I can see on your auction site (Post a new Item Page). Great!

Would you post a detailed step by step info, how to do that (like I said, I tried to use info from your postings, but I'm lost and screw up my script)
I think many of us will use that info, because everyone is trying to costumize a little bit.

Thanks,


Title: Re: more field
Post by Forum Admin on 07/26/04 at 13:01:03

I think it can't be explained in a better way ...  :'(

The eAuction Support Forums » Powered by YaBB 2.2!
YaBB © 2000-2007. All Rights Reserved.