Google AdSense in header impacting main forum layout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tony L
    Member
    • Jul 2003
    • 36

    Google AdSense in header impacting main forum layout

    Hi,

    I’ve added a Google AdSense half banner (234 x60) to my forum header as detailed in this thread here, i.e. replacing the nonbreaking space with the code. The ads are displaying correctly, but have somehow impacted things below the header such as the white-space to the sides of the main forum content and has also broken the display of the forum footer – without the AdSense enabled everything beneath the time display is white on green as it should be, i.e. the copyright should not be black on white.

    My header code is:

    Code:
     <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <!-- 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]">
    		<script type="text/javascript"><!--
    			google_ad_client = "pub-5570393469776377";
    			//pfm default half banner
    			google_ad_slot = "2610042619";
    			google_ad_width = 234;
    			google_ad_height = 60;
    		//--></script>
    		<script type="text/javascript"
    			src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    		</script>
    	</td>
    </tr>
    </table>
    <!-- /logo -->
    
    <!-- content table -->
    $spacer_open
    
    $_phpinclude_output
    </table>
    <!-- /logo -->
    
    <!-- content table -->
    $spacer_open
    
    $_phpinclude_output
    It is otherwise unmodified.

    I am noticing the issues in both Camino and Safari 3 – I do not have a PC so am unable to test it in IE, though I understand from other users the issue exists there too.

    I’d very much appreciate it if someone could shed some light upon this - I am not a php programmer by any stretch so please don't assume much knowledge. My forum is www.pinkfishmedia.net

    Tony.
  • peterska2
    Senior Member
    • Oct 2003
    • 8869
    • 3.7.x

    #2
    You have some duplicated code at the start and end of the template which will resolve the problem once it is removed.

    Comment

    • Floris
      Senior Member
      • Dec 2001
      • 37767

      #3
      I do not see the adsense on your forum, and your forum looks build up as it should by default. I am not sure what to recommend. The adsense code doesn't effect the style, etc. Unless your monitor is really small say, 640x480 and the logo + adsense banner breaks that width. Removing the extra code KA noticed should fix any design issue.

      Comment

      • Tony L
        Member
        • Jul 2003
        • 36

        #4
        Originally posted by Kerry-Anne
        You have some duplicated code at the start and end of the template which will resolve the problem once it is removed.
        Thank you very much indeed for that - obviously my error somehow... did I say I wasn't a .php programmer! Now working perfectly.

        Tony.

        Comment

        • peterska2
          Senior Member
          • Oct 2003
          • 8869
          • 3.7.x

          #5
          Sometimes you can look at something for so long that you just don't see the problem and a fresh pair of eyes really helps.

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...