1. 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

Discussion in 'Styling and Customization Questions' started by Michael, Sep 2, 2011.

  1. Michael

    Michael Active Member

    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.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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>
    
     
    Michael likes this.
  3. Michael

    Michael Active Member

    Thanks Jake, its working perfectly now just as I wanted it :)
     

Share This Page