vBulletin 4, the most powerful community software + vBSEO 3.5, the ultimate SEO solution = Your ultimate platform for 2010 and beyond. Click below to learn more.

Results 1 to 15 of 15

ads in the top right hand corner

This is a discussion on ads in the top right hand corner within the Template Modifications forums, part of the vBulletin SEO Discussion category; I would like to display ad's in the top right hand corner of my forum "the same as digitalpoint" You ...

  1. #1
    Senior Member
    Real Name
    Glen
    Join Date
    May 2006
    Posts
    115

    ads in the top right hand corner

    I would like to display ad's in the top right hand corner of my forum "the same as digitalpoint"

    You guys here have links there, so can you tell me exactly how its done please, and just where to put the code

    Im not the best at modifiying vbulletin

  2. #2
    Senior Member Lian's Avatar
    Real Name
    Lian
    Join Date
    Jun 2006
    Location
    Munich, DE
    Posts
    326

    Re: ads in the top right hand corner

    You may want to think about installing your own AdServer, I prefer phpAdsNew.
    Welcome to phpAdsNew / Open-source ad server
    www.MCSEboard.de MCSE Forum - Windows Server & IT Pro Community
    German MCP / MCSA / MCSE Forum dedicated to Windows 2000 / 2003 / 2008 Server & Windows XP / Vista.
    Microsoft Community Partner (CLIP) and Home of many Microsoft MVPs

  3. #3
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    13,923

    Re: ads in the top right hand corner

    In the default vBulletin style, in your header template (see in bold):
    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr>
    <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    <td align="$stylevar[right]">
    Stick your ad here!
    </td>
    </tr>
    </table>
    <!-- /logo -->
    <!-- content table -->
    $spacer_open
    $_phpinclude_output
    
    Juan Muriente / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  4. #4
    Senior Member
    Real Name
    Glen
    Join Date
    May 2006
    Posts
    115

    Re: ads in the top right hand corner

    thank you very much juan

  5. #5
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,983

    Re: ads in the top right hand corner

    i use CSS to display my ad absolute positioned, so that the ad code is in the footer template, and loads last. view the source code on HS to see an example

  6. #6
    Senior Member
    Real Name
    james
    Join Date
    Aug 2006
    Posts
    254
    Code:
    <!-- logo --> <a name="top"></a> <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center"> <tr> <td align="$stylevar[left]" background="<A href="http://www.traderslaboratory.com/forums/images/kirsch/misc/banner_02.jpg"><a">http://www.traderslaboratory.com/forums/images/kirsch/misc/banner_02.jpg"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a>
    </td>  </tr> </table> <!-- /logo -->  <!-- content table --> $spacer_open  $_phpinclude_output
    

    How would I add the banner in this code? I tried adding it after </td> but did not work. Any help?

  7. #7
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,983
    Code:
     background="<A onclick="urchinTracker ('/outgoing/http_www_traderslaboratory_com_forums_images_kirsch_misc_banner_02_jpg');" href="http://www.traderslaboratory.com/forums/images/kirsch/misc/banner_02.jpg"><a">
    
    WTF is that? lol that's not html



    Throw this in your footer template just above </html>:

    Code:
    <div id="adframe">
     PUT (valid) AD CODE HERE, such as:
    <a href="sponser.com"><img src="sponsor.jpg" alt="sponsor" /></a>
    </div>
    
    put this in your CSS file at the bottom in the custom box:

    Code:
    #adframe {
        position: absolute;
        top: 5px;
        right: 10px;
        margin: 0;
        padding: 2px
            z-index: 99;
    }
    
    Ignore all that table malarky.

  8. #8
    Senior Member
    Real Name
    Alex
    Join Date
    Mar 2007
    Location
    Italy
    Posts
    495
    Who use phpAdsNew? i've tried to install it but i have some problems how to set the campaign could someone help me?

    Thanks

  9. #9
    Member
    Real Name
    Rob Weatherly
    Join Date
    Nov 2006
    Posts
    30
    Quote Originally Posted by Juan Muriente View Post
    In the default vBulletin style, in your header template (see in bold):
    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr>
    <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    <td align="$stylevar[right]">
    Stick your ad here!
    </td>
    </tr>
    </table>
    <!-- /logo -->
    <!-- content table -->
    $spacer_open
    $_phpinclude_output
    
    i know this is an old thread but im trying to exactly this (with phpadsnew), but with vb4. the header template is very different and im not sure hwo to get it in adn to align right, everywhere i place it, it just shows up under the main left logo/title image

  10. #10
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    seoville
    Posts
    3,871
    Edit template
    Ad Location Templates
    ad_global_header2

    Add code:

    Code:
    <div style="float: right;">
    <!-- ad code here -->
    </div>
    <br style="clear:both;" />
    
    Brian Cummiskey / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


    Check us out on FaceBook!

  11. #11
    Member
    Real Name
    Rob Weatherly
    Join Date
    Nov 2006
    Posts
    30
    doesn't look quite right, can you have a looksie
    -Link removed-

  12. #12
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    seoville
    Posts
    3,871
    That is where the ad template is located, under the logo. Since you used an extended height logo, that obviously won't work.

    You may need to use negative margins or absolute positioning.


    try:
    Code:
    <div style="margin-top:-75px; float:right;">
    
    or

    Code:
    <div style="position:absolute; top:75px; right: 10px;">
    
    You may need to tweak those numbers to fit better.
    Brian Cummiskey / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


    Check us out on FaceBook!

  13. #13
    Member
    Real Name
    Rob Weatherly
    Join Date
    Nov 2006
    Posts
    30
    thanks i used
    Code:
    <div style="margin-top:-75px; float:right;">
    
    i was reading that vB 4 has an ad management feature, but cant seem to find wehre to management from, are you by any chance aware of that function?

  14. #14
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    seoville
    Posts
    3,871
    Sorry, i have limited experience with vb4 as of yet. I know there is a control panel for the ads right above the template nav item, but i haven't played with it.
    Brian Cummiskey / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


    Check us out on FaceBook!

  15. #15
    Member
    Real Name
    Rob Weatherly
    Join Date
    Nov 2006
    Posts
    30
    no problem
    you have been very helpful

    thank you again

Similar Threads

  1. AdSense ads in foreign countries
    By d6rth7ader in forum Ad Networks
    Replies: 1
    Last Post: 07-12-2006, 12:05 PM
  2. New Sitemaps Info - Average Top Position
    By Ace Shattock in forum General Discussion
    Replies: 1
    Last Post: 03-14-2006, 03:58 AM
  3. Already Near Top of Search Engines
    By mikem79 in forum Pre-Sales Questions
    Replies: 1
    Last Post: 02-08-2006, 10:41 AM
  4. Replies: 2
    Last Post: 10-25-2005, 06:27 PM