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

Display User's Style Selection in Profile or Postbit

Discussion in 'Styling and Customization Questions' started by Alteran Ancient, Feb 25, 2012.

  1. Alteran Ancient

    Alteran Ancient Well-Known Member

    This is probably really straightforward, but I wanted to see if this had already been done or not.

    Quite simply, our board has a large number of styles to choose from, each one of them representing a different "character". We would like to display this to each user, either in the Postbit, or in a User's Public Profile.

    Now, considering that a user's selection is stored as nothing more than a single ID value, should this be too hard to grab? Would it be something simple like a template user var?

    Thanks for the help!
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I don't see an addon for this. You can use this condition in the message_user_info template:

    <xen:if is="{$user.style_id} == 6">
    This allows you to display some text based on the styleid of the post author. The same condition works in member_view for profile pages.
  3. Alteran Ancient

    Alteran Ancient Well-Known Member

    Many thanks! It was just a little fiddly, but works like a charm. If a user has selected an option other than the default style, it appears in their postbit.

Share This Page