XF 1.4 Show Custom Fields in message_user_info

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.webp

Then ensure the relevant option is checked in style properties:
upload_2015-1-24_13-42-31.webp
 
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
 
Top Bottom