CMSMS 1.7.1
Hi!!, first of all sorry for my english.

I'm trying to divide the change settings templates and put it in diferent pages, but an error message of "invalid e-mail address array" show up, even if I don't send a email , I'm not a progamer, but this is the code

Code: Select all
<!-- change settings template -->
<!-- start with loggin (username, password, email) -->
{if $smarty.get.page == edit}
{$title}
{if $message != ''}
{if $error != ''}
<p><font color="red">{$message}</font></p>
{else}
<p>{$message}</p>
{/if}
{/if}
{$startform}
{if $controlcount > 0}
<center>
<table width="75%">
{foreach from=$controls item=control name=name}
{if $smarty.foreach.name.index <=3 } <!-- just de first fields corresponding to the loggin-->
<tr>
<td>{$control->hidden}<font color="{$control->color}">{$control->prompt}{$control->marker}</font></td>
<td>
{if isset($control->image)}{$control->image}<br/>{/if}
{$control->control}{$control->addtext}
{if isset($control->control2)}{$control->prompt2} {$control->control2}<br/>{/if}
</td>
</tr>
{/if}
{/foreach}
</table>
</center>
{/if}
{$hidden}{$hidden2}{$submit}{$cancel}
{$endform}
{/if}
<!-- then, personal data (name, last name, etc -->
{if $smarty.get.page == "personal-data"}
{$title}
{if $message != ''}
{if $error != ''}
<p><font color="red">{$message}</font></p>
{else}
<p>{$message}</p>
{/if}
{/if}
{$startform}
{if $controlcount > 0}
<center>
<table width="75%">
{foreach from=$controls item=control name=name}
{if ($smarty.foreach.name.index >=4) and ($smarty.foreach.name.index <=8) }
<tr>
<td>{$control->hidden}<font color="{$control->color}">{$control->name}{$control->marker}</font></td>
<td>
{if isset($control->image)}{$control->image}<br/>{/if}
{$control->control}{$control->addtext}
{if isset($control->control2)}{$control->prompt2} {$control->control2}<br/>{/if}
</td>
</tr>
{/if}
{/foreach}
</table>
</center>
{/if}
{$hidden}{$hidden2}{$submit}{$cancel}
{$endform}
{/if}
<!-- and so on.... -->
Code: Select all
<!-- change settings template -->
{$title}
{if $message != ''}
{if $error != ''}
<p><font color="red">{$message}</font></p>
{else}
<p>{$message}</p>
{/if}
{/if}
{$startform}
{if $controlcount > 0}
<center>
<table width="75%">
{foreach from=$controls item=control}
{assign var=$control->name value=$control}
{/foreach}
Name: {$name->control}<br/>
Last name: {$lastname->control }<br/>
</table>
</center>
{/if}
{$hidden}{$hidden2}{$submit}{$cancel}
{$endform}
<!-- change settings template -->
Code: Select all
$onerow->name = $defn['name']; <!--to avoid the prompt-->
$onerow->labelfor = $id.$prop['name'];
$onerow->type = $defn['type'];
$onerow->length = $defn['length'];
$onerow->maxlength = $defn['maxlength'];
$onerow->prompt = $defn['prompt'];
$rowarray[$prop['name']] = $onerow;
Just work with the default template
