The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl eAuction 1.6.1.x >> Start Up and more >> Information Exchange https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1122675859 Message started by mars22 on 07/30/05 at 00:24:18 |
Title: Information Exchange Post by mars22 on 07/30/05 at 00:24:18 Has anyone sucessfully added a field to the "Post A New Item" form? I was able to add a few feilds to the registration form (with help from Dieter) but have failed following whatever threads exist on this forum with the New Item form. If anyone has sucessfully added a filed to the "Post A New Item" and is willing to share it and help others it would be appreciated and reciprocated if possible. Regards, mars/mars22 |
Title: Re: Information Exchange Post by Dieter Werner on 07/30/05 at 12:47:31 Do you ask me? ;) |
Title: Re: Information Exchange Post by mars22 on 07/30/05 at 23:22:40 Dieter, The message I posted was not directed to you. I saw a an earlier thread that involved bookswap, floinfo and you that addressed this topic. Based on an answer you gave to floinfo when she requested help on the same topic I did not want to bother you: floinfo « Reply #24 on: Jul 26th, 2004, 7:07am » Quote Modify ------------------------------------------------------------------------ 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, Dieter Werner Re: more field « Reply #25 on: Jul 26th, 2004, 1:01pm » Quote Modify ------------------------------------------------------------------------ I think it can't be explained in a better way ... I was hoping one of this BBS' users had accomplished the field addition and would be willing to share how they did it. I have made some headway but have not been able to "mount the horse" yet. If you would be willing to help and have the time that would be great, if not I understand because you just about single handedly help the users on the BBS. Regards, mars/mars22 |
Title: Re: Information Exchange Post by Dieter Werner on 07/31/05 at 15:08:51 OK - let's try to solve it step-by-step ... Quote:
|
Title: Re: Information Exchange Post by mars22 on 07/31/05 at 17:51:49 Dieter, Thank you very much for offering to help. My ultimate goal would be to be able to add text fields, radio button fields, checkbox fields and select menu fields to the new item form, eventually (phase 2) adding one or two of them to the search function and the Search select menu. I feel that goal could be accomplished by sucessfully adding a simple text field to the form and after that I could "template" the required coding for additional field additions. I tried last week to add a text field named location to the new item form but only had partial success. The reason or the why as to why I would need the additional fields is to allow non-tech oriented users, like rental apartment landlords to directly enter their rental properties features. Legally, in the US and the state where I reside it makes all the difference who enters or posts the rental property information. Hope I have answered you 2 questions. Regards, mars/mars22 |
Title: Re: Information Exchange Post by Dieter Werner on 07/31/05 at 20:56:51 Step 1: goto 'sub new' and add my $location; to the header of 'sub new' Step 2: - search 'sub new' for 'print <<EO_HTML;' - add Code:
where you need it. Step 3: - search 'sub new' for each instance of: ( $title, $reserve, $inc, $desc, $image, $start_time, $close_time, undef, @bids - replace it with Code:
Will be continued ... |
Title: Re: Information Exchange Post by mars22 on 07/31/05 at 21:31:07 Dieter, OK, Step 1, Step 2 and Step 3 are finished and the "New Item" form now displays a Location text field right where I placed it, under the Description textarea box. Thank you. mars/mars22 |
Title: Re: Information Exchange Post by Dieter Werner on 08/01/05 at 11:25:07 Step 4: - search eAuction.pl for 'sub check_item_data' - paste this Code:
Step 5: - search eAuction.pl for 'sub proc_new' - replace this Code:
- with this Code:
Step 6: - search 'sub proc_new' for Code:
- add Code:
where you need it. Will be continued ... |
Title: Re: Information Exchange Post by mars on 08/01/05 at 14:22:08 Dieter, Steps 4,5 and 6 have been added. I ran a test and found that the location information I enter into the location box on the New Item form is posted in the preview screen. However, when I posted the item I got the following problem in the Information Table Views: This item has been displayed [b[BOSTOO[/b]times and each time I reload the screen the last letter advances (now reads BOSTOR. Regards, mars/mars22 |
Title: Re: Information Exchange Post by Dieter Werner on 08/01/05 at 15:18:46 Yes - that's because we haven't walked through 'sub disp_item' (and others). Remember: we will do it step-by-step But ... become creative. I think you know the next steps. ;) |
Title: Re: Information Exchange Post by mars on 08/01/05 at 17:35:05 Dieter, I have tried to crack 'sub disp_item' I started by adding $location here: my ( $title, $reserve, $inc, $desc, $image, $close_time, $start_time, $Username, $email, $bid, $what_bid, $time, $last_bid, $high_bid, $last_time, $img_info, $reserve_info, $lowest_new_bid, $message, $html_description, $location, $aftermin, $clicks, $row, $rowcolor, $itm_record, $rated, $buy_it, @nowtime, @closetime, @bids, @image ); And also changed: ( $title, $reserve, $inc, $desc, $image, $start_time, $close_time, $clicks, @bids ) = @{read_item_file($form{'category'}, $form{'item'})}; to: ( $title, $reserve, $inc, $desc, $location, $image, $start_time, $close_time, $clicks, @bids ) = @{read_item_file($form{'category'}, $form{'item'})}; and finally inserted: <tr> <td bgcolor="$config{'colortablehead'}" nowrap><b>$txt{'Location'}</b></td> <td bgcolor="$config{'colortablebody'}" nowrap><b>$location</b></td> </tr> into the section of code that starts with: print <<EO_HTML; <div align="center"> <h4>$title</h4> But all it did was insert the word Location into the table without any value and also closing the auction early, ect. I will keep trying but this is where I ran into problems when I initially tackled this problem. Regards, mars/mars22 |
Title: Re: Information Exchange Post by Dieter Werner on 08/01/05 at 18:16:44 Code:
Compare it with the content of the item file. You have to read from a file in the same order in which you have written to the file. |
Title: Re: Information Exchange Post by mars on 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 |
Title: Re: Information Exchange Post by Dieter Werner on 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:
- replace it with Code:
Step 8: - search 'sub disp_item' for Code:
-add Code:
where you need it. Will be continued ... |
Title: Re: Information Exchange Post by mars on 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 |
Title: Re: Information Exchange Post by mars on 08/02/05 at 19:27:14 Dieter, I think I resolved the quirky bidding issue I mentioned in my previous posting. I posted a new test item, bid against it and all seems normal. Below are the changes I made in sub proc_bid. I know more sub routines need to be modified but not sure which ones remain so I will wait for your next steps. Regards, mars/mars22 ----------------------------------------------- I went to 'sub proc_bid' and added my $location; to the header of 'sub proc_bid' I then: - searched 'sub proc_bid' for every instance of Code: ( $title, $reserve, $inc, $desc, $image, $start_time, $close_time, $clicks, @bids ) = @item; And replaced it with Code: ( $title, $reserve, $inc, $desc, $image, $start_time, $close_time, $location, $clicks, @bids ) = @item; |
Title: Re: Information Exchange Post by Dieter Werner on 08/02/05 at 20:40:54 Yes - that's OK :) Now you have to check the content of 'sub disp_list' |
Title: Re: Information Exchange Post by mars on 08/02/05 at 21:06:25 Dieter, I have done the following in sub disp_list Changed the header from: sub disp_list { my $itm_cnt = 0; my $line_cnt = 0; my $page_cnt = 0; my $found = 0; my $dest = undef; my $ret_val = 1; my @allfiles = (); TO:: sub disp_list { my $itm_cnt = 0; my $line_cnt = 0; my $page_cnt = 0; my $found = 0; my $dest = undef; my $ret_val = 1; my @allfiles = (); my $location; And I changed:: ( $title, $reserve, $inc, $desc, $image, $start_time, $close_time, undef, @bids ) = @{read_item_file($cat, $item)}; TO:: ( $title, $reserve, $inc, $desc, $image, $start_time, $close_time, $location, undef, @bids ) = @{read_item_file($cat, $ite[red]m)}; I am not clear on what this sub rountine is supposed to do, but I uploaded the file with these modifications and it seems fine. Have I missed anything that needs attention in sub disp_list? The bidding is acting funny again. In the "more TOP Items" all of the test Items I posted indicate they each have at least One bid made when they actually have none. Also, if I place a bid that equals the buy-it-now price, the bid shows in the bid history table and the Information table displays the correct number of bids (1) but the "more TOP Items" table shows 2 bids having been placed. I still cannot bring up any files in "My Auction-Center" yet. I guess that will be addressed with modifications to disp_closed_item somehow. Regards, mars/mars22 |
Title: Re: Information Exchange Post by mars on 08/05/05 at 12:36:16 Dieter, After spending at least 6 totally unsuccessful hours of trying to move forward and make progress I can't find a way and am stuck at sub disp_list. Any further of your voluntary guidance would be appreciated. Regards, mars/mars22 |
Title: Re: Information Exchange Post by Dieter Werner on 08/05/05 at 15:22:52 OK - I will try to continue it tomorrow ... I think we will get a real tutorial ;) |
Title: Re: Information Exchange Post by mars on 08/05/05 at 17:15:59 Dieter, Thank you for your continued professional interest. If you think there is anything that I can do to help please let me know and I will be glad to do so. Regards, mars/mars22 |
Title: Re: Information Exchange Post by Dieter Werner on 08/07/05 at 14:26:01 I have got a flu. Cough, cold, fever ... arrrrgh |
Title: Re: Information Exchange Post by mars22 on 08/07/05 at 20:34:58 If I were an MD and licensed to prescribe in Germany I could possibly help. But since I am not, let me qualify my offer to help to be specific to your mentioned tutorial. To your speedy recovery. mars/mars22 |
Title: Re: Information Exchange Post by Dieter Werner on 08/14/05 at 18:09:30 I'm feeling much better now, but I have to interrupt the tutorial because of this Chappy. I think I 'banned' him by using a combination of .htacces and additional forum code - but 'banning a user' is a hard business. - the banned user can use different proxy servers - the banned user can use different FreeMail-Accounts and so on ... Let's see what will happen ... ;) |
The eAuction Support Forums » Powered by YaBB 2.2! YaBB © 2000-2007. All Rights Reserved. |