How do I add Adsense to the top right hand corner of my vbulletin forum?

Discussion in 'AdSense' started by gregdavidson, Mar 11, 2008.

  1. #1
    I'm trying to add a 468x60 adsense banner to the top, right-hand corner of www.AffiliateHelpForum.com and but can't quite figure it out. I already figured out how to add it on the default theme but other themes seem to be slightly different.
     
    gregdavidson, Mar 11, 2008 IP
  2. seosharp

    seosharp Peon

    Messages:
    51
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can change the Add Format Or Color by login to your add sense account....:)
     
    seosharp, Mar 11, 2008 IP
  3. gregdavidson

    gregdavidson Well-Known Member

    Messages:
    2,448
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Ummmmmmmm.............That wasn't my question. I basically want to add adsense to the top, right-hand corner of my forum like Vbulletin has.
     
    gregdavidson, Mar 11, 2008 IP
  4. Fka200

    Fka200 Guest

    Best Answers:
    0
    #4
    Wrong section. Try the development topic area.

    Might be a plugin or something.
     
    Fka200, Mar 11, 2008 IP
  5. LoCo

    LoCo Well-Known Member

    Messages:
    232
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #5
    i might be able to do it for you, provide me with an account with permission to edit templates
     
    LoCo, Mar 11, 2008 IP
  6. Bernard

    Bernard Well-Known Member

    Messages:
    1,608
    Likes Received:
    107
    Best Answers:
    0
    Trophy Points:
    185
    #6
    You should be able to use something like this in your header template:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center"><tr><td align="$stylevar[left]"><a href="http://www.mydomain.com/$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    <td align="$stylevar[right]">
    <if condition="in_array($bbuserinfo[usergroupid], array(1))">
     <if condition="in_array(THIS_SCRIPT, array('forumhome', 'forumdisplay', 'showthread', 'index'))">
        {adsense code}
     </if>
    </if></td></tr></table>
    <!-- /logo -->
    
    <!-- content table -->
    $spacer_open
    
    $_phpinclude_output
    Code (markup):
    That only shows the AdSense code to guests (not logged in members) and excludes the registration and other pages that, IIRC, would violate the AdSense TOS.
     
    Bernard, Mar 11, 2008 IP
  7. gregdavidson

    gregdavidson Well-Known Member

    Messages:
    2,448
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    160
    #7
    You can't included Adsense on your signup pages?
     
    gregdavidson, Mar 11, 2008 IP
  8. Abhik

    Abhik ..:: The ONE ::..

    Messages:
    11,337
    Likes Received:
    606
    Best Answers:
    0
    Trophy Points:
    410
    Digital Goods:
    2
    #8
    According to policies, no you can not.
     
    Abhik, Mar 11, 2008 IP