PDA

View Full Version : Google Adsense


CareyCrew
11-05-2007, 05:47 AM
I was sure I had seen a thread regarding adding Adsense in the CMPS modules but I have searched and found nothing.

I have tried to add the code provided which does produce the bannner ad. but the nav bar is below the advert and there is no box enclosing it.

If I try to use a form code I get either nothing or a nav bar wider than the screen:rolleyes:

Now I realise that this is probably down to my very limited knowledge of code,is there anyone that can point me in the right direction?:o

The code provided is Jave script as follows :

<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxx";
google_ad_width = 200;
google_ad_height = 200;
google_ad_format = "200x200_as";
google_ad_type = "image";
google_ad_channel = "";
google_ui_features = "rc:6";
//-->
</script>
<script type="text/javascript"
src="http://xxxxxxxxx.xxxxxxxx/pagead/show_ads.js">
</script>

Brian
11-05-2007, 10:09 AM
Sounds like you have the module wrapper template option enabled and missed the note about formatting.

This section deals with options that may be applied to your 'adv_portal_module_wrapper' template. Please note that the options are only applicable if the 'Use Module Wrapper Template' option below is set to 'Yes'. Also note that all templates should use the following format if this setting is enabled:<tr>
<td class="$bgclass"> <!-- Your code here --> </td>
</tr>