[eluser]flosaurus[/eluser]
Hi,
I followed the tutorial on how to set up the custom profile on freakauth script.
Things are working fine but i wonder how i could implement some custom field like date or radio button...
let's say i put a boolean field in my db (true/false) for newsletter registration.
How could i generate the form ?
i think i have to modify this code part
Code:
<?php if ($this->config->item('FAL_create_user_profile') AND !empty($fields))
{
foreach ($fields as $field=>$label)
{?>
<p><label for="<?=$field?>"><?=$label?>:</label>
<?=form_input(array('name'=>$field,
'id'=>$field,
'maxlength'=>'45',
'size'=>'25',
'value'=>(isset($user_prof[$field]) ? $user_prof[$field] : $this->validation->{$field})))?>
<span><?=(isset($this->validation) ? $this->validation->{$field.'_error'} : '')?></span></p>
<?php }
}
but in this case, i won't be able to use the scaffolding feature developped by the guys of freakauth
Please help... thank you