admin管理员组文章数量:1290103
I think I've set up Disqus as instructed for universal code.
Trouble is that it always says that a post has 0 ments.
Take this post: /
which discus says has 11 ments, and then pare to the front page
I thought all you needed was a link to the page with the disqus ments with #disqus_thread appended to it. Like so:
<a href="tx0rx0/retropie-and-the-raspberry-pi#disqus_thread>Comments</a>
and the javascript with correct shortname would do the rest. Where did I go wrong? Also, why is there a period there?
I think I've set up Disqus as instructed for universal code.
Trouble is that it always says that a post has 0 ments.
Take this post: http://tx0rx0./retropie-and-the-raspberry-pi/
which discus says has 11 ments, and then pare to the front page
http://tx0rx0.
I thought all you needed was a link to the page with the disqus ments with #disqus_thread appended to it. Like so:
<a href="tx0rx0./retropie-and-the-raspberry-pi#disqus_thread>Comments</a>
and the javascript with correct shortname would do the rest. Where did I go wrong? Also, why is there a period there?
Share Improve this question asked Sep 3, 2013 at 1:38 ciicii 1532 silver badges13 bronze badges1 Answer
Reset to default 12The protocol and presence of trailing slashes matter when it es to ment count lookups. Try this:
<a href="http://tx0rx0./retropie-and-the-raspberry-pi/#disqus_thread">Comments</a>
You might also consider using a 'disqus_identifier' and 'disqus_url' with the menting embed, which you can then use in the ment count link like this:
<a href="http://tx0rx0./retropie-and-the-raspberry-pi/#disqus_thread" data-disqus-identifier="some_identifier_for_thread">Comments</a>
This will normalize the data between what is passed to us, and what you're expecting when you render the ment count links.
本文标签: javascriptDisqus Comment Count Always 0 CommentsStack Overflow
版权声明:本文标题:javascript - Disqus Comment Count Always 0 Comments - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741491544a2381642.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论