评论系统:通过回调加载不同的评论线程

发布于 2024-09-18 15:47:56 字数 545 浏览 4 评论 0原文

我正在寻找具有特定功能的评论系统,我想知道是否有人可以提供建议。

我希望能够通过 JavaScript 回调加载不同的评论线程,而无需重新加载整个页面。这意味着我需要一个评论系统,允许多个评论线程与同一 URL 关联,并且线程由自定义 ID 定义。

我刚刚发现 Disqus 不可能做到这一点。尽管 Disqus 确实允许您关联 您选择的线程的唯一 ID,它还需要每个评论线程有一个唯一的 URL。

有谁知道有一个系统能够通过唯一 ID 将多个评论线程与同一 URL 关联起来?

不确定是否可以使用 IntenseDebate 或 Wordpress - 或者我可能需要编写一个自定义 Wordpress 插件(页面本身实际上位于 Wordpress 安装中)。

I'm looking for a commenting system with a specific feature, and I wondered if anyone could advise.

I want to be able to load different comment threads without reloading the entire page, via JavaScript callbacks. That means I need a commenting system that allows multiple comment threads to be associated with the same URL, with threads defined by custom IDs.

I've just found out this isn't possible with Disqus. Although Disqus does allow you to associate a unique ID of your choice with a thread, it also requires a unique URL for each comment thread.

Does anyone know a system that does offer the ability to associate multiple comment threads with the same URL, via unique IDs?

Not sure if it's possible with either IntenseDebate or Wordpress - or maybe I need to write a custom Wordpress plugin (the page itself will actually be within a Wordpress install).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不交电费瞎发啥光 2024-09-25 15:47:56

通过“黑客”comments.php 创建自己的自定义评论页面应该没有问题。
通过使用 jQuery 和 jQuery.load 您可以调用一个 php 页面,其中包含用于检索自定义注释的代码。

但搞乱 comments.php 并不是那么容易。因此此页面可能会有所帮助您可以在 comments.php 中获得见解。

这个答案并不能解决您的问题,但希望它能给您一些想法。

You should have no problems creating you own custom comment page by 'hacking' comments.php.
By using jQuery and jQuery.load you can call a php page where you have code to retrieve custom comments.

But messing about comments.php is not that easy. Therefore this page might help you get an insight in comments.php

This answer doesn't solve you problem, but hopefully it'll give you some ideas.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文