Thanks.I need to know what code determines the order of the different fields.
I replaced (to ungroup them):
$display_profile_form_param = array(
array('text', 'username', $lang_register_php['username']),
array('text', 'status', $lang_usermgr_php['status']),
array('text', 'reg_date', $lang_register_php['reg_date']),
array('text', 'group', $lang_register_php['group'])
);
with:
$display_profile_form_param[] = array('text', 'username', $lang_register_php['username']);
$display_profile_form_param[] = array('text', 'status', $lang_usermgr_php['status']);
$display_profile_form_param[] = array('text', 'reg_date', $lang_register_php['reg_date']);
$display_profile_form_param[] = array('text', 'group', $lang_register_php['group']);
and now I can move each field where I want.
Now the code looks like this (I only moved the first custom field under field username):
$display_profile_form_param[] = array('text', 'username', $lang_register_php['username']);
if ($CONFIG['user_profile1_name'] != '') {
$display_profile_form_param[] = array('text', 'user_profile1', $CONFIG['user_profile1_name']);
}
$display_profile_form_param[] = array('text', 'status', $lang_usermgr_php['status']);
$display_profile_form_param[] = array('text', 'reg_date', $lang_register_php['reg_date']);
$display_profile_form_param[] = array('text', 'group', $lang_register_php['group']);
if ($CONFIG['user_profile2_name'] != '') {
$display_profile_form_param[] = array('text', 'user_profile2', $CONFIG['user_profile2_name']);
}
if ($CONFIG['user_profile3_name'] != '') {
$display_profile_form_param[] = array('text', 'user_profile3', $CONFIG['user_profile3_name']);
}
if ($CONFIG['user_profile4_name'] != '') {
$display_profile_form_param[] = array('text', 'user_profile4', $CONFIG['user_profile4_name']);
}
if ($CONFIG['user_profile5_name'] != '') {
$display_profile_form_param[] = array('text', 'user_profile5', $CONFIG['user_profile5_name']);
}
if ($CONFIG['user_profile6_name'] != '') {
$display_profile_form_param[] = array('text', 'user_profile6', $CONFIG['user_profile6_name']);
}
$display_profile_form_param[] = array('text', 'pic_count', $lang_register_php['pic_count']);
$display_profile_form_param[] = array('thumb', 'user_thumb');
$display_profile_form_param[] = array('text', 'admin_link', '');