在 Ruby on Rails 上创建我自己的评论/问答系统,还是只使用 Disqus 或 Intense Debate?

发布于 2024-11-12 22:35:02 字数 209 浏览 2 评论 0原文

我的网站需要身份验证,因此它具有会员资格。我想知道我是否应该创建自己的评论系统供用户讨论/评论文章,或者应该使用第三方评论系统,如 Disqus 或 Intense Debate,这需要单独的帐户(Twitter、Facebook 等)。

事实上,如果有一个指南来创建我自己的评论系统或问答系统,供用户讨论我网站上的特定文章,那就太好了。如果您知道的话,请告诉我。

谢谢。

My site requires authentication, so it has membership. I wonder if I should create my own comment system for user to discuss/comment on an article, or should just use third-party comment system like Disqus or Intense Debate, which requires seperate account (Twitter, Facebook, etc.).

In fact, it would be good if there is a guide to create my own comment system or Q&A system for users to discuss a particular article on my website. If you know of any, please lemme know.

Thanks.

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

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

发布评论

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

评论(2

薄凉少年不暖心 2024-11-19 22:35:02

我最近正在做一个项目,我必须权衡同样的事情。我最终决定发表自己的评论。

也就是说,自己开发的优点是您可以完全控制它们的工作方式。我需要一个审核系统/队列,我需要它以特定的方式工作。其次,有一天我会寻求整合一个“社区声誉”系统,所以这是我自己推出的另一个优点。我不想把这些事情留给我无法控制的第三方解决方案,而且第三方并不总是有如此灵活的 API 可以修改。

另一方面,如果您的需求更简单,Disqus(或类似的第三方评论系统)可能更适合您。其一,它很容易启动和运行,并且可能是您真正需要的。它的帐户可以使用 Disqus 进行任何操作,这可能会为那些厌倦了必须为一百万个网站注册一百万个帐户的用户赢得便利点。 Disqus 还具有内置工具(针对垃圾邮件、巨魔等),这也很方便。

如果您使用用户帐户推出自己的解决方案,您可以集成 Facebook/Twitter/等登录等功能,以使注册过程变得更容易。但总的来说,就像我说的,取决于你需要整个事情有多花哨或复杂。

如果您自己推出,一个好的开始是最近关于 Ancestry gem 的 Railscasts 剧集 http:/ /railscasts.com/episodes/262-trees-with-ancestry,它应该为您构建线程评论提供良好的开端。

I recently am working on a project where I had to weigh the same things. I eventually decided to roll my own comments.

Namely the advantage of rolling your own is that you have full control on how they work. I needed a moderation system/queue that I needed to work a specific way, for one. Second, someday I will be looking to integrate a 'community reputation' system, so that was another plus for rolling my own. Such things I don't want to leave to a third party solution outside of my control and the third parties don't always have such a flexible API to modify.

On the other hand, Disqus (or similar third party commenting systems) may be up your alley if your needs are more simple. For one, it's easy to get up and running and may be all you may really need. Accounts for it work across anything using Disqus, and that may win convenience points for your users who are sick and tired of having to sign up for a million accounts for a million websites. Disqus also has built in tools (for spam, trolls, etc) and that is also convenient.

If you go with rolling your own solution with user accounts, you can integrate things like Facebook/Twitter/etc login to make the registration process easier. But overall, like I said, depends on how fancy or complex you need the whole thing to be.

Should you roll your own, a good start is a recent Railscasts episode on the Ancestry gem http://railscasts.com/episodes/262-trees-with-ancestry, it should give you a good start on building threaded comments.

止于盛夏 2024-11-19 22:35:02

中间的东西:)使用acts_as_commentable插件:

https://github.com/jinzhu/acts_as_commentable

Something in the middle :) Use the acts_as_commentable plugin :

https://github.com/jinzhu/acts_as_commentable

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