Index: trunk/Vanilla/plugins/Vanilla/config.yaml
===================================================================
--- trunk/Vanilla/plugins/Vanilla/config.yaml (revision 1220)
+++ trunk/Vanilla/plugins/Vanilla/config.yaml (revision 1255)
@@ -386,4 +386,32 @@
                 wrapper:
                     label: Wrapper
+    vanilla_typepad_connect:
+        label: Vanilla + TypePad Connect
+        base_path: templates/vanilla+typepad-connect-comments
+        order: 512
+        notes: 
+            - Sample implementation of TypePad Connect Commenting.
+            - Abstracting Configuration into Module
+            - Option for integrating MT and TP comments
+        templates:
+            index:
+                home:
+                    label: Homepage
+                    outfile: index.html
+            individual:
+                entry: 
+                    label: Entry
+                    mappings:
+                        entry_archive:
+                            archive_type: Individual
+            module:
+                wrapper:
+                    label: Wrapper
+                typepad_config:
+                    label: TypePad Connect Configuration
+                typepad_comments:
+                    label: TypePad Connect Comments
+                tp_and_mt_comments:
+                    label: TypePad and Movable Type Comments
 
 
Index: trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/home.mtml
===================================================================
--- trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/home.mtml (revision 1255)
+++ trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/home.mtml (revision 1255)
@@ -0,0 +1,20 @@
+<!--
+    == STEP 4 ==
+    Include TypePad Connect Configuration Module on entry listing pages.
+-->
+<$mt:Include module="TypePad Connect Configuration"$>
+
+<mt:IncludeBlock module="Wrapper">
+
+    <mt:Entries>
+        <h2><a href="<$mt:EntryPermalink$>"><$mt:EntryTitle$></a></h2>
+        <p><a href="<$mt:EntryPermalink$>#comments">Leave a comment</a></p>
+        <mt:Ignore>
+        <!--
+            The text in the link "Leave a comment" will be replaced by
+            "Comments (2)" if two comments have been left via TypePad Connect.
+        -->
+        </mt:Ignore>
+    </mt:Entries>
+
+</mt:IncludeBlock>
Index: trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/tp_and_mt_comments.mtml
===================================================================
--- trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/tp_and_mt_comments.mtml (revision 1255)
+++ trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/tp_and_mt_comments.mtml (revision 1255)
@@ -0,0 +1,36 @@
+<!-- Create a variable with the entry date as the value. -->
+<mt:SetVarBlock name="entry_date"><$mt:EntryCreatedDate format="%Y%m%d"$></mt:SetVarBlock>
+
+<mt:If name="entry_date" gt="$switch_date">
+    <!--
+        If entry_date is greater than the date TypePad Connect Commenting was 
+        implemented, then use TypePad Commenting Code... 
+    -->
+
+    <$mt:Include module="TypePad Connect Comments"$>
+
+<mt:Else>
+    <!--
+        Otherwise use Movable Type Commenting Code
+    -->
+
+    <!-- Replace this html comment with your exisiting MT comments code. -->
+
+</mt:If>
+
+
+
+
+<mt:Ignore>
+<!--
+    If you want to publish all comments left in MT to date, but then use
+    TypePad Connect Commenting for all new comments, use the below Unless
+    conditional code instead of the If tag conditional above:
+-->
+
+    <mt:Unless name="entry_date" gt="$switch_date">
+        <!-- Replace this html comment with the comments code, but not the commenting form. -->
+    </mt:Unless>
+    <$mt:Include module="TypePad Connect Comments"$>
+
+</mt:Ignore>
Index: trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/typepad_comments.mtml
===================================================================
--- trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/typepad_comments.mtml (revision 1255)
+++ trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/typepad_comments.mtml (revision 1255)
@@ -0,0 +1,45 @@
+<!--
+    The below markup is here to mimic markup found in Movable Type default tempaltes.
+    Customize per your preference.
+-->
+<mt:IfCommentsActive>
+<!-- If comments are accepted, then do this... -->
+<div id="comments" class="comments">
+
+
+    <mt:IfCommentsAccepted>
+    <div class="comments-open" id="comments-open">
+        <h2 class="comments-open-header"><__trans phrase="Comments"></h2>
+        <div class="comments-open-content">
+
+
+<!-- Start - TypePad Connect Code -->
+            <div id="tpc_thread"></div>
+            <div style="display:none;" id="tpc_post_title"><$MTEntryTitle$></div>
+            <div style="display:none;" id="tpc_post_message"><$MTEntryBody$></div>
+            <script type="text/javascript">
+                var TPConnect = {};
+                TPConnect.tpc_url = '<$MTEntryPermalink$>';
+                TPConnect.tpc_title = document.getElementById('tpc_post_title').innerHTML;
+                TPConnect.tpc_message = document.getElementById('tpc_post_message').innerHTML;
+            </script>
+            <script type="text/javascript" src="http://profile.typepad.com/services/embed/tpc/<$mt:Var name="blog_code"$>/embed.js?permalink=<$MTEntryPermalink$>"></script>
+            <script type="text/javascript" src="http://static.typepad.com/.shared/js/profile/blogside.js"></script>
+            <noscript><a href="http://profile.typepad.com/services/embed/tpc/<$mt:Var name="blog_code"$>/thread?permalink=<$MTEntryPermalink$>">View the entire comment thread.</a></noscript>
+<!-- End - TypePad Connect Code -->
+
+
+        </div>
+    </div>
+
+
+    <mt:Else>
+
+
+    <!-- If comments are NOT accepted, then do this... -->
+    <p><__trans phrase="Commenting is closed."></p>
+
+
+    </mt:IfCommentsAccepted>
+</div>
+</mt:IfCommentsActive>
Index: trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/typepad_config.mtml
===================================================================
--- trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/typepad_config.mtml (revision 1255)
+++ trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/typepad_config.mtml (revision 1255)
@@ -0,0 +1,12 @@
+<!--
+    == STEP 1 ==
+    Enter the unique id for your blog as the value of "blog_code" in this template
+-->
+<$mt:Var name="blog_code" value="abc123abc123abc123abc123abc123abc1"$>
+<!--
+    == STEP 2 == (only necessary if combining MT and TP commenting on the same blog)
+    Update value of the below IF tag gt (greater-than) attribute with the date you
+    are switching to TypePad Connect. The date should be formatted as YYYYMMDD
+    eg. Christmas 2008 would be "20081225"
+-->
+<$mt:Var name="switch_date" value="20081225"$>
Index: trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/wrapper.mtml
===================================================================
--- trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/wrapper.mtml (revision 1255)
+++ trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/wrapper.mtml (revision 1255)
@@ -0,0 +1,33 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
+<head>
+    <title><$mt:BlogName encode_html="1"$></title>
+    <meta http-equiv="Content-Type" content="text/html; charset=<$mt:PublishCharset$>" />
+</head>
+<body>
+
+    <h1><a href="<$mt:BlogURL$>"><$mt:BlogName encode_html="1"$></a> + <__trans phrase="TypePad Connect Comments"></h1>
+
+<!-- end header --><hr />
+
+
+    <$mt:Var name="contents"$>
+
+
+<!-- start footer --><hr />
+
+    <p><__trans phrase="_POWERED_BY"> and the Vanilla template set</p>
+
+
+<!--
+    == STEP 3 ==
+    TypePad Connect Script for updating the comment counts on listing templates.
+    This script tag should be placed before the </body> tag on any page having a
+    listing of entries with comment counts. If you have a common footer module
+    (or other footer include file), place this script in that module.
+-->
+<script type="text/javascript" src="http://profile.typepad.com/services/embed/tpc/<$mt:Var name="blog_code"$>/counts_embed.js"></script>
+
+</body>
+</html>
Index: trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/entry.mtml
===================================================================
--- trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/entry.mtml (revision 1255)
+++ trunk/Vanilla/plugins/Vanilla/templates/vanilla+typepad-connect-comments/entry.mtml (revision 1255)
@@ -0,0 +1,28 @@
+<!--
+    == STEP 5 ==
+    Include TypePad Connect Configuration Module on entry detail.
+-->
+<$mt:Include module="TypePad Connect Configuration"$>
+
+<mt:IncludeBlock module="Wrapper">
+
+    <h1><$mt:EntryTitle$></h1>
+
+<!--
+    == STEP 6 ==
+    Include TypePad Connect Comments Module, if you don't need MT comments.
+-->
+
+    <!-- Use this for TypePad Connect Comments -->
+    <$mt:Include module="TypePad Connect Comments"$>
+
+<!--
+    == STEP 7 (optional) ==
+    Include TypePad Connect Comments Module, if you don't need your older comments.
+-->
+<mt:Ignore>
+    <!-- Use this for combined TP and MT comments -->
+    <$mt:Include module="TypePad and Movable Type Comments"$>
+</mt:Ignore>
+
+</mt:IncludeBlock>
Index: trunk/Vanilla/README.txt
===================================================================
--- trunk/Vanilla/README.txt (revision 1220)
+++ trunk/Vanilla/README.txt (revision 1255)
@@ -88,6 +88,11 @@
         
             delete from mt_objectscore where objectscore_namespace = 'NAMESPACE';
-        
-    
+
+    12. Vanilla + TypePad Connect Commenting
+        - Sample implementation of TypePad Connect Commenting.
+        - Abstracting Configuration into Module
+        - Option for integrating MT and TP comments
+
+
 ## INSTALLATION ##
 
