Welcome Guest, Not a member yet? Register   Sign In
about custom profile and forms on freakauth
#1

[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="&lt;?=$field?&gt;">&lt;?=$label?&gt;:</label>
    &lt;?=form_input(array('name'=>$field,
                        'id'=>$field,
                        'maxlength'=>'45',
                        'size'=>'25',
                        'value'=>(isset($user_prof[$field]) ? $user_prof[$field] : $this->validation->{$field})))?&gt;
      <span>&lt;?=(isset($this->validation) ? $this->validation->{$field.'_error'} : '')?&gt;</span></p>

&lt;?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




Theme © iAndrew 2016 - Forum software by © MyBB