2
You would make this change in the thread template.
You need to
clone your default template before you can make changes to it.
Assuming you have a cloned template set go to the template manager and look for forum or whatever you have called the forum module on your site.
Click on the link that says
List and then look for a template called
newbb_thread.html and click
edit.
Originally it will look something like this (I am using Newbb2)
Quote:
<{$personal}><{$topic_post.poster_name}> |
---|
<{$topic_post.poster_userbar}> <{if $viewer_is_admin == true and $topic_post.poster_ip}> <{$smarty.const._MD_TOPICOPTIONADMIN}> |
---|
IP: <{$topic_post.poster_ip}> | <{/if}>
|
<{$topic_post.post_title}> | #<{$topic_post.post_no}> |
---|
<{if $topic_post.poster_uid != 0}> <{$topic_post.poster_rank_title}> <{$topic_post.poster_rank_image}> ![](<{$xoops_upload_url}>/<{$topic_post.poster_avatar}>) <{$smarty.const._MD_JOINED}>: <{$topic_post.poster_regdate}> <{$smarty.const._MD_FROM}> <{$topic_post.poster_from}> <{$smarty.const._MD_POSTS}>: <{$topic_post.poster_postnum}> <{if $groupbar_enable}> <{$smarty.const._MD_GROUP}> <{$topic_post.poster_groups}> <{/if}> <{$topic_post.poster_status}> <{else}> <{$anonymous_prefix}><{$topic_post.poster_uname}> <{/if}> |
<{$topic_post.post_text}>HERE <{if $topic_post.post_attachment}> <{$topic_post.post_attachment}> <{/if}> <{if $topic_post.post_edit}> <{$topic_post.post_edit}> <{/if}> |
<{if $topic_post.poster_sig}> _________________
<{$topic_post.poster_sig}>
<{/if}> |
|
You should see about half way down the code above I wrote
HERE This is where you would add your Adsense code.
However I think that I remember seeing that you should have no more than 3 instances of adsense on a single page
AND of course too many adds will distract from the content of the forums so you may want to add something like this:
<{if $topic_post.post_no == 1}><center><BR>[b]GOOGLE CODE HERE[/b]center><BR><{/if}>
I think there may be a FAQ giving this info on this site somewhere you may want to try doing a search for more information.
Dave
Edit:FAQ for adding Adsense code to Newbb or Cbb