The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Start Up and more >> how to change max days from 14 to 31?
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1165852830

Message started by MBG on 12/11/06 at 17:00:30

Title: how to change max days from 14 to 31?
Post by MBG on 12/11/06 at 17:00:30

I need to change my auction so the maximum length of the auctions can be 31 days, not just 14.

I found at least one place that I believe refers to this, but I want to make absolutely sure I know each line of code that needs to be changed.

Thank you in advance.

:)

Title: Re: how to change max days from 14 to 31?
Post by Dieter Werner on 12/11/06 at 17:13:55

See: http://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1130037976/1#1

Title: Re: how to change max days from 14 to 31?
Post by MBG on 12/13/06 at 14:44:14

Thanks Dieter, I couldn't find anything via search.  :-X

Title: Re: how to change max days from 14 to 31?
Post by MBG on 12/14/06 at 20:03:43

Well what a shame. Changing from 14 to 31 days causes the entire program to crash!  

There must be another reference in the code that is being missed?

Title: Re: how to change max days from 14 to 31?
Post by MBG on 12/14/06 at 22:41:57

okay what about these lines of code which reference 14 day max?


Code:
print <<EO_HTML;    
           <tr bgcolor="$config{'colortablebody'}">
               <td valign="middle"><b>$txt{'Start-up'}:<br></b>
       <font size="1">($txt{'max. Days = 14'})</font></b>
     </td>
               <td valign="middle" nowrap>
                   <b>$txt{'Days'}&nbsp;</b><font size="1">($txt{'from now'})</font>&nbsp;
                   <input name="START_DAYS" type="TEXT" size="2" maxlength="2" value="$start_days">&nbsp;
                   <b>$txt{'Server-Time'}&nbsp;</b>
                   <input name="START_HOUR" type="TEXT" size="2" maxlength="2" value="$temp[2]">
                   <font size="4"><b>:</b></font>
                   <input name="START_MIN" type="TEXT" size="2" maxlength="2" value="$temp[1]">
                   <font size="4"><b>:</b></font>
                   <input name="START_SEC" type="TEXT" size="2" maxlength="2" value="$temp[0]">
               </td>
           </tr>
           <tr bgcolor="$config{'colortablebody'}">
               <td valign="middle"><b>$txt{'Deadline'}:<br></b>
      <font size="1">($txt{'max. Days = 14'})</b>

Title: Re: how to change max days from 14 to 31?
Post by Dieter Werner on 12/15/06 at 10:07:37

You have to change the content of $txt{...} too.

Title: Re: how to change max days from 14 to 31?
Post by MBG on 12/15/06 at 15:08:07

No, it does not work. Each time I change it in eAuction.pl, and upload, it gives a 500 error.

Here are the lines of code that I have changed.


Code:
print <<EO_HTML;    
           <tr bgcolor="$config{'colortablebody'}">
               <td valign="middle"><b>$txt{'Start-up'}:<br></b>
       <font size="1">($txt{'max. Days = 14'})</font></b>
     </td>
               <td valign="middle" nowrap>
                   <b>$txt{'Days'}&nbsp;</b><font size="1">($txt{'from now'})</font>&nbsp;
                   <input name="START_DAYS" type="TEXT" size="2" maxlength="2" value="$start_days">&nbsp;
                   <b>$txt{'Server-Time'}&nbsp;</b>
                   <input name="START_HOUR" type="TEXT" size="2" maxlength="2" value="$temp[2]">
                   <font size="4"><b>:</b></font>
                   <input name="START_MIN" type="TEXT" size="2" maxlength="2" value="$temp[1]">
                   <font size="4"><b>:</b></font>
                   <input name="START_SEC" type="TEXT" size="2" maxlength="2" value="$temp[0]">
               </td>
           </tr>
           <tr bgcolor="$config{'colortablebody'}">
               <td valign="middle"><b>$txt{'Deadline'}:<br></b>
      <font size="1">($txt{'max. Days = 14'})</b>


now looks like


Code:
print <<EO_HTML;    
           <tr bgcolor="$config{'colortablebody'}">
               <td valign="middle"><b>$txt{'Start-up'}:<br></b>
       <font size="1">($txt{'max. Days = 32'})</font></b>
     </td>
               <td valign="middle" nowrap>
                   <b>$txt{'Days'}&nbsp;</b><font size="1">($txt{'from now'})</font>&nbsp;
                   <input name="START_DAYS" type="TEXT" size="2" maxlength="2" value="$start_days">&nbsp;
                   <b>$txt{'Server-Time'}&nbsp;</b>
                   <input name="START_HOUR" type="TEXT" size="2" maxlength="2" value="$temp[2]">
                   <font size="4"><b>:</b></font>
                   <input name="START_MIN" type="TEXT" size="2" maxlength="2" value="$temp[1]">
                   <font size="4"><b>:</b></font>
                   <input name="START_SEC" type="TEXT" size="2" maxlength="2" value="$temp[0]">
               </td>
           </tr>
           <tr bgcolor="$config{'colortablebody'}">
               <td valign="middle"><b>$txt{'Deadline'}:<br></b>
      <font size="1">($txt{'max. Days = 32'})</b>


The next lines of code starts like this


Code:
   oops($txt{'You must enter the number of days your auction should run, from 1 to 14'})
   unless $form{'DAYS'} < 15;


and I changed it to read as follows


Code:
   oops($txt{'You must enter the number of days your auction should run, from 1 to 32'})
   unless $form{'DAYS'} < 33;



That is all for the eAuction. pl file.  Next, moving on to the eConfig161.pl file

this line of original code:


Code:
     'You must enter the number of days your auction should run, from 1 to 14' => ['Bitte geben Sie die Laufzeit Ihrer Auktion ein (1 bis 14 Tage)', ],



changed to look like



Code:
     'You must enter the number of days your auction should run, from 1 to 32' => ['Bitte geben Sie die Laufzeit Ihrer Auktion ein (1 bis 32 Tage)', ],



and the last bit of code I found to reference max time is this


Code:
     'max. Days = 14' => ['maximal 14 Tage', ],


which I changed and it now looks like this


Code:
     'max. Days = 32' => ['maximal 32 Tage', ],




and when I upload both files in ascii, I get a 500 error. both are chmoded as required.



Title: Re: how to change max days from 14 to 31?
Post by Dieter Werner on 12/15/06 at 15:44:52

The 500 error means: you did something wrong ...
Please, double check the changes you did.

Contact me via email if you want me to edit your script.

Title: Re: how to change max days from 14 to 31?
Post by MBG on 12/15/06 at 16:06:15

I did email you with no reply (yesterday).

I will email you again, and include the files.

thank you.

Title: Re: how to change max days from 14 to 31?
Post by Dieter Werner on 12/15/06 at 16:33:23

Sorry, but I don't give support by email.
Individual support and/or changes of the code has to be ordered and payed.

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