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

XF 1.4 A condition if the user has a banner (only in threads and conversations)?

Dylan V

Well-known member
#1
Hello,

I'd like to know if it was possible to display different content if the user has a banner in the threads and conversations. If yes, can you give me the condition?

Thanks.
 

Brogan

XenForo moderator
Staff member
#2
Presumably the banner is applied via a user group?

If so, you can use a standard user group ID check.
 

Dylan V

Well-known member
#3
Presumably the banner is applied via a user group?

If so, you can use a standard user group ID check.
I have a problem, Brogan. Look at the picture:

7yawsyu.png

I'd like to put an option allowing, if the user has no banner, so I can adjust the height where the arrow indicates the element. Basically, use something like this:

Code:
<xen:if is="{$xenOptions.userBanners}">

<xen:else />

.messageUserBlock .extraUserInfo
{
    margin-top: -50px;
}

</xen:if>
But I can't find the condition to do that only if the user does not have any banner.
 

Brogan

XenForo moderator
Staff member
#4
As above - banners are applied via user groups or for staff members, so you can use a user group conditional check.