<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>The Disqus Blog - Latest Comments in A thread per-article from a blog?</title><link>http://disqus.disqus.com/</link><description>The Official Disqus Blog.</description><language>en</language><lastBuildDate>Thu, 08 Nov 2007 23:03:41 -0000</lastBuildDate><item><title>Re: A thread per-article from a blog?</title><link>http://disqus.disqus.com/a_thread_per_article_from_a_blog/#comment-10211</link><description>Sweet!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">danielha</dc:creator><pubDate>Thu, 08 Nov 2007 23:03:41 -0000</pubDate></item><item><title>Re: A thread per-article from a blog?</title><link>http://disqus.disqus.com/a_thread_per_article_from_a_blog/#comment-10205</link><description>Thanks for your help -- all working now!&lt;br&gt;&lt;a href="http://nb.inode.co.nz/archives/2007/11/09/index.html#e2007-11-09T03_51_54.txt" rel="nofollow"&gt;http://nb.inode.co.nz/archives/2007/11/09/index...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">inode</dc:creator><pubDate>Thu, 08 Nov 2007 22:55:38 -0000</pubDate></item><item><title>Re: A thread per-article from a blog?</title><link>http://disqus.disqus.com/a_thread_per_article_from_a_blog/#comment-10178</link><description>Yeah, some of the linking is odd -- it basically puts all blog entries from the same day on the same page, hence the anchoring to identify which one you want.&lt;br&gt;&lt;br&gt;At this stage I think I'll have to 'ignore' this, certainly it isn't disqus' fault :-)&lt;br&gt;&lt;br&gt;Thanks for that code snippet, now I know what to look for in embed.js I see the whole "if undefined" set of code :-) Some more stuff to play with!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">inode</dc:creator><pubDate>Thu, 08 Nov 2007 21:29:53 -0000</pubDate></item><item><title>Re: A thread per-article from a blog?</title><link>http://disqus.disqus.com/a_thread_per_article_from_a_blog/#comment-10160</link><description>You can pass the permalink of each post to the script as such:&lt;br&gt;&lt;code&gt;&lt;br&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;var disqus_url = '$PERMALINK';&lt;br&gt;&amp;lt;/script&amp;gt;&lt;br&gt;&amp;lt;!-- General JavaScript snippet goes here --&amp;gt;&lt;br&gt;&lt;/code&gt;&lt;br&gt;One thing I've noticed on your blog is that permalinks anchor to the post, though we ignore anchors for permalinks.  You can overcome that if you change the links to a query string when you pass it into disqus_url above.  (e.g., set disqus_url to http&amp;#58;//nb.inode.co.nz/archives/2007/10/31/index.html?e2007-10-31T11_05_34.txt -- the change I made was replacing '#' with '?' in your permanent link.)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jason</dc:creator><pubDate>Thu, 08 Nov 2007 20:42:49 -0000</pubDate></item><item><title>Re: A thread per-article from a blog?</title><link>http://disqus.disqus.com/a_thread_per_article_from_a_blog/#comment-10154</link><description>The clue is a start, but a slightly targetted example would be better!&lt;br&gt;&lt;br&gt;This is the blog template code at the moment :-&lt;br&gt;&lt;br&gt;    &amp;lt; div class="posted"&amp;gt;&lt;br&gt;        &amp;lt; br /&amp;gt;$template_postedby &amp;lt; span class="item-creator"&amp;gt;$NB_EntryAuthor&amp;lt; /span&amp;gt;&lt;br&gt;$([ "$PERMALINKS" = "1" ] &amp;&amp; echo '| &amp;lt; a class="link" href="'${ARCHIVES_PATH}$NB_EntryPermalink'"&amp;gt;'$template_permlink'&amp;lt; /a&amp;gt;')&lt;br&gt;$([ ! -z "$NB_EntryCategories" ] &amp;&amp; echo "| $template_catlinks $NB_EntryCategories" |sed -e '{$ s/\,$//; }')&lt;br&gt;&amp;lt; div id="disqus_thread"&amp;gt;&amp;lt; /div&amp;gt;&amp;lt; script type="text/javascript" src="http://disqus.com/forums/notabene/embed.js"&amp;gt;&amp;lt; /script&amp;gt;&amp;lt; noscript&amp;gt;&amp;lt; a href="http://notabene.disqus.com/?url=ref"&amp;gt;View the forum thread.&amp;lt; /a&amp;gt;&amp;lt; /noscript&amp;gt;&lt;br&gt;    &amp;lt; /div&amp;gt;&lt;br&gt;&lt;br&gt;So you can see that the URL of the article itself will be '${ARCHIVES_PATH}$NB_EntryPermalink'&lt;br&gt;&lt;br&gt;However the Disqus code is purely generated by &amp;lt;script type="text/javascript" src="http://disqus.com/forums/notabene/embed.js"&amp;gt;&amp;lt;/script&amp;gt; and I don't know how to pass parameters into that (I'm not much of a javascript person)&lt;br&gt;&lt;br&gt;I've grabbed that script, and it seems as if the implied link is coming via :-&lt;br&gt;var disqus_href = window.location.href;&lt;br&gt;This gets built up into disqus_url, which is passed into thread.js ...&lt;br&gt;disqus_script.src = 'http://disqus.com/forums/notabene/thread.js'&lt;br&gt;        + '?url='                       + encodeURI(disqus_url)&lt;br&gt;&lt;br&gt;&lt;br&gt;Do you think I should grab a local copy of embed.js and modify that, instead of using the one hosted on disqus? I don't think that's a good strategy as I'm sure to miss any development work that will go into that script over time ...&lt;br&gt;&lt;br&gt;Or is there something else I've missed?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">inode</dc:creator><pubDate>Thu, 08 Nov 2007 20:22:48 -0000</pubDate></item><item><title>Re: A thread per-article from a blog?</title><link>http://disqus.disqus.com/a_thread_per_article_from_a_blog/#comment-10130</link><description>Hi inode,&lt;br&gt;&lt;br&gt;Yup, the unique article identifier is the URL. Each new URL is a different&lt;br&gt;thread on Disqus.&lt;br&gt;&lt;br&gt;Let me know if you need anything.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">danielha</dc:creator><pubDate>Thu, 08 Nov 2007 18:34:02 -0000</pubDate></item></channel></rss>