1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Vbulletin Template Ad Code

Discussion in 'Programming' started by werewe12, Jun 9, 2009.

  1. #1
    Hey guys. I need some help placing a banner to my forum. Here is the code for the header file. Please suggest what code to put in for a 468x60 banner. Thanks.

    <!-- logo -->
    <a name="top"></a>
    
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="141" align="left" valign="top" class="top-back"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="/forum/images/back2black/forumlogo.jpg" border="0" alt="$vboptions[bbtitle]" /></a></td>
        </tr>
    </table>  
    
    <!-- /logo -->
    
    <!-- content table -->
    $spacer_open
    
    $_phpinclude_output
    
    $ad_location[ad_header_end]
    Code (markup):
     
    werewe12, Jun 9, 2009 IP
  2. plot

    plot Active Member

    Messages:
    561
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #2
    You can add it at the end of the file. if you want it centered then use a div tag
     
    plot, Jun 11, 2009 IP
    werewe12 likes this.
  3. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #3
    Why not use the built in ad_location templates?
    see the one at the end ;) look up the ad location template for the end of the header
    and you can show different ads to guest with these vbulletin template conditions.
     
    Brandon Sheley, Jun 11, 2009 IP
    werewe12 likes this.
  4. werewe12

    werewe12 Well-Known Member

    Messages:
    1,034
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    140
    #4
    thanks guys.
     
    werewe12, Jun 12, 2009 IP
  5. cleanbold

    cleanbold Active Member

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    93
    #5
    i can understand that you are using vbulletin .. you can place banner at header in simple steps
    1.Log in to your admin panel
    2.Styles & Templates
    3.Edit Styles
    4.Expand Ad Location Templates
    5.edit ad_header_end paste you ads click save
     
    cleanbold, Jun 13, 2009 IP