Not planned Display gender in UserBlurb tag

Azaly

Active member
In Xenforo 1.x in UserBlurb gender was shown as well as role, age and location. In Xenforo 2.0 gender was excluded from UserBlurb, and could be shown oly as suctom field. After upgrading my users are confused, because in many languages grammatical gender is basic structure of language, and they just do not understan how to call other users. Please, return gender back.
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
We have no plans to return the gender field which was removed in XF 2.0.

In the interests of being fully inclusive, if it's something your forum requires then gender should exist as a custom field with which you are free to maintain as few or as many options as you see fit.

The gender custom field is only created automatically if you're upgrading from XF1 to XF2 otherwise it has to be created manually.

You can display custom field values on the message user info, or you may be able to display it near the user blurb (though not within it because it's programmatically created) with template edits.
 
you may be able to display it near the user blurb (though not within it because it's programmatically created) with template edits
Should I create special macros for that? It seems that there are no way to show choice instead of value of custom field.
 
That was pretty simple:
Code:
        <xf:if contentcheck="true">
            <xf:contentcheck>
                <xf:if is="$user.Profile.custom_fields.gender">
                    {$user.Profile.custom_fields.getFormattedValue('gender')|raw}
                </xf:if>
            </xf:contentcheck>
        </xf:if>
 
Back
Top Bottom