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 2 3 4 
how to change max days from 14 to 31? (Read 391 times)
MBG
eAuction User
**
Offline

Perl is confusing.

Posts: 20

Gender: female
Re: how to change max days from 14 to 31?
Reply #6 - 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.


Back to top
 
 


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

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: how to change max days from 14 to 31?
Reply #7 - 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.
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
MBG
eAuction User
**
Offline

Perl is confusing.

Posts: 20

Gender: female
Re: how to change max days from 14 to 31?
Reply #8 - 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.
Back to top
 
 


Advertising
View Profile   IP Logged
Pages: 1 2 3 4 


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