XF 2.0 Move location of Advert "Post: Below message content"

hqarrse

Active member
Currently the ad position embeds the 'Post: Below message content' into individual posts between the message content and the message footer.

Grateful for any suggestions on how to move this advert into the space between two posts?

TIA
 
Currently the ad position embeds the 'Post: Below message content' into individual posts between the message content and the message footer.

Grateful for any suggestions on how to move this advert into the space between two posts?

TIA

For anyone who is interested in doing this then @AndyB's ad on is a good option. Alternatively I made the following change in the thread_view template

Code:
<div class="block-container lbContainer"
        data-xf-init="lightbox{{ $xf.options.selectQuotable ? ' select-to-quote' : '' }}"
        data-message-selector=".js-post"
        data-lb-id="thread-{$thread.thread_id}"
        data-lb-universal="{$xf.options.lightBoxUniversal}">

        <div class="block-body js-replyNewMessageContainer">
            <xf:foreach loop="$posts" value="$post">

                <xf:ad position="post_below_content" arg-post="{$post}" />

                <xf:if is="$post.message_state == 'deleted'">
                    <xf:macro template="post_macros" name="post_deleted"
                        arg-post="{$post}"
                        arg-thread="{$thread}" />
                <xf:else />
                    <xf:macro template="post_macros" name="post"
                        arg-post="{$post}"
                        arg-thread="{$thread}" />
                </xf:if>
            </xf:foreach>
        </div>
    </div>
 
Top Bottom