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