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

Advertisement not falling within page borders

Discussion in 'XenForo Questions and Support' started by SgtSpike, Apr 4, 2011.

  1. SgtSpike

    SgtSpike Member

    Maybe I'm doing it wrong, but I am trying to add a single leaderboard ad to the bottom of every page on the forums. I would like it to be either above or below the Home --> Forums --> Etc link bar at the bottom of the page, but instead, it is showing up below EVERYTHING (even below Forum software by XenForo™ ©2011 XenForo Ltd)

    I've tried adding the ad code to the "ad_below_content" template and "ad_thread_view_below_messages", and both put the the ad below everything. I've even tried editing "footer" and "PAGE_CONTAINER" (that one per advice I saw in a thread here), to no avail.

    Any other suggestions? Is an ad placed in "ad_below_content" supposed to be below everything?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The ad_below_content template is the correct template. The contents should display just above the navigation breadcrumbs at the bottom of each page.

    Please paste your leaderboard code into this thread. This might be a problem with your code.
  3. SgtSpike

    SgtSpike Member

    Here's the leaderboard code. It's worked on my phpbb forums just fine. Not saying that it isn't the problem but just FYI.

    <!-- Project Wonderful ad code -->
    <script type="text/javascript">
      var pw_d=document;
      pw_d.projectwonderful_adbox_id = "54605";
      pw_d.projectwonderful_adbox_type = "5";
    <script type="text/javascript" src="http://www.projectwonderful.com/ad_display.js"></script>
    <!-- End of Project Wonderful ad code -->
  4. SgtSpike

    SgtSpike Member

    Also, I have edited the template files before, but only to add the sidebar onto a few other pages. I have TaigaChat, Forum Runner, XF Optimise, and XenPorta plugins installed as well, if any of those might make a difference.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It works fine for me:

    Screen shot 2011-04-04 at 10.37.32 AM.png

    This must be a problem with your custom style. Try it on a default style to confirm this.
  6. SgtSpike

    SgtSpike Member

    I am on the default style. Plugins, maybe? I'll try disabling them all for the moment, and if that fixes it, will enable them one by one to figure out which one is causing it.
  7. SgtSpike

    SgtSpike Member

    Turns out XF Optimize was the culprit. I'll write to the author and let him know...

Share This Page