Display User's Style Selection in Profile or Postbit

Alteran Ancient

Well-known member
#1
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!
 

Jake Bunce

XenForo moderator
Staff member
#2
I don't see an addon for this. You can use this condition in the message_user_info template:

Code:
<xen:if is="{$user.style_id} == 6">
	blah
</xen:if>
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.
 

Alteran Ancient

Well-known member
#3
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.
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.
 
Top