// replace [start]
/*
$qa_content['form_profile']['fields'][$userfield['title']]=array(
'type' => $fieldsediting ? 'text' : 'static',
'label' => qa_html($label),
'tags' => 'NAME="field_'.$userfield['fieldid'].'"',
'value' => $valuehtml,
'error' => qa_html(@$errors[$userfield['fieldid']]),
'rows' => ($userfield['flags'] & QA_FIELD_FLAGS_MULTI_LINE) ? 8 : null,
);
*/
if ($userfield['flags'] & QA_FIELD_FLAGS_CHECKBOX) {
if(qa_get_state()=='edit') {
$qa_content['form_profile']['fields'][$userfield['title']]=array(
'label' => $label,
'tags' => 'NAME="field_'.$userfield['fieldid'].'"',
'type' => 'checkbox',
'value' => qa_html($value),
'error' => qa_html(@$errors[$userfield['fieldid']]),
);
} else {
$qa_content['form_profile']['fields'][$userfield['title']]=array(
'label' => $label,
'tags' => 'NAME="field_'.$userfield['fieldid'].'" DISABLED="disabled"',
'type' => 'checkbox',
'value' => qa_html($value),
'error' => qa_html(@$errors[$userfield['fieldid']]),
);
}
} else {
$qa_content['form_profile']['fields'][$userfield['title']]=array(
'type' => $fieldsediting ? 'text' : 'static',
'label' => $label,
'tags' => 'NAME="field_'.$userfield['fieldid'].'"',
'value' => $valuehtml,
'error' => qa_html(@$errors[$userfield['fieldid']]),
'rows' => ($userfield['flags'] & QA_FIELD_FLAGS_MULTI_LINE) ? 8 : null,
);
}
// replace [end]
// replace [start]
/*
$qa_content['form_profile']['fields'][$userfield['title']]=array(
'label' => qa_html($label),
'tags' => 'NAME="field_'.$userfield['fieldid'].'"',
'value' => qa_html($value),
'error' => qa_html(@$errors[$userfield['fieldid']]),
'rows' => ($userfield['flags'] & QA_FIELD_FLAGS_MULTI_LINE) ? 8 : null,
);
*/
if ($userfield['flags'] & QA_FIELD_FLAGS_CHECKBOX) {
$qa_content['form_profile']['fields'][$userfield['title']]=array(
'label' => $label,
'tags' => 'NAME="field_'.$userfield['fieldid'].'"',
'type' => 'checkbox',
'value' => qa_html($value),
'error' => qa_html(@$errors[$userfield['fieldid']]),
);
} else {
$qa_content['form_profile']['fields'][$userfield['title']]=array(
'label' => $label,
'tags' => 'NAME="field_'.$userfield['fieldid'].'"',
'value' => qa_html($value),
'error' => qa_html(@$errors[$userfield['fieldid']]),
'rows' => ($userfield['flags'] & QA_FIELD_FLAGS_MULTI_LINE) ? 8 : null,
);
}
// replace [end]
qa-lang/custom/qa-lang-addon.php