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

XF 1.2 User Group/Staff Banners

Mike

XenForo developer
Staff member
#1
In XenForo 1.1, if you want to customize the display of certain users, you're generally limited to user titles and user name styling. However, sometimes this isn't flexible or clear enough. Sometimes you want to be able to draw attention to multiple things for a single user.

Enter user group banners:

ss-2013-05-29_14-57-28.png


Banners can be configured per user group:

ss-2013-05-29_14-58-30.png


(I am aware of the first banner on the second column having its top border wrapped back. This is a browser issue that we're looking into.)

You'll note that this set up is similar to how thread prefixes are configured. You can use custom CSS classes to completely change the display of banners (such as by replacing them with images).

I've demonstrated that you can have more than one banner displaying simultaneously. By default, they'll be displayed in the display style group order (highest first). If the user is a staff member, that banner will take priority.

You can disable this option and configure a few different options (globally):

ss-2013-05-29_15-01-15.png

You'll also note that you have the option to override standard user titles with banners.

These banners are primarily displayed on messages, but they're also shown on profiles. There is a simple template helper function that can be used to display them anywhere.
 

rellek

Well-known member
#15
You don't want to leave anything unannounced for us to find ourselves when you upgrade that forum, do you? :p

Thanks for sharing. Looks good.