Disqus评论计数总是0评论

编程入门 行业动态 更新时间:2024-10-27 20:31:23
本文介绍了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.

担任此职务: 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评论

本文发布于:2023-10-23 08:22:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1520302.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Disqus

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!