I'm trying to get the DISQUS comments and comment counts associated with a particular image ID for my PHP site.
1) Get comment count:
To get comment count, I've followed DISQUS' guide, but it just gives me a link to where the comments are on the comic... and not the total number... They say:
Append #disqus_thread to the href attribute in your links. This will tell Disqus which links to look up and return the comment count. For example:
<a href="http://foo.com/bar.html#disqus_thread">Link</a>.
But how would I get that count if my url string was like this:
<a href=".?action=viewimage&site=comics&id=66">Link</a>
So my questions are:
- Where would I append #disqus_thread?
- How can I get the comments count from that one comic URL and display those total comments on another page? Why does it just give me a link to the comments and not the comment number for that associated comic?
2) Get specific comments, like most recent or most popular
I haven't really found any documentation on this with the exception of this where they say I'd probably need to write my own script...
Any thoughts?
Thanks!