• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Show Custom Fields in message_user_info

Brogan

XenForo moderator
Staff member
#2
It is now possible via the options and style properties.

Check this box for the custom user field:
upload_2015-1-24_13-41-31.png

Then ensure the relevant option is checked in style properties:
upload_2015-1-24_13-42-31.png
 
#3
i found the culprit. the user custom field is set by a plugin I made:

$fieldId = 'fieldName';
$this->_getDb()->query('
INSERT INTO xf_user_field_value
(user_id, field_id, field_value)
VALUES
(?, ?, ?)
ON DUPLICATE KEY UPDATE
field_value = VALUES(field_value)
', array($userId, $fieldId, $username));

it seems there is a cache mechanism in xenforo so only updating the database is not enough?

when custom field is updated from admin, the value is showing in message_user_info