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

Discussion in 'Styling and Customization Questions' started by ngkong, Jan 24, 2015.

  1. ngkong

    ngkong Member

  2. Brogan

    Brogan XenForo Moderator Staff Member

    It is now possible via the options and style properties.

    Check this box for the custom user field:

    Then ensure the relevant option is checked in style properties:
  3. ngkong

    ngkong Member

    i found the culprit. the user custom field is set by a plugin I made:

    $fieldId = 'fieldName';
    INSERT INTO xf_user_field_value
    (user_id, field_id, field_value)
    (?, ?, ?)
    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
  4. ngkong

    ngkong Member

    resolved by adding this line to my plugin


Share This Page