PHP and mysql
Alright that's a great place to start. I have only found one file with this information but it's the easiest to find. When I take the code lines out it still says you have to enter that information to proceed but the fields are no longer there as you mentions the database is still looking for that info, or at least something is. so I have to somehow stop the script from making sure that information is included.
I have a little knowledge when coding php as I have played with phpbb forums a lot and even created my one pre modded board. The only thing is I never written php and I really have no clue how to do this.
So lets look at the template_register_php
here's the code that I would like removed. I have removed this code with no page errors but like I said the database still wants the information
Code:
<TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
<?print $std_font.$MSG_252;?>
</B> </TD>
<TD WIDTH="60%"><INPUT TYPE=text NAME=TPL_birthdate SIZE=10 MAXLENGTH=10 VALUE="<? echo $TPL_birthdate; ?>">
<?
if($SETTINGS[datesformat] == "USA") {
print $std_font.$MSG_382;
} else {
print $std_font.$MSG_383;
}
?>
</TD>
</TR>
<TR>
<TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
<?print $std_font.$MSG_009;?>
</B> </TD>
<TD WIDTH="60%"><INPUT TYPE=text NAME=TPL_address SIZE=40 MAXLENGTH=255 VALUE="<? echo $TPL_address; ?>">
</TD>
</TR>
<TR>
<TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
<?print $std_font.$MSG_010;?>
</B> </TD>
<TD WIDTH="60%"><INPUT TYPE=text NAME=TPL_city SIZE=25 MAXLENGTH=25 VALUE="<? echo $TPL_city; ?>">
</TD>
</TR>
<TR>
<TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
<?print $std_font.$MSG_011;?>
</B> </TD>
<TD WIDTH="60%"><INPUT TYPE=text NAME=TPL_prov SIZE=10 MAXLENGTH=10 VALUE="<? echo $TPL_prov; ?>">
</TD>
</TR>
<TR>
<TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
<?print $std_font.$MSG_014;?>
</B> </TD>
<TD WIDTH="60%"><SELECT NAME=TPL_country>
<? echo $country; ?>
</SELECT>
</TD>
</TR>
<TR>
<TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
<?print $std_font.$MSG_012;?>
</B> </TD>
<TD WIDTH="60%"><INPUT TYPE=text NAME=TPL_zip SIZE=8 VALUE="<? echo $TPL_zip; ?>">
</TD>
</TR>
<TR>
<TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
<?=$std_font.$MSG_013;?>
</B> </TD>
<TD WIDTH="60%"><INPUT TYPE=text NAME=TPL_phone SIZE=40 MAXLENGTH=40 VALUE="<? echo $TPL_phone; ?>">
</TD>
</TR>
And here is a general idea of what I would like gone from the template_sell_php
Code:
<!------------------------------------ country -------------------------------->
<TR>
<TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
<?print $std_font.$MSG_023;?>
</B> </TD>
<TD WIDTH="60%"><? print $TPL_countries_list; ?> </TD>
</TR>
<!------------------------------------ zip code -------------------------------->
<TR>
<TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
<?print $std_font.$MSG_024;?>
</B> </TD>
<TD WIDTH="60%"><INPUT TYPE=text SIZE=8 NAME=location_zip VALUE="<? print $location_zip; ?>">
</TD>
</TR>
<!--------------------------------- shipping --------------------------------------->
<TR>
<TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
<?print $std_font.$MSG_025;?>
</B> </TD>
<TD WIDTH="60%" valign="top"><INPUT TYPE=radio NAME=shipping VALUE="1" <? print $TPL_shipping1_value; ?>>
<? print $std_font.$MSG_031; ?> <BR>
<INPUT TYPE=radio NAME=shipping VALUE="2" <? print $TPL_shipping2_value; ?>>
<? print $std_font.$MSG_032; ?> <BR>
<INPUT TYPE=checkbox NAME=international VALUE="1" <? print $TPL_international_value; ?>>
<? print $std_font.$MSG_033; ?></TD>
</TR>
Now as you mentions there is other files that will be affected and here are some of the files I'm thinking,
template_sell_preview_php
template_registered_php
template_profile_php
template_item_php
template_sell_result_php
and maybe even more! I'm just assuming these files can be affected and I might be wrong but it would make sense if there were affected.
I can't add the files because there is too many characters for the post...
|