我认为我已经按照通用代码的指示设置了Disqus.
I think I've set up Disqus as instructed for universal code.
麻烦的是,它总是说一个帖子有0条评论.
Trouble is that it always says that a post has 0 comments.
担任此职务: tx0rx0/retropie-and-the-raspberry-pi/
铁饼说有11条评论,然后与首页进行比较
which discus says has 11 comments, and then compare to the front page
tx0rx0
我认为您所需要的只是指向页面的链接,该页面带有disqus注释并附加了#disqus_thread.像这样:
I thought all you needed was a link to the page with the disqus comments with #disqus_thread appended to it. Like so:
<a href="tx0rx0/retropie-and-the-raspberry-pi#disqus_thread>Comments</a>和具有正确短名称的javascript可以完成其余的工作.我哪里做错了?还有,为什么在那里有一段时期?
and the javascript with correct shortname would do the rest. Where did I go wrong? Also, why is there a period there?
推荐答案注释计数查找的协议和尾部斜杠的存在很重要.试试这个:
The protocol and presence of trailing slashes matter when it comes to comment count lookups. Try this:
<a href="tx0rx0/retropie-and-the-raspberry-pi/#disqus_thread">Comments</a>您还可以考虑将"disqus_identifier"和"disqus_url"与注释嵌入一起使用,然后可以在注释计数链接中使用它们,如下所示:
You might also consider using a 'disqus_identifier' and 'disqus_url' with the commenting embed, which you can then use in the comment count link like this:
<a href="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 comment count links.
更多推荐
Disqus评论计数总是0评论
发布评论