
I have another question if you don't mind.
I tried your suggestion below but my AdSense code is still being generated on the news/index.php page
Quote:
JMorris wrote:
2 things...
1. If you don't qualify that you only want the article to be displayed on the full article page, you'll violate Google's terms of only displaying 3 ad blocks on a page. The same template that is used for the full article page is used for the module index.
Here's the code I'm using on one of my sites.<table cellpadding="0" cellspacing="0" class="item">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="98%">
<tr>
<td class="itemHead"><span class="itemTitle"><{$story.title}>span>td>
tr>
<tr>
<td class="itemInfo"><{if $story.files_attached}><{$story.attached_link}> <{/if}><{if $story.poster != ''}><span class="itemPoster"><{$lang_postedby}> <{$story.poster}>span><{/if}> <span class="itemPostDate"><{$lang_on}> <{$story.posttime}>span> (<span class="itemStats"><{$story.hits}> <{$lang_reads}>span>) <{$news_by_the_same_author_link}>td>
tr>
<tr>
<td>[b]<{if $SCRIPT_NAME != '/modules/news/index.php'}><div class="gads">div><{/if}>[/b]<div class="itemBody"><{$story.imglink}><p class="itemText"><{$story.text}>p>div>td>
tr>
<tr>
<td class="itemFoot"><span class="itemAdminLink"><{$story.adminlink}>span><{if $rates}><b><{$lang_ratingc}>b> <{$story.rating}> (<{$story.votes}>) - <a href="<{$xoops_url}>/modules/news/ratenews.php?storyid=<{$story.id}>" rel="nofollow"><{$lang_ratethisnews}>a> - <{/if}><span class="itemPermaLink"><{$story.morelink}>span>td>
tr>
table>
td>
tr>
table>
Instead of putting the CSS inline, I did class="gads" and created the .gads definition in my style.css file.
2. If you're just adding Adsense to your site, it may take a day or two even for the public service ads to show up.
HTH.
James