Jump to content

Проблема с регистрацией

Featured Replies

У меня стоит стиль baisik на IPB 3.2.3.

Только сейчас заметил что регистрации вообще нет в этом стиле.. или она куда-то пропала...

Прошу помочь, потому что не знаю что даже сделать.

post-3684-0-47210200-1356711669_thumb.pn

Link to comment
https://ipbmafia.ru/topic/561-problema-s-registraciej/
Share on other sites

Форум какой версии?

Link to comment
https://ipbmafia.ru/topic/561-problema-s-registraciej/?&do=findComment&comment=2310
Share on other sites

Форум какой версии?

IPB 3.2.3.

Link to comment
https://ipbmafia.ru/topic/561-problema-s-registraciej/?&do=findComment&comment=2311
Share on other sites

Сделал по моему сам.

Поменял все что находиться в Шаблоны > Регистрация > registerForm

:) is_array( $custom_fields['required'] ) &amp;&amp; count( $custom_fields['required'] ) ) || ( is_array( $custom_fields['optional'] ) &amp;&amp; count( $custom_fields['optional'] ) )"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;hr /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;fieldset&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ul class='ipsForm ipsForm_horizontal'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="reqCfields:|:is_array( $custom_fields['required'] ) &amp;&amp; count( $custom_fields['required'] )"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;foreach loop="custom_required:$custom_fields['required'] as $_field"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li class='ipsField clear ipsField_{$_field['type']}'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;label for='cprofile_{$_field['id']}' class='ipsField_title'&gt;{$_field['name']} &lt;span class='ipsForm_required'&gt;*&lt;/span&gt;&lt;/label&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class='ipsField_content'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$_field['field']}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="reqCfieldDescSpan:|:$_field['desc'] != ''"&gt;&lt;br /&gt;&lt;span class='desc'&gt;{$_field['desc']}&lt;/span&gt;&lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/li&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/foreach&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/if&gt;<br>&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="optCfields:|:is_array( $custom_fields['optional'] ) &amp;&amp; count( $custom_fields['optional'] )"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;foreach loop="custom_optional:$custom_fields['optional'] as $_field"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li class='ipsField clear ipsField_{$_field['type']}'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;label for='cprofile_{$_field['id']}' class='ipsField_title'&gt;{$_field['name']}&lt;/label&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class='ipsField_content'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$_field['field']}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="optCfieldDescSpan:|:$_field['desc'] != ''"&gt;&lt;br /&gt;&lt;span class='desc'&gt;{$_field['desc']}&lt;/span&gt;&lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/li&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/foreach&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/fieldset&gt;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp; &lt;/if&gt;<br>&nbsp;&nbsp;&nbsp; &lt;hr /&gt;<br>&nbsp;&nbsp;&nbsp; {$data['qandaHTML']}<br>&nbsp;&nbsp;&nbsp; {$data['captchaHTML']}<br>&nbsp;&nbsp;&nbsp; &lt;hr /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;fieldset&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;ul class='ipsForm ipsForm_horizontal'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li class='ipsField clear ipsField_checkbox'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type="checkbox" name="allow_admin_mail" id="allow_admin_mail" value="1" class="input_check" &lt;if test="defaultAAE:|:$this-&gt;request['allow_admin_mail'] || !isset( $this-&gt;request['allow_admin_mail'] )"&gt;checked='checked'&lt;/if&gt; /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p class='ipsField_content'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;label for='allow_admin_mail'&gt;{$this-&gt;lang-&gt;words['receive_admin_emails']}&lt;/label&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/li&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li class='ipsField clear ipsField_checkbox'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type='checkbox' name='agree_tos' id='agree_tos' value='1' class='input_check' &lt;if test="checkedTOS:|:$this-&gt;request['agree_tos']"&gt;checked="checked"&lt;/if&gt; /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p class='ipsField_content'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;label for='agree_tos' &lt;if test="ieDnameClass:|:$inline_errors['dname']"&gt;error&lt;/if&gt;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;strong&gt;{$this-&gt;lang-&gt;words['agree_to_tos']} &lt;a href='#' id='tou_link'&gt;{$this-&gt;lang-&gt;words['terms_of_use']}&lt;/a&gt;&lt;/strong&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="ieTOS:|:$inline_errors['tos']"&gt;&lt;br /&gt;&lt;span class='error'&gt;{$inline_errors['tos']}&lt;/span&gt;&lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/label&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;textarea id='tou' class='input_text' style='width: 350px; height: 100px; display: block;'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$this-&gt;settings['_termsAndConditions']}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/textarea&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/li&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ul&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;script type='text/javascript'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $('tou').hide();&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/script&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/fieldset&gt;&lt;/div&gt;<br>&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;fieldset class='ipsForm_submit'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type='submit' class='input_submit' id='register_submit' value='{$this-&gt;lang-&gt;words['register']}' /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/fieldset&gt;<br>&nbsp;&nbsp; &lt;/div&gt;<br>&nbsp; &lt;/div&gt;{parse replacement="box_end"}<br>&lt;/form&gt;<br>&lt;script type='text/javascript'&gt;<br>&nbsp; ipb.templates['registration_terms'] = new Template("&lt;h3&gt;{$this-&gt;lang-&gt;words['reg_terms_popup_title']}&lt;/h3&gt;&lt;div class='ipsPad' id='tou_popup'&gt;#{content}&lt;/div&gt;");<br>&lt;/script&gt;<br>{parse template="registerCoppaStart" group="register" params=""}<br>&lt;/div&gt;<br>[/CODE]
<br>{parse js_module="register"}<br>&lt;script type='text/javascript'&gt;<br>//&lt;![CDATA[<br>ipb.register.inSection = "mainform";<br>ipb.register.nameMaxLength = "{$this-&gt;settings['max_user_name_length']}";<br>ipb.register.allowedChars = "{$this-&gt;settings['username_characters']}";<br>ipb.templates['accept'] = "&amp;nbsp;&lt;span id='[id]_msg' class='reg_msg reg_accept' style='display: none'&gt;&lt;img src='{$this-&gt;settings['img_url']}/accept.png' alt='' /&gt; [msg]&lt;/span&gt;";<br>ipb.templates['error'] = "&amp;nbsp;&lt;span id='[id]_msg' class='reg_msg reg_error' style='display: none'&gt;&lt;img src='{$this-&gt;settings['img_url']}/exclamation.png' alt='' /&gt; [msg]&lt;/span&gt;";<br>//]]&gt;<br>&lt;/script&gt;<br>&lt;div id='register_form'&gt;<br>&lt;!--&lt;h1 class='ipsType_pagetitle'&gt;{$this-&gt;lang-&gt;words['ready_register']}&lt;/h1&gt;--&gt;<br>{parse template="registerStepBar" group="register" params="array('register_form' =&gt; 'ipsSteps_active', 'confirmation' =&gt; '')"}<br>&lt;if test="registerHasErrors:|:is_array( $general_errors ) &amp;&amp; count( $general_errors )"&gt;<br>&lt;div class='message error'&gt;<br>&nbsp; {$this-&gt;lang-&gt;words['following_errors']}<br>&nbsp; &lt;ul&gt;<br>&nbsp;&nbsp; &lt;foreach loop="general_errors:$general_errors as $r"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;li&gt;{$r}&lt;/li&gt;<br>&nbsp;&nbsp; &lt;/foreach&gt;<br>&nbsp; &lt;/ul&gt;<br>&lt;/div&gt;<br>&lt;br /&gt;<br>&lt;/if&gt;<br>&lt;form action="{parse url="app=core&amp;amp;module=global&amp;amp;section=register" base="public"}" method="post" name="REG" id='register'&gt;<br>&nbsp; &lt;input type="hidden" name="termsread" value="1" /&gt;<br>&nbsp; &lt;input type="hidden" name="agree_to_terms" value="1" /&gt;<br>&nbsp; &lt;input type="hidden" name="do" value="process_form" /&gt;<br>&nbsp; &lt;input type="hidden" name="coppa_user" value="{$data['coppa_user']}" /&gt;<br>&nbsp; &lt;input type='hidden' name='nexus_pass' value='1' /&gt;<br>&nbsp; &lt;input type='hidden' name='time_offset' id='auto_time_offset' value='0' /&gt;<br>&nbsp; &lt;input type='hidden' name='dst' id='auto_dst' value='0' /&gt;<br>&nbsp;<br>&nbsp; {parse replacement="header_start"}&lt;h3 class='maintitle'&gt;<br>&nbsp;&nbsp; {$this-&gt;lang-&gt;words['ready_register']}<br>&nbsp; &lt;/h3&gt;{parse replacement="header_end"}<br>&nbsp; &lt;div class='ipsBox removeDefault'&gt;<br>&nbsp;<br>&nbsp;&nbsp; &lt;div class='ipsBox_container ipsPad'&gt;<br>&nbsp;&nbsp; &lt;div class='resize_form'&gt;<br>&nbsp;&nbsp;&nbsp; &lt;if test="registerServices:|:IPSLib::fbc_enabled() || IPSLib::twitter_enabled() === true"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class='ipsBox_container ipsBox_notice ipsForm ipsForm_horizontal' id='external_services'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;strong class='ipsField_title' id='save_time'&gt;{$this-&gt;lang-&gt;words['want_to_save_time']}&lt;/strong&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class='ipsField_content'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ul class='ipsList_inline'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="registerUsingFb:|:IPSLib::fbc_enabled()"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a href="{$this-&gt;settings['_original_base_url']}/interface/facebook/index.php?_reg=1"&gt;&lt;img src="{$this-&gt;settings['img_url']}/facebook_login.png" alt="" /&gt;&lt;/a&gt;&lt;/li&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="twitterBox:|:IPSLib::twitter_enabled() === true"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a href="{$this-&gt;settings['_original_base_url']}/interface/twitter/index.php?_reg=1"&gt;&lt;img src="{$this-&gt;settings['img_url']}/twitter_login.png" alt="" /&gt;&lt;/a&gt;&lt;/li&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ul&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/if&gt;<br>&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp; &lt;if test="registerHasInlineErrors:|:is_array( $inline_errors ) &amp;&amp; ( $inline_errors['username'] || $inline_errors['dname'] || $inline_errors['email'] || $inline_errors['password'] )"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;p class='message error'&gt;{$this-&gt;lang-&gt;words['reg_errors_found']}&lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/if&gt;<br>&nbsp;&nbsp;&nbsp; &lt;fieldset&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;ul class='ipsForm ipsForm_horizontal'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li class='ipsField'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p class='ipsField_content'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span class='ipsForm_required ipsType_smaller'&gt;* {$this-&gt;lang-&gt;words['required_field']}&lt;/span&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/li&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li class='ipsField clear &lt;if test="ieDnameClass:|:$inline_errors['dname']"&gt;error&lt;/if&gt;'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;label for='display_name' class='ipsField_title'&gt;{$this-&gt;lang-&gt;words['reg_choose_dname']} &lt;span class='ipsForm_required'&gt;*&lt;/span&gt;&lt;/label&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p class='ipsField_content'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type='text' class='input_text' id='display_name' size='45' maxlength='{$this-&gt;settings['max_user_name_length']}' value='{$this-&gt;request['members_display_name']}' name='members_display_name' /&gt;&lt;br /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span class='desc primary lighter'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="ieDname:|:$inline_errors['dname']"&gt;&lt;span class='error'&gt;{$inline_errors['dname']}&lt;br /&gt;&lt;/span&gt;&lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {parse expression="sprintf( $this-&gt;lang-&gt;words['dname_desc'], $this-&gt;settings['max_user_name_length'])"}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/span&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/li&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li class='ipsField clear &lt;if test="ieEmailClass:|:$inline_errors['email']"&gt;error&lt;/if&gt;'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;label for='email_1' class='ipsField_title'&gt;{$this-&gt;lang-&gt;words['reg_enter_email']} &lt;span class='ipsForm_required'&gt;*&lt;/span&gt;&lt;/label&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p class='ipsField_content'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type='text' id='email_1' class='input_text email' size='45' maxlength='150' name='EmailAddress' value='{$this-&gt;request['EmailAddress']}' /&gt;&lt;br /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="ieEmail:|:$inline_errors['email']"&gt;&lt;span class='desc'&gt;&lt;span class='error'&gt;{$inline_errors['email']}&lt;/span&gt;&lt;/span&gt;&lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/li&gt;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li class='ipsField clear &lt;if test="iePasswordClass:|:$inline_errors['password']"&gt;error&lt;/if&gt;'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;label for='password_1' class='ipsField_title'&gt;{$this-&gt;lang-&gt;words['reg_choose_password']} &lt;span class='ipsForm_required'&gt;*&lt;/span&gt;&lt;/label&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p class='ipsField_content'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type='password' id='password_1' class='input_text password' size='45' maxlength='32' value='{$this-&gt;request['PassWord']}' name='PassWord' /&gt;&lt;br /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span class='desc lighter'&gt;&lt;if test="iePassword:|:$inline_errors['password']"&gt;&lt;span class='error'&gt;{$inline_errors['password']}&lt;br /&gt;&lt;/span&gt;&lt;/if&gt;{$this-&gt;lang-&gt;words['reg_choose_password_desc']}&lt;/span&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/li&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li class='ipsField clear'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;label for='password_2' class='ipsField_title'&gt;{$this-&gt;lang-&gt;words['reg_reenter_password']} &lt;span class='ipsForm_required'&gt;*&lt;/span&gt;&lt;/label&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p class='ipsField_content'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type='password' id='password_2' class='input_text password' size='45' maxlength='32' value='{$this-&gt;request['PassWord_Check']}' name='PassWord_Check' /&gt;&lt;br /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/li&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ul&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/fieldset&gt;<br>&nbsp;&nbsp;&nbsp; &lt;if test="hasNexusFields:|:!empty( $nexusFields )"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;script type='text/javascript'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var _countriesWithStates = [];<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;foreach loop="statesJs:$nexusStates as $k =&gt; $v"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _countriesWithStates["{$k}"] = 1;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/foreach&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/script&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;hr /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;fieldset&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ul class='ipsForm ipsForm_horizontal'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;foreach loop="fields:$nexusFields as $f"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="isAddressOrPhone:|:in_array( $f['f_column'], array( 'cm_address_1', 'cm_phone' ) )"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="isText:|:$f['f_type'] == 'text'"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li class='ipsField clear'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;label for='{$f['f_column']}' class='ipsField_title'&gt;&lt;if test="isAddress1:|:$f['f_column'] == 'cm_address_1'"&gt;{$this-&gt;lang-&gt;words['cm_address']}&lt;else /&gt;&lt;if test="isAddress2:|:$f['f_column'] == 'cm_address_2'"&gt;&amp;nbsp;&lt;else /&gt;{$f['f_name']}&lt;/if&gt;&lt;/if&gt; &lt;if test="textRequired:|:$f['f_reg_require']"&gt;&lt;span class='ipsForm_required'&gt;*&lt;/span&gt;&lt;/if&gt;&lt;/label&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p class='ipsField_content'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type='text' class='input_text' id='{$f['f_column']}' size='25' maxlength='255' value='{$this-&gt;request[ $f['f_column'] ]}' name='{$f['f_column']}' /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="textErrorMessage:|:$f['f_reg_require'] and $this-&gt;request['do'] == 'process_form' and !$this-&gt;request[ $f['f_column'] ]"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span class='error'&gt;{$this-&gt;lang-&gt;words['err_complete_form']}&lt;/span&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/li&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="isDropdown:|:$f['f_type'] == 'dropdown'"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li class='ipsField clear'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;label for='{$f['f_column']}' class='ipsField_title'&gt;{$f['f_name']} &lt;if test="dropdownRequired:|:$f['f_reg_require']"&gt;&lt;span class='ipsForm_required'&gt;*&lt;/span&gt;&lt;/if&gt;&lt;/label&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class='ipsField_content'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;select name='{$f['f_column']}' id='{$f['f_column']}' &lt;if test="isCountry:|:$f['f_column'] == 'cm_country'"&gt;onchange='states()'&lt;/if&gt;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;foreach loop="options:explode( "\n", $f['f_extra'] ) as $k =&gt; $v"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {parse variable="selected" default="" oncondition="$k == $this-&gt;request[ $f['f_column'] ] or $v == $this-&gt;request[ $f['f_column'] ]" value=" selected='selected'"}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;option value='&lt;if test="isCountrySelect:|:$f['f_column'] == 'cm_country'"&gt;{$v}&lt;else /&gt;{$k}&lt;/if&gt;'{parse variable="selected"}&gt;&lt;if test="isCountryWords:|:$f['f_column'] == 'cm_country'"&gt;{$this-&gt;lang-&gt;words['nc_'.$v]}&lt;else /&gt;{$v}&lt;/if&gt;&lt;/option&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/foreach&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/select&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="dropdownErrorMessage:|:$f['f_reg_require'] and $this-&gt;request['do'] == 'process_form' and !$this-&gt;request[ $f['f_column'] ]"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span class='error'&gt;{$this-&gt;lang-&gt;words['err_complete_form']}&lt;/span&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/li&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="isSpecial:|:$f['f_type'] == 'special'"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li class='ipsField clear'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;label for='cm_state' class='ipsField_title'&gt;{$this-&gt;lang-&gt;words['cm_state']} &lt;if test="specialRequired:|:$f['f_reg_require']"&gt;&lt;span class='ipsForm_required'&gt;*&lt;/span&gt;&lt;/if&gt;&lt;/label&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class='ipsField_content'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type='text' class='input_text' id='text-states' size='25' name='cm_state' value='{$this-&gt;request['cm_state']}' /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;foreach loop="statesCountries:$nexusStates as $country =&gt; $_states"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;select name='_cm_state' id='{$country}-states' class='input_select' style='display:none'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;foreach loop="states:$_states as $s"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {parse variable="selected" default="" oncondition="$s[0] == $this-&gt;request['cm_state']" value=" selected='selected'"}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;option value='{$s[0]}'{parse variable="selected"}&gt;{$s[1]}&lt;/option&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/foreach&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/select&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/foreach&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;if test="specialErrorMessage:|:$f['f_reg_require'] and $this-&gt;request['do'] == 'process_form' and !$this-&gt;request[ $f['f_column'] ]"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span class='error'&gt;{$this-&gt;lang-&gt;words['err_complete_form']}&lt;/span&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/li&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/if&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/foreach&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ul&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/fieldset&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;script type='text/javascript'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function states()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var c = $('cm_country').value;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( c in _countriesWithStates )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $( _display ).style.display = 'none';<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $( _display ).name = '_cm_state';<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $( c + '-states' ).style.display = '';<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $( c + '-states' ).name = 'cm_state';<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _display = c + '-states';<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $( _display ).style.display = 'none';<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $( _display ).name = '_cm_state';<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $( 'text-states' ).style.display = '';<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $( 'text-states' ).name = 'cm_state';<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _display = 'text-states';<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var _display = 'text-states';<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; states();<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/script&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/if&gt;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp; &lt;if test="hasCfields:|

[/spoiler]

Link to comment
https://ipbmafia.ru/topic/561-problema-s-registraciej/?&do=findComment&comment=2312
Share on other sites
Guest
This topic is now closed to further replies.

Последние посетители 0

  • No registered users viewing this page.