Geeks With Blogs

Lance's TextBox
  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.

Posted on Thursday, September 17, 2009 9:20 AM General | Back to top


Comments on this post: Adding Google Adsense to ActiveModules’ ActiveForums

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Lance Robinson | Powered by: GeeksWithBlogs.net