PDA

View Full Version : add admincp useredit options


Bilderback
11-18-2008, 11:06 PM
I recently created a mod using 3 custom fields added to the user database.
Since it was my first mod and I am fairly new to vbcode, there are some issues.
The big one is that my created fields are editable by users in their USERCP
but the fields have no administrative backend.

Is there a simple way to add settinggroup option code to the product xml
to display the extra fields in the admincp useredit?

Thanks

EDIT
I ended up creating a plugin at the useradmin_edit_colum1 hook with the following code:

print_table_break('', $INNERTABLEWIDTH);
print_table_header($vbphrase['my_custom_fields']);
print_input_row($vbphrase['custom_field_one'], 'user[custom_field_one]', $user['custom_field_one']);
print_input_row($vbphrase['custom_field_two'], 'user[custom_field_two]', $user['custom_field_two']);
print_input_row($vbphrase['custom_field_three'], 'user[custom_field_three]', $user['custom_field_three']);