Описание файла
Перестройка формы регистрации (2.1.x)
Решение для узких скинов на стандартных шаблонах (без "круглых" майнтитлов и т.д).
Рекомендуется использовать, если список часовых поясов ломает форму и портит дизайн.
Открыть skin register --> ShowForm
Заменить код новым:
<script type="text/javascript"> <!-- var ipb_lang_js_blanks = "{ipb.lang['js_blanks']}"; var ipb_lang_js_no_check = "{ipb.lang['js_no_check']}"; var subsdesc_0 = "{ipb.lang['subsm_no_desc']}"; var subdesc = new Array(); <!--{SUBS.JSCRIPT}--> var register_method = "{ipb.vars['converge_login_method']}"; --> </script> <script type="text/javascript" src="jscripts/ipb_register.js"></script> <form action="{ipb.vars['board_url']}/index.{ipb.vars['php_ext']}" method="post" name="REG" onsubmit="return validate_reg_form(event)"> <input type="hidden" name="act" value="Reg" /> <input type="hidden" name="termsread" value="1" /> <input type="hidden" name="agree_to_terms" value="1" /> <input type="hidden" name="CODE" value="02" /> <input type="hidden" name="coppa_user" value="{$data['coppa_user']}" /> <div class="borderwrap"> <div class="maintitle"><{CAT_IMG}> {ipb.lang['registration_form']}</div> <div class="formsubtitle">{$data['TEXT']}</div> <div class="tablepad"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <fieldset> <legend>{ipb.lang['op_tz_title']}</legend> <div class="desc">{ipb.lang['op_tz_text']}</div><br /> <!--{TIME_ZONE}--><br /><br /> <!--<input type="checkbox" name="dst" value="1" class="checkbox" <!--[dst.checked]--> />{ipb.lang['op_tz_dst']}<br />--> </fieldset> </td> </tr> </table> <table class='ipbtable' cellspacing="0"> <tr> <td width="50%"> <fieldset class="row3"> <legend><b>{ipb.lang['user_name_title']}</b></legend> <if="ipb.vars['converge_login_method'] == 'username'"> <div class='input-warn-content' id='box-name'><div id='msg-name'>{$errors['username']}</div></div> <table class='ipbtable' cellspacing="0"> <tr> <td>{ipb.lang['user_name']} <span>(<a href="#" style="cursor: help; color: #555;" title="{ipb.lang['user_name_text']}">?</a>)</span></td> </tr> <tr> <td> <input type="text" size="50" maxlength="64" value="{ipb.input['UserName']}" id='reg-name' name="UserName" /> <img id='img-name' src="{ipb.vars['img_url']}/spacer.gif" alt="" width='12' height='12' /> </td> </tr> </table> </if> <if="ipb.vars['auth_allow_dnames'] == 1 OR ipb.vars['converge_login_method'] == 'email'"> <div class='input-warn-content' id='box-dname'><div id='msg-dname'>{$errors['dname']}</div></div> <table class='ipbtable' cellspacing="0"> <tr> <td>{ipb.lang['dname_name']} <span>(<a href="#" style="cursor: help; color: #555;" title="{ipb.lang['dname_text']}">?</a>)</span></td> </tr> <tr> <td> <input type="text" size="50" maxlength="64" value="{ipb.input['members_display_name']}" id='reg-members-display-name' name="members_display_name" /> <img id='img-members-display-name' src="{ipb.vars['img_url']}/spacer.gif" alt="" width='12' height='12' /> </td> </tr> </table> </if> </fieldset><br /> <fieldset class="row3"> <div class='input-warn-content' id='box-password'><div id='msg-password'>{$errors['password']}</div></div> <legend><b>{ipb.lang['password_title']}</b></legend> <table class='ipbtable' cellspacing="0"> <tr> <td width="1%" nowrap="nowrap">{ipb.lang['password']} <span>(<a href="#" style="cursor: help; color: #555;" title="{ipb.lang['password_text']}">?</a>)</span></td> <td width="100%">{ipb.lang['password_confirm']} <span>(<a href="#" style="cursor: help; color: #555;" title="{ipb.lang['password_confirm_text']}">?</a>)</span></td> </tr> <tr> <td><input type="password" size="25" maxlength="32" value="{ipb.input['PassWord']}" id='reg-password' name="PassWord" /></td> <td><input type="password" size="25" maxlength="32" value="{ipb.input['PassWord_Check']}" id='reg-password-check' name="PassWord_Check" /></td> <td width='12'> <img id='img-password' src="{ipb.vars['img_url']}/spacer.gif" alt="" width='12' height='12' /> </td> </tr> </table> </fieldset><br /> <fieldset class="row3"> <div class='input-warn-content' id='box-emailaddress'><div id='msg-emailaddress'>{$errors['email']}</div></div> <legend><b>{ipb.lang['email_address_title']}</b></legend> <table class='ipbtable' cellspacing="0"> <tr> <td width="1%" nowrap="nowrap">{ipb.lang['email_address']} <span>(<a href="#" style="cursor: help; color: #555;" title="{ipb.lang['email_address_text']}">?</a>)</span></td> <td width="100%">{ipb.lang['email_address_confirm']} <span>(<a href="#" style="cursor: help; color: #555;" title="{ipb.lang['email_address_confirm_text']}">?</a>)</span></td> </tr> <tr> <td><input type="text" size="25" maxlength="150" value="{ipb.input['EmailAddress']}" id='reg-emailaddress' name="EmailAddress" /></td> <td><input type="text" size="25" maxlength="150" value="{ipb.input['EmailAddress_two']}" id='reg-emailaddress-two' name="EmailAddress_two" /></td> <td width='12'> <img id='img-emailaddress' src="{ipb.vars['img_url']}/spacer.gif" alt="" width='12' height='12' /> </td> </tr> </table> </fieldset> <!--{REQUIRED.FIELDS}--> <!--{SUBS.MANAGER}--> <!--IBF.MODULES.EXTRA--> </td> <td width="50%" valign="top"> <div> <b>{ipb.lang['cf_optional']}</b><br /><br /> <table class='ipbtable' cellspacing="0"> <tr> <td> <fieldset> <legend>{ipb.lang['op_email_title']}</legend> <div class="desc">{ipb.lang['op_email_text']}</div><br /> <input type="checkbox" name="allow_admin_mail" value="1" class="checkbox" <!--[admin.checked]--> /> {ipb.lang['op_email_ad']}<br /> <input type="checkbox" name="allow_member_mail" value="1" class="checkbox" <!--[member.checked]--> /> {ipb.lang['op_email_mem']} </fieldset><br /> <!--{OPTIONAL.FIELDS}--> </td> </tr> <tr> <td><!--{REG.ANTISPAM}--></td> </tr> </table> </div> </td> </tr> <tr> <td valign="middle" align="center"> <div class="desc">{ipb.lang['submit_text']}</div><br /> <input type="submit" value="{ipb.lang['submit_form']} > >" /> </div> </td> </tr> </table> </div> </div> </form> <script type="text/javascript"> //<![CDATA[ reg_error_no_name = "{ipb.lang['reg_error_no_name']}"; reg_error_no_pass = "{ipb.lang['reg_error_no_pass']}"; reg_error_pass_nm = "{ipb.lang['reg_error_pass_nm']}"; reg_error_chars = "{ipb.lang['reg_error_chars']}"; reg_error_taken = "{ipb.lang['reg_error_taken']}"; reg_error_username_taken = "{ipb.lang['reg_error_username_taken']}"; reg_error_username_none = "{ipb.lang['reg_error_username_none']}"; reg_error_email_missing = "{ipb.lang['reg_error_email_missing']}"; reg_error_email_nm = "{ipb.lang['reg_error_email_nm']}"; reg_error_email_taken = "{ipb.lang['reg_error_email_taken']}"; reg_error_email_ban = "{ipb.lang['reg_error_email_ban']}"; var got_dname = 0; <if="ipb.vars['auth_allow_dnames'] == 1 OR ipb.vars['converge_login_method'] == 'email'"> got_dname = 1; </if> init_reg_form(got_dname, register_method); //]]> </script>
Теперь откройте фрагмент - skin register -->bot_antispam_gd
Замените код этим:
<br /> <input type="hidden" name="regid" value="$regid" /> <fieldset class="row3"> <legend><b>{ipb.lang['las_title']}</b></legend> <table class='ipbtable' cellspacing="0"> <tr> <td width="1%" align="center"> {ipb.lang['las_input']}<div class="desc">{ipb.lang['las_input_text']}</div> <input type="text" size="25" maxlength="32" name="reg_code" /> </td></tr> <tr> <td align="center"><img src="{ipb.script_url}act=Reg&CODE=image&rc={$regid}" alt="{ipb.lang['alt_loadingimg']}" /></td> </tr> </table> </fieldset>
Результат перестройки - пример стиля ipbskins.ru - форма регистрации)[/url]
Изменения в версии 07/04/10 07:21 Просмотреть список изменений
Выпущена
Список изменений в этой версии не указан.
Рекомендованные комментарии
Нет комментариев для отображения