Adding Google Adsense to ActiveModules’ ActiveForums

  1. Go to the forum control panel, Templates.
  2. If want to modify the ForumView, click on it and insert your Adsense code after the very first [BREADCRUMB], ie:

    <%@ Register TagPrefix="am" TagName="ForumJump" Src="~/DesktopModules/NTForums/controls/af_forumjump.ascx"%>
    <%@ Register TagPrefix="am" TagName="Stats" Src="~/DesktopModules/NTForums/controls/af_stats.ascx"%>
    <%@ Register TagPrefix="am" TagName="WhosOnline" Src="~/DesktopModules/NTForums/controls/af_whosonline.ascx"%>
    [BREADCRUMB]
    <p align="center">
    <script type="text/javascript"><!--
    google_ad_client = "pub-8897283981585073";
    /* RTC-ImgTxtMiddleContent 728x90, created 6/29/09 */
    google_ad_slot = "0335233866";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </p>
    [GROUPSECTION]
  3. If you want to modify the TopicView, click on it and insert your Adsense code in a new table row just before the end of the [TOPIC] section, ie:

    <tr><td colspan="2" style="border: 1px solid #ccc;text-align:center">
    <script type="text/javascript"><!--
    google_ad_client = "pub-8897283981585073";
    /* RTC-ImgTxtMiddleContent 728x90, created 6/29/09 */
    google_ad_slot = "0335233866";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>   
    </td></tr>    
    [/TOPIC]

  4. If you want to modify the TopicsView, you’re on your own.  Just follow the above examples.

Note:  I did this with ActiveForums v3.7.0.12761.

Print | posted on Thursday, September 17, 2009 9:20 AM

Feedback

No comments posted yet.

Your comment:





 
 

Copyright © Lance Robinson

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski