Skip to content

Instantly share code, notes, and snippets.

Created February 27, 2012 06:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Typepad connect comments in advanced template
<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 type="text/javascript" src="<$MTEntryXID$>"></script>
<script type="text/javascript" src=""></script>
<noscript><a href="<$MTEntryPermalink$>">View the entire comment thread.</a></noscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment