Żadnego kodu nie trzeba pisać, bo kod już tam jest. Trzeba go tylko przenieść w dowolne inne miejsce. Oczywiście w obrębie tego samego szablonu.
<if test="hasCfields:| is_array( $custom_fields['required'] ) && count( $custom_fields['required'] ) ) || ( is_array( $custom_fields['optional'] ) && count( $custom_fields['optional'] ) )">
<hr />
<fieldset>
<ul class='ipsForm ipsForm_horizontal'>
<if test="reqCfields:|:is_array( $custom_fields['required'] ) && count( $custom_fields['required'] )">
<foreach loop="custom_required:$custom_fields['required'] as $_field">
<li class='ipsField clear ipsField_{$_field['type']}'>
<label for='cprofile_{$_field['id']}' class='ipsField_title'>{$_field['name']} <span class='ipsForm_required'>*</span></label>
<div class='ipsField_content'>
{$_field['field']}
<if test="reqCfieldDescSpan:|:$_field['desc'] != ''"><br /><span class='desc lighter'>{$_field['desc']}</span></if>
</div>
</li>
</foreach>
</if>
<if test="optCfields:|:is_array( $custom_fields['optional'] ) && count( $custom_fields['optional'] )">
<foreach loop="custom_optional:$custom_fields['optional'] as $_field">
<li class='ipsField clear ipsField_{$_field['type']}'>
<label for='cprofile_{$_field['id']}' class='ipsField_title'>{$_field['name']}</label>
<div class='ipsField_content'>
{$_field['field']}
<if test="optCfieldDescSpan:|:$_field['desc'] != ''"><br /><span class='desc lighter'>{$_field['desc']}</span></if>
</div>
</li>
</foreach>
</if>
</fieldset>
</if>
Daj go pod to:
<fieldset>
<ul class='ipsForm ipsForm_horizontal'>
<li class='ipsField clear ipsField_checkbox'>
<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> tabindex='0' />
<p class='ipsField_content'>
<label for='allow_admin_mail'>{$this->lang->words['receive_admin_emails']}</label>
</p>
</li>
<li class='ipsField clear ipsField_checkbox'>
<input type='checkbox' name='agree_tos' id='agree_tos' value='1' class='input_check' <if test="checkedTOS:|:$this->request['agree_tos']">checked="checked"</if> tabindex='50' />
<p class='ipsField_content'>
<label for='agree_tos' <if test="ieDnameClass:|:$inline_errors['dname']">error</if>>
<strong>{$this->lang->words['agree_to_tos']} <a href='#' id='tou_link'>{$this->lang->words['terms_of_use']}</a></strong>
<if test="ieTOS:|:$inline_errors['tos']"><br /><span class='error'>{$inline_errors['tos']}</span></if>
</label>
<textarea id='tou' class='input_text' style='width: 350px; height: 100px; display: block;'>
{$this->settings['_termsAndConditions']}
</textarea>
</p>
</li>
<if test="privvy:|:$this->settings['priv_title']">
<li class='ipsPad_top ipsForm_center desc ipsType_smaller'>
<a rel="nofollow" href='{parse url="app=core&module=global§ion=privacy" template="privacy" seotitle="false" base="public"}'>{$this->settings['priv_title']}</a>
</li>
</if>
</ul>
<script type='text/javascript'>
$('tou').hide();
</script>
</fieldset>
<br />
A jeśli nadal nie będzie jak chcesz to pokombinuj po prostu z tym 'kodem html'.