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

Moving homepage from postbit to message template

Michael

Active member
#1
Does anyone know how to move the homepage field from showing in the postbit/user info section into the message template? I find that with the current width it looks awfully squashed and I dont fancy expanding it. I have tried this code even within a new div inside the message template but it isnt showing up and not in the source. Any ideas on how to successfully do this?

HTML:
<xen:if is="@messageShowHomepage AND {$user.homepage}">
                    <dl class="pairsInline">
                        <dt>{xen:phrase home_page}:</dt>
                        <dd><a href="{xen:string censor, $user.homepage}" rel="nofollow" target="_blank" itemprop="url">{xen:string censor, $user.homepage}</a></dd>
                    </dl>
                </xen:if>
Thank you.
 

Jake Bunce

XenForo moderator
Staff member
#2
You need to change $user to $message:

Code:
<xen:if is="@messageShowHomepage AND {$message.homepage}">
	<dl class="pairsInline">
		<dt>{xen:phrase home_page}:</dt>
		<dd><a href="{xen:string censor, $message.homepage}" rel="nofollow" target="_blank" itemprop="url">{xen:string censor, $message.homepage}</a></dd>
	</dl>
</xen:if>