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

XF 1.2 Link User's Trophy Title In Postbit To A Page?

ProCom

Active member
#1
I'd love to promote user titles and trophy user titles. I have a lot of members that will wonder how they get their titles and I thought it would be helpful if titles linked to a page that explained what they are and how to get them.

Is there a way to get the postbit text for user's titles to link to a page?

(while I'm at it, I'd love to link all the elements in the postbit to something relevant, so if that's also applicable I'd love to learn how to do that as well)

Thanks!!!
 

Brogan

XenForo moderator
Staff member
#2
You could edit the message_user_info template and edit this line:
Code:
<xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user, 1, 1}</xen:contentcheck></em></xen:if>
to add an:
Code:
 <a href="{xen:link 'pages/titles/'}">
for example.

However, if you wanted each title to link to a different URL then that would require an add-on.