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

XF 1.4 How to move up ad_message_below

Discussion in 'Styling and Customization Questions' started by popowich, Apr 28, 2015.

  1. popowich

    popowich Active Member

    No matter where I move the template call I can't get it under the post content but above the user/date/edited line.

    Is it possible to get these to swap places so the user/date & last edited etc are below ad_message_below?

  2. Brogan

    Brogan XenForo Moderator Staff Member

    You would have to edit the message template and change the location of the template include:
    <xen:include template="ad_message_below" />
  3. popowich

    popowich Active Member

    Right, where? Thank you.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    To wherever you want it.

    Use a browser inspection tool on the page to inspect the HTML and tie it up with the code in the template.
  5. popowich

    popowich Active Member

    If anyone looking for the same answer as me this is the section of the style where ad_message_below should be moved that worked for me:

    <xen:hook name="message_content" params="{xen:array 'message={$message}'}">
    <div class="messageContent">
    <blockquote class="messageText SelectQuoteContainer ugc baseHtml{xen:if $message.isIgnored, ' ignored'}">
    <xen:include template="ad_message_body" />
    {xen:raw $message.messageHtml}
    <div class="messageTextEndMarker">&nbsp;</div>
    <xen:include template="ad_message_below" />
    {xen:raw $messageContentAfterTemplate}

Share This Page