XF 2.1 Ad below first post as seperate post

Majora

Member
Hello,
i have upgraded from version 1.5 to 2.1 today.

Now i want to place an ad as directly under the first post as seperate post and look like a real post.

The code for version 1.5 was:


Code:
<xen:if is="{$post.position} == 0 AND !{$visitor.user_id}">
<li class="message">

        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder"><span class="avatar  av2m"><img src="https://www.java-forum.org/styles/default/xenforo/avatars/avatar_m.png" /></span></div>

                <div class="userText">

<a href="" class="username" dir="auto" itemprop="name">Anzeige</a>
                </div>

                <span class="arrow"><span></span></span>
            </div>
        </div>

        <div class="messageInfo primaryContent">
            <div class="messageContent">
                 <blockquote class="messageText ugc baseHtml">
             
MY AD HERE
                   </blockquote>

            </div>
         </div>
    </li>
</xen:if>

How can i do the same for version 2.1? What's the code here?

Best regards
Matthias
 

Majora

Member
Thank you!

But these addons only place a banner below first post only.

I need an adjustment that the post with the ad looks the same as a forum post.

Can anyone help here?

Best regards
Matthias
 
Top