How do I edit a custom profile field that is not user editable?
The following code allows me to set the field only if I make the field editable by any users. I do not want to let people edit this field because it allows them to impersonate other people.
The following code allows me to set the field only if I make the field editable by any users. I do not want to let people edit this field because it allows them to impersonate other people.
PHP:
$writer = XenForo_DataWriter::create('XenForo_DataWriter_User');
$writer->setExistingData($visitorId);
$writer->setCustomFields(array('Steam' => $id), array('Steam'));
$writer->save();