Disqus评论计数总是0评论 [英] Disqus Comment Count Always 0 Comments

查看:50
本文介绍了Disqus评论计数总是0评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为我已经按照通用代码的指示设置了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.

担任此职务: http://tx0rx0.com/retropie-and-the-raspberry-pi/

铁饼说有11条评论,然后与首页进行比较

which discus says has 11 comments, and then compare to the front page

http://tx0rx0.com

我认为您所需要的只是指向页面的链接,该页面带有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.com/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="http://tx0rx0.com/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="http://tx0rx0.com/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评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆