-
Website
http://blog.disqus.com/ -
Original page
-
Subscribe
All Comments -
Community
-
Top Commenters
-
donnacha | WordSkill
37 comments · 11 points
-
Jason
164 comments · 22 points
-
Mike Olbinski
88 comments · 17 points
-
Daniel Ha
2195 comments · 396 points
-
Rob Loach
45 comments · 27 points
-
-
Popular Threads
-
Disqus: The Official Blog - Disqus Comments: Translated in over 40 languages
5 days ago · 27 comments
-
Disqus: The Official Blog - Disqus Comments: Moderating comments from your Post
2 weeks ago · 68 comments
-
Disqus: The Official Blog - Disqus Comments: Closing comments on Wordpress and some bug fixes
4 weeks ago · 85 comments
-
DISQUS | Service Status - Maintenance window
23 hours ago · 1 comment
-
DISQUS | Service Status - Everything is back to normal.
2 days ago · 2 comments
-
Disqus: The Official Blog - Disqus Comments: Translated in over 40 languages
Yup, the unique article identifier is the URL. Each new URL is a different
thread on Disqus.
Let me know if you need anything.
This is the blog template code at the moment :-
< div class="posted">
< br />$template_postedby < span class="item-creator">$NB_EntryAuthor< /span>
$([ "$PERMALINKS" = "1" ] && echo '| < a class="link" href="'${ARCHIVES_PATH}$NB_EntryPermalink'">'$template_permlink'< /a>')
$([ ! -z "$NB_EntryCategories" ] && echo "| $template_catlinks $NB_EntryCategories" |sed -e '{$ s/\,$//; }')
< div id="disqus_thread">< /div>< script type="text/javascript" src="http://disqus.com/forums/notabene/embed.js">< /script>< noscript>< a href="http://notabene.disqus.com/?url=ref">View the forum thread.< /a>< /noscript>
< /div>
So you can see that the URL of the article itself will be '${ARCHIVES_PATH}$NB_EntryPermalink'
However the Disqus code is purely generated by <script type="text/javascript" src="http://disqus.com/forums/notabene/embed.js"></script> and I don't know how to pass parameters into that (I'm not much of a javascript person)
I've grabbed that script, and it seems as if the implied link is coming via :-
var disqus_href = window.location.href;
This gets built up into disqus_url, which is passed into thread.js ...
disqus_script.src = 'http://disqus.com/forums/notabene/thread.js'
+ '?url=' + encodeURI(disqus_url)
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 ...
Or is there something else I've missed?
<script type="text/javascript">
var disqus_url = '$PERMALINK';
</script>
<!-- General JavaScript snippet goes here -->
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://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.)
At this stage I think I'll have to 'ignore' this, certainly it isn't disqus' fault :-)
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!
http://nb.inode.co.nz/archives/2007/11/09/index...