Results 1 to 1 of 1

vBulletin Wallpaper AD for centered forums with fixed width - v1.0

This is a discussion on vBulletin Wallpaper AD for centered forums with fixed width - v1.0 within the Ad Networks forums, part of the Monetizing category; Hello This modification adds a so called Wallpaper AD to your forum. A Wallpaper AD consists of a Leaderboard Banner ...

  1. #1
    Senior Member StarBuG's Avatar
    Real Name
    StarBuG
    Join Date
    Jul 2007
    Posts
    480
    Liked
    15 times

    Lightbulb vBulletin Wallpaper AD for centered forums with fixed width - v1.0

    Hello

    This modification adds a so called Wallpaper AD to your forum.
    A Wallpaper AD consists of a Leaderboard Banner (728x90px) and a Skyscraper Banner (160x600px) combined into one AD.

    I have a forum with a fixed width of 1024px that is centered so this modification is for this kind of setting.
    I don't know if it will work on non centered forums or forums with a fluid style.

    Don't forget to mark as INSTALLED on vB.org if you use this!

    Ok here it goes:

    vBulletin Wallpaper Ad v1.0

    in template header find:

    Code:
    <div class="above_body"> <!-- closing tag is in template navbar -->
    add BEFORE:

    Code:
    <div class="ads_lb_wp_wrapper">
     <div class="ads_lb_wp">
       LEADERBOARD BANNER CODE HIER 728x90px
     </div>
    </div>
    <div class="ads_ss_wp_wrapper">
     <div class="ads_ss_wp">
      SKYSCRAPER BANNER CODE HIER 160x600px
     </div>
    </div>
    in template additional.css add:

    Code:
    .ads_lb_wp_wrapper {
            position: relative; 
            width: 1024px;
            height: 95px;
            top: 0px;
    }
    
    .ads_lb_wp {
            width: 728px;
            height: 90px;
            margin-left:301px;
            top: 0px;
    }
    
    .ads_ss_wp_wrapper {
            position: absolute; 
            width: 1189px;
            height: 600px;
            top: 0px;
    }
    
    .ads_ss_wp {
            width: 160px;
            height: 600px;
            margin-right:0px;
            margin-left:1029px;
    }
    Like I said, my forum has a fixed width of 1024px.
    I have positioned the wallpaper with a 5px space to my forum (see screenshot)

    You need to change the CSS Settings according to your Forum width:

    .ads_lb_wp_wrapper : 1024px <- Forum width

    .ads_lb_wp : 301px <- Forum width + 5px (Space) - 728px (width of the Leaderboard)

    .ads_ss_wp_wrapper : 1189px <- Forum width + 5px (Space) + 160px (width of the Skyscraper)

    .ads_ss_wp : 1029px <- Forum width + 5px (Space)

    It then looks like this:



    Feedback and optimisation suggestions are very welcome!

    Greetings

    StarBuG
    Last edited by StarBuG; 05-17-2010 at 01:06 PM.

Similar Threads

  1. vBSEO switched vB 4.0 forums to fixed width
    By wld in forum Off-Topic & Chit Chat
    Replies: 8
    Last Post: 03-09-2010, 03:55 PM
  2. Can I change 1.0 Style from fixed width to Fluid Width?
    By myandy99 in forum vBSEO.com Styles
    Replies: 13
    Last Post: 06-03-2009, 04:34 PM
  3. Fixed Width Forums: Why?
    By Azonaco in forum Template Modifications
    Replies: 9
    Last Post: 10-10-2008, 12:55 AM
  4. Width of vBulletin Options setup
    By T2DMan in forum Sitemap Features Archive
    Replies: 0
    Last Post: 12-18-2005, 09:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •