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

Discussion in 'Styling and Customization Questions' started by AzzidReign, Feb 2, 2012.

  1. AzzidReign

    AzzidReign Well-Known Member

    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!
     
  2. Brett Peters

    Brett Peters Well-Known Member

    Bram and AzzidReign like this.
  3. AzzidReign

    AzzidReign Well-Known Member

    Yup, thanks!
     
    Brett Peters likes this.
  4. AzzidReign

    AzzidReign Well-Known Member

    Hmm...just tried implementing it and it's not showing up :( It looked it was posted in oct 2010 so not sure if some of the syntax had changed to the point where it would make this void.
     
  5. Brett Peters

    Brett Peters Well-Known Member

    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.
     
  6. AzzidReign

    AzzidReign Well-Known Member

    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:
    [​IMG]
     
  7. AzzidReign

    AzzidReign Well-Known Member

    Ok, I think I found the div that was causing it. Checking compatibility between browser...looking good so far.
     
  8. Brett Peters

    Brett Peters Well-Known Member

    Sounds like you sorted it out (y)
     
  9. EQnoble

    EQnoble Well-Known Member

    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
     

Share This Page