XF 2.2 Easiest free way to add a label under your name?

thanks

Member
Hi, just wondering what’s the easiest free way to add a label under your name. For example, the Verified tag seen here:

C1DF9C19-6A9D-4692-BCAD-2385BE786DA8.webp

1426739C-1F8F-4341-88BC-2958D1558A4B.webp

Thanks.
 
Last edited:
You could add a template modification for message_macros.

e.g.

Search type: Regular expression
Find: /<xf:userbanners .+ \/>/isU
Replace:
HTML:
$0
<xf:if is="{{ $xf.visitor.isMemberOf(123) }}">
    YOUR LABEL
</xf:if>

If you choose this method, you have to replace 123 with the user group ID of the user group the users with the badge/label belong to.

You cold also work with profile fields, that only administrators can change.
 
You could add a template modification for message_macros.

e.g.

Search type: Regular expression
Find: /<xf:userbanners .+ \/>/isU
Replace:
HTML:
$0
<xf:if is="{{ $xf.visitor.isMemberOf(123) }}">
    YOUR LABEL
</xf:if>

If you choose this method, you have to replace 123 with the user group ID of the user group the users with the badge/label belong to.

You cold also work with profile fields, that only administrators can change.
Thanks.
 
A user group promotion/user group with manual addition would be the easiest/most obvious way.

 
Top Bottom