Steve F
Well-known member
I have a add-on where I create some user fields upon install.
Example:
When creating the add-on I made the custom user fields and then associated the user_field_steamUserProfile and user_field_steamUserProfile_desc with the add-on. Now anytime I go back and make a change to the custom user field it removes any association that it had with the add-on.
Before editing user field
After Editing user field
When I say edit user field, all I did was open the user field to edit and hit save.
Example:
Code:
$dw = XenForo_DataWriter::create('XenForo_DataWriter_UserField');
//Steam
$dw->set('field_id', 'steamUserProfile');
$dw->set('display_group', 'contact');
$dw->set('display_order', 1);
$dw->set('field_type', 'textbox');
$dw->set('required', 0);
$dw->set('show_registration', 0);
$dw->set('user_editable', 'yes');
$dw->set('viewable_profile', '1');
$dw->set('viewable_message', '1');
$dw->save();
When creating the add-on I made the custom user fields and then associated the user_field_steamUserProfile and user_field_steamUserProfile_desc with the add-on. Now anytime I go back and make a change to the custom user field it removes any association that it had with the add-on.
Before editing user field
After Editing user field
When I say edit user field, all I did was open the user field to edit and hit save.