Google Adsence Banner "Exclude Private Forums"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MRGTB
    Senior Member
    • May 2005
    • 5454

    Google Adsence Banner "Exclude Private Forums"

    Google Adsence Banner "Exclude Private Forums"

    This adsence box if placed below the $navbar code in the FORUMHOME, SHOWTHREAD and FORUMDISPLAY templates. Will show your adsence banners on multiple pages all across your forum.

    With this though, you can exclude certain categorys and forum ID's. So the adsence banners will not be displayed in them and get indexed in Google. If you have configured a certain category and forum boards in it to be private for staff viewing only. And have configured them to not be listed in the forums search and jump menu. You can use this code below to exclude banners from them.

    Code:
    <!-- adsence block start -->
    <if condition="!in_array($forumid, array([COLOR=red]16,17,18,19[/COLOR]))">
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tbody>
    <tr>
    <td class="tcat">
    <!-- title start -->
    Site Sponsor
    <!-- title end -->
    </td>
    </tr>
    <tr>
    <td class="alt1">
    <!-- code start -->
    <center>
    [B]PUT YOUR ADSENCE CODE HERE[/B]
    </center>
    <!-- code end -->
    </td>
    </tr>
    </tbody>
    </table>
    <br />
    </if>
    <!-- /adsence block end -->
    The numbers you see highlighted in RED are the category and forum ID's that you exclude the adsence banners from being displayed in.

    For example, I have a private category that contains 3 forums in it. So the example above shows how I exclude the adsence banner from being displayed in that category and the forums in it.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...