/includes/modules/account_details.php(47行目~ 追加)
アカウント登録の表示
<!– ●ニックネーム tab 2007/02/03 –>
<tr>
<td class=”main”> <?php echo ENTRY_HN; ?></td>
<td class=”main”>
<?php
if ($is_read_only) {
echo htmlspecialchars($account[’customers_hn’]);
} elseif ($error) {
if ($entry_lastname_error) {
echo tep_draw_input_field(’hn’) . ’ ’ . ENTRY_HN_ERROR;
} else {
echo htmlspecialchars($_POST[’hn’]) . tep_draw_hidden_field(’hn’);
}
} else {
echo tep_draw_input_field(’hn’, $account[’customers_hn’]) . ’ ’ . ENTRY_LAST_NAME_TEXT;
}
?></td>
</tr>
/includes/languages/japanese.php(214行目~ 追加)
アカウント登録日本語表記
// ’Nickname:’
define(’ENTRY_HN’, ’ニックネーム:’);
// ’ <small><font color=”#FF0000″>min ’ . ENTRY_FIRST_NAME_MIN_LENGTH . ’ chars</font></small>’
define(’ENTRY_HN_ERROR’, ’ <small><font color=”#FF0000″>少なくても ’ . ENTRY_FIRST_NAME_MIN_LENGTH . ’ 文字</font></small>’);
// ’ <small><font color=”#AABBDD”>required</font></small>’
define(’ENTRY_HN_TEXT’, ’ <small><font color=”#AABBDD”>必須</font></small>’);
create_acount_process.php
ユーザー登録DB登録
(219行目)
tep_db_query(”insert into ” . TABLE_CUSTOMERS . ” (customers_gender, customers_firstname, customers_lastname, customers_dob, customers_email_address, customers_default_address_id, customers_telephone, customers_fax, customers_password, customers_newsletter) values (’” . $_POST[’gender’] . “’, ’” . $_POST[’firstname’] . “’, ’” . $_POST[’lastname’] . “’,’” . tep_date_raw($_POST[’dob’]) . “’, ’” . $_POST[’email_address’] . “’, ’1’, ’” . $_POST[’telephone’] . “’, ’” . $_POST[’fax’] . “’, ’” . $crypted_password . “’, ’” . $_POST[’newsletter’] . “’)”);
↓(・・・カスタマーズテーブル登録の際にニックネームを追加する。)
tep_db_query(”insert into ” . TABLE_CUSTOMERS . ” (customers_gender, customers_firstname, customers_lastname, customers_hn, customers_dob, customers_email_address, customers_default_address_id, customers_telephone, customers_fax, customers_password, customers_newsletter) values (’” . $_POST[’gender’] . “’, ’” . $_POST[’firstname’] . “’, ’” . $_POST[’lastname’] . “’, ’” . $_POST[’hn’] . “’, ’” . tep_date_raw($_POST[’dob’]) . “’, ’” . $_POST[’email_address’] . “’, ’1’, ’” . $_POST[’telephone’] . “’, ’” . $_POST[’fax’] . “’, ’” . $crypted_password . “’, ’” . $_POST[’newsletter’] . “’)”);
(221行目)
tep_db_query(”insert into ” . TABLE_ADDRESS_BOOK . ” (customers_id, address_book_id, entry_gender, entry_company, entry_firstname, entry_lastname, entry_street_address, entry_suburb, entry_postcode, entry_city, entry_state, entry_country_id, entry_zone_id) values (’” . $insert_id . “’, ’1’, ’” . $_POST[’gender’] . “’, ’” . $_POST[’company’] . “’, ’” . $_POST[’firstname’] . “’, ’” . $_POST[’lastname’] . “’, ’” . $_POST[’street_address’] . “’, ’” . $_POST[’suburb’] . “’, ’” . $_POST[’postcode’] . “’, ’” . $_POST[’city’] . “’, ’” . $state . “’, ’” . $_POST[’country’] . “’, ’” . $_POST[’zone_id’] . “’)”);
↓(・・・アドレスブック登録の際にニックネームを追加する。)
tep_db_query(”insert into ” . TABLE_ADDRESS_BOOK . ” (customers_id, address_book_id, entry_gender, entry_company, entry_firstname, entry_lastname, entry_hn, entry_street_address, entry_suburb, entry_postcode, entry_city, entry_state, entry_country_id, entry_zone_id) values (’” . $insert_id . “’, ’1’, ’” . $_POST[’gender’] . “’, ’” . $_POST[’company’] . “’, ’” . $_POST[’firstname’] . “’, ’” . $_POST[’lastname’] . “’, ’”. $_POST[’hn’] . “’, ’” . $_POST[’street_address’] . “’, ’” . $_POST[’suburb’] . “’, ’” . $_POST[’postcode’] . “’, ’” . $_POST[’city’] . “’, ’” . $state . “’, ’” . $_POST[’country’] . “’, ’” . $_POST[’zone_id’] . “’)”);
(238行目に追加)
$hn = $_POST[’hn’];
(48行目~追加)
if (strlen(trim($_POST[’hn’])) < 4) {
$error = true;
$entry_hn_error = true;
} else {
$entry_hn_error = false;
}
TrackBack URI : http://njcfactory.com/bbg/wp-trackback.php?p=54
Comments (0)