Trying to figure out how to add a banner in the top right hand corner

Discussion in 'HTML & Website Design' started by gregdavidson, Mar 13, 2008.

  1. #1
    My forum is at www.AffiliateHelpForum.com and I'm trying to add a banner in the top right hand corner like Vbulletin. I've already figured out how to add the banner in the default template but can't quite figure out how to do this in the template I'm currently using. Any help would be well appreciated.
     
    gregdavidson, Mar 13, 2008 IP
  2. Christian Little

    Christian Little Peon

    Messages:
    1,753
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Go into vbulletin admin. There's a template editor section in the menu (I don't recall what it's called, it's been a while since I hacked into that software).

    Look for the following code:
    
    <!-- logo -->
    <a name="top"></a>
    
    <div id="logo"><a href="index.php?"><img src="aero/misc/logo.gif" border="0" alt="Affiliate Marketing Help Forum" /></a></div>
    
    Code (markup):
    Change it to this:
    
    <!-- logo -->
    <a name="top"></a>
    
    <div id="logo"><a href="index.php">
    <img src="aero/misc/logo.gif" border="0" alt="Affiliate Marketing Help Forum" align="left"/></a>
    
    // insert javascript code to display banner here
    
    </div>
    
    Code (markup):
    Alternatively, if you can't make that work, then do this in the footer:

    
    <div style="position: absolute; top: 200px; left: 500px;">
    // insert code to display banner here
    </div>
    
    Code (markup):
    That will create a layer overtop of your existing code and put the banner 200px from the top and 500px from the left side. You'll need to adjust those two numbers so it shows up in the right space.
     
    Christian Little, Mar 14, 2008 IP
  3. gregdavidson

    gregdavidson Well-Known Member

    Messages:
    2,448
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    160
    #3
    I actually figured it out last night by using CSS. The reason I'm not adding an Adsense ad there is because my ad shows up when signup form does which is against Google's TOS.
     
    gregdavidson, Mar 14, 2008 IP
  4. Christian Little

    Christian Little Peon

    Messages:
    1,753
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    0
    #4
    So you're advertising on Adwords and your ad is appearing on your website when you setup Adsense?

    That's easy to fix, Adsense lets you block certain domains from advertising on your website. Just enter your domain into the list and it won't be a problem.
     
    Christian Little, Mar 14, 2008 IP