You can create another user group, add a banner for that group and put that user in the specified user group.
Couldn't you use custom user title?
This inspired me an add-on:
Unmaintained - Banners for Specific Users
This add-on allows you to define a customizable banner (or image) for one or more specific users. Banners are displayed based on the user's ID. There are 6 customizable banners (icon, text, style). They appear in the user block, user tooltip...xenforo.com
message_macros
template find :<xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="jobTitle" />
{$user.Profile.custom_fields.userBanner}
@PatriotGB: i have good news for you.
If you want to be able to place a banner under any username you can use custom user fields:
You can set a class to format the text as a banner.
- Creates a custom profile field named Banner, not editable by the user. A simple text field with userBanner as ID for example.
- In
message_macros
template find :
<xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="jobTitle" />
- add under :
{$user.Profile.custom_fields.userBanner}
- Now in admin CP for each user you have a field named Banner, the text you will fill in for each user will be displayed under his username.
Easy !
You can set a class to format the text as a banner.
- Creates a custom profile field named Banner, not editable by the user. A simple text field with userBanner as ID for example.
- In
message_macros
template find :
<xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="jobTitle" />
- add under :
{$user.Profile.custom_fields.userBanner}
- Now in admin CP for each user you have a field named Banner, the text you will fill in for each user will be displayed under his username.
Easy !
You can set a class to format the text as a banner.
<div class="message-userDetails">
<h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" /></h4>
<xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" />
<xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="jobTitle" />
</div>
<div class="message-userDetails">
<h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" /></h4>
<xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" />
<xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="jobTitle" />
{$user.Profile.custom_fields.userBanner}
</div>
The code above will display the text you filled in but without layout.Also don't know what this means:
<span class="label label--primary">{$user.Profile.custom_fields.userBanner}</span>
<span class="label label--accent">{$user.Profile.custom_fields.userBanner}</span>
<span class="label label--lightGreen">{$user.Profile.custom_fields.userBanner}</span>
<span class="label label--yellow">{$user.Profile.custom_fields.userBanner}</span>
<div class="message-userDetails">
<h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" /></h4>
<xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" />
<xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="jobTitle" />
<span class="label label--primary">{$user.Profile.custom_fields.userBanner}</span>
</div>
<span class="myClass">{$user.Profile.custom_fields.userBanner}</span>
extra.less
template..myClass {
border: 1px solid red;
color: red;
background: #FAFAFA;
border-radius: 4px
}
Did you create it ?OK... cool. Done. But I don't see the "Banner" field on the user page in the ACP.
Did you create it ?
No need to apologize... a more experienced admin would know what you were talking about. The issue is as we get more experience, we tend to forget that others aren't as "progressed" as we are.... so we tend to reflect the data points in a manner that we are familiar with.I should have used below rather than under but it's due to my bad English, sorry.
We use essential cookies to make this site work, and optional cookies to enhance your experience.