Ludachris Well-known member Mar 19, 2021 #1 What would be the correct way to go about hiding the default user titles in posts, except if they are custom user titles?
What would be the correct way to go about hiding the default user titles in posts, except if they are custom user titles?
P Paul B XenForo moderator Staff member Mar 19, 2021 #2 Edit the message_macros template. Change line 16 from this: HTML: <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" /> To this: HTML: <xf:if is="$user.custom_title"><xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" /></xf:if> Upvote 0 Downvote
Edit the message_macros template. Change line 16 from this: HTML: <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" /> To this: HTML: <xf:if is="$user.custom_title"><xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" /></xf:if>
Ludachris Well-known member Mar 19, 2021 #3 Brogan said: Edit the message_macros template. Change line 16 from this: HTML: <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" /> To this: HTML: <xf:if is="$user.custom_title"><xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" /></xf:if> Click to expand... thanks Brogan! Every time I type your name I want to type "Brotatochip" - it's from a commercial here in the states. Upvote 0 Downvote
Brogan said: Edit the message_macros template. Change line 16 from this: HTML: <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" /> To this: HTML: <xf:if is="$user.custom_title"><xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" /></xf:if> Click to expand... thanks Brogan! Every time I type your name I want to type "Brotatochip" - it's from a commercial here in the states.
P Paul B XenForo moderator Staff member Mar 19, 2021 #4 Brogan submits name change request Upvote 1 Downvote