AFemaleProdigy
11-23-2011, 08:26 PM
Hello,
I am creating multiple custom user.php files to make creation of specific user types easier. I have entirely too many custom profile fields that are specific to user types to keep them all in one single user.php. I need some assistance figuring out the proper code for just a few things.
Rather than use the existing lines that generate ALL of the custom profile field options, I want to display only specific custom profile field options. For example, in user.php there are lines like this:
print_select_row($vbphrase['language'] , 'user[languageid]', array('0' => $vbphrase['use_forum_default']) + fetch_language_titles_array('', 0), $user['languageid']);I need to write a line similar to that which loads a specific user profile field and it's available input/select/radio options. I am just not sure how to write it, how to call the field, and how to load the options for the field.
I was trying to guess at it and came up with this, but it doesn't work right. I need it to load the array of options specific to that field... NOT a vbphrase:
print_select_row($vbphrase['field11_title'], 'user[field11]', array(0 => $vbphrase['venue_type_a'], 2 => $vbphrase['venue_type_b'], 1 => $vbphrase['venue_type_c']), $user['field11']);Should I use this instead: print_chooser_row
Any suggestions? Thanks!
--------------- Added 24 Nov 2011 at 10:50 ---------------
Anyone have any ideas? I just need to know the bit of code to load a specific profile field and its selectable options in user.php.
Thanks!
I am creating multiple custom user.php files to make creation of specific user types easier. I have entirely too many custom profile fields that are specific to user types to keep them all in one single user.php. I need some assistance figuring out the proper code for just a few things.
Rather than use the existing lines that generate ALL of the custom profile field options, I want to display only specific custom profile field options. For example, in user.php there are lines like this:
print_select_row($vbphrase['language'] , 'user[languageid]', array('0' => $vbphrase['use_forum_default']) + fetch_language_titles_array('', 0), $user['languageid']);I need to write a line similar to that which loads a specific user profile field and it's available input/select/radio options. I am just not sure how to write it, how to call the field, and how to load the options for the field.
I was trying to guess at it and came up with this, but it doesn't work right. I need it to load the array of options specific to that field... NOT a vbphrase:
print_select_row($vbphrase['field11_title'], 'user[field11]', array(0 => $vbphrase['venue_type_a'], 2 => $vbphrase['venue_type_b'], 1 => $vbphrase['venue_type_c']), $user['field11']);Should I use this instead: print_chooser_row
Any suggestions? Thanks!
--------------- Added 24 Nov 2011 at 10:50 ---------------
Anyone have any ideas? I just need to know the bit of code to load a specific profile field and its selectable options in user.php.
Thanks!