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

Ad placement look like a poster

AzzidReign

Well-known member
#1
I couldn't find it anywhere using the search. Which template would I edit to get an ad between the 1st and 2nd post and place it in its own message block? And what's the code to make it look that way? Thanks!
 

Brett Peters

Well-known member
#5
Works for me adding it to the ad_message_below template, If you added AND !{$visitor.user_id} then you will need to log out to view it.
 

AzzidReign

Well-known member
#6
Works for me adding it to the ad_message_below template, If you added AND !{$visitor.user_id} then you will need to log out to view it.
Yeah, I was trying it Brogan's way before he deleted his posts for whatever reason. When I did it his way and the way you just mentioned, all the messages below the ads are no longer styled (I have a custom skin). I'm trying to look through the custom code to see if there is something I have to add to the beginning or end of the template to get it to work right.

This is what it looks like right now:
 

EQnoble

Well-known member
#9
Ok, I think I found the div that was causing it. Checking compatibility between browser...looking good so far.
Just tested with a couple different styles...by using the edits in This post in the Adding advertisements with template edits | Thread

I applied them to the message template


HTML:
<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="http://a3.twimg.com/profile_images/1090883135/xf_reasonably_small.png"  width="96px" height="96px"></span></div>
 
                <h3 class="userText">
                    Google
                    <em class="userTitle" itemprop="title">Adsense</em>
                </h3>
 
                <span class="arrow"><span></span></span>
            </div>
        </div>
 
      <div class="messageInfo primaryContent">
            <div class="messageContent">
                <blockquote class="messageText ugc baseHtml">
                    GOOGLE ADSENSE CODE GOES HERE
                </blockquote>
            </div>
          </div>
      </li>
</xen:if>
it seems to work for anyone not logged in