View Single Post
Old September 25th, 2008, 12:28 PM   #1 (permalink)
ColoradoGuy
Junior Member
Verified Customer
 
Join Date: Sep 2008
Posts: 9
Google AdSense Insertion

I have the Classified site up and running almost.

How do I insert my Google Adsense Code into the templates (.tmpl) ?

Google gives me

<script type="text/javascript">
<!-- google_ad_client = "pub-02688962xxxx"; /* 120x600, created 9/24/08 */ google_ad_slot = "5394xxxx"; google_ad_width = 120; google_ad_height = 600; //-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

This is the code in the template custom2pal.tmpl which is where I want the code to appear. I have cut and pasted the google code where is says, put the code here. The code appears in the source, that page takes a lot longer to load and nothing appears.

Any suggestions?

<?php
echo<<<PPPRINT
$ppopenside
<tr>
<td align="center" class="{$Style['menubar']}">
<span class="{$Style['medium']}"><b>Google Ads</b></span>
</td>
</tr>
<tr>
<td class="{$Style['tddetails']}" align="left">
<span class="{$Style['small']}">Put the code here.</span>
</td>
</tr>
$ppcloseside
PPPRINT;
?>
ColoradoGuy is offline   Reply With Quote