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

XF 1.1 Is it possible to create a second (hidden) custom user title?

Discussion in 'XenForo Questions and Support' started by Lone Wolf, Jul 6, 2013.

  1. Lone Wolf

    Lone Wolf Well-Known Member

    Users already have a user title displayed under their name.

    I was wondering if it's possible to add a second user title which would be hidden unless explicitly displayed. So it would only be visible in certain forums or places where it's specified to appear.
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Through custom fields, template edits, and conditionals, I do not see why not. However, it'll be user editable.
     
  3. Lone Wolf

    Lone Wolf Well-Known Member

    Why would it be user editable and how hard is all that to do?
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    Sorry, I forgot about the "User Editable" option. If you don't want it to be user editable, it wouldn't be. You'd only need one template edit. You'll need to edit message_user_info, you'll want to use the following code:
    HTML:
    {$user.customFields.ID}
    With that, you'll want to surround a conditional to test node IDs to limit display, Brogan has a solid resource on conditionals.
     

Share This Page