Loading
Настройка страницы регистрации — 1
Источник:
Customising the user registration form 1. Вставьте этот код в файл template.php.
function phptemplate_user_register($form) {
return _phptemplate_callback('user_register', array('form' => $form));
}2. Создайте в папке темы файл user_register.tpl.php.
3. Вставьте этот код в файл user_register.tpl.php.
<form action="/user/register" method="post" id="user-register">
<div class="form-item">
<label for="edit-name">Username: <span class="form-required" title="This field is required.">*</span></label>
<input type="text" maxlength="60" name="name" id="edit-name" size="60" value="" class="form-text required" />
<div class="description">Your preferred username; punctuation is not allowed except for periods, hyphens, and underscores.</div>
</div>
<div class="form-item">
<label for="edit-mail">E-mail address: <span class="form-required" title="This field is required.">*</span></label>
<input type="text" maxlength="64" name="mail" id="edit-mail" size="60" value="" class="form-text required" />
<div class="description">A valid e-mail address. All e-mails from the system will be sent to this address. The e-mail address is not made public and will only be used if you wish to receive a new password or wish to receive certain news or notifications by e-mail.</div>
</div>
<input type="hidden" name="form_id" id="edit-user-register" value="user_register" />
<input type="submit" name="op" id="edit-submit" value="Create new account" class="form-submit" />Это код стандартной формы регистрации. Теперь его возможно править.
Метки:


