Skip to content

Instantly share code, notes, and snippets.

@65
Created February 27, 2012 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 65/1921885 to your computer and use it in GitHub Desktop.
Save 65/1921885 to your computer and use it in GitHub Desktop.
Typepad connect comments in advanced template
<MTEntryIfAllowComments>
<a id="comments"></a>
<h3 class="comments-header"><$MTTrans phrase="Comments"$></h3>
<div class="comments-content">
<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/6a01156f3d85e6970c015437a65194970c/embed.js?asset_id=<$MTEntryXID$>"></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/6a01156f3d85e6970c015437a65194970c/thread?permalink=<$MTEntryPermalink$>">View the entire comment thread.</a></noscript>
</div>
</MTEntryIfAllowComments>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment