在Ruby on Rails上创建我自己的评论/问答系统,还是仅仅使用Disqus或激烈的争论?

时间:2021-04-10 21:11:08

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.).

我的网站需要认证,所以它有会员资格。我不知道我是应该为用户创建自己的评论系统来讨论/评论一篇文章,还是应该使用第三方的评论系统,比如Disqus或激烈的辩论,这需要独立的账号(Twitter、Facebook等)。

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.

事实上,如果有一个指南来创建我自己的评论系统或Q&A系统,让用户在我的网站上讨论某篇文章,那就更好了。如果你知道的话,请让我知道。

Thanks.

谢谢。

2 个解决方案

#1


3  

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.

也就是说,你自己的优势在于你完全控制了他们的工作方式。我需要一个合适的系统/队列,我需要用一种特定的方式来工作。其次,有一天我将寻求整合一个“社区声誉”系统,这是我自己的另一个优势。这些事情我不想让第三方解决方案在我的控制之外,而且第三方并不总是有这么灵活的API来修改。

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.

另一方面,如果您的需求更简单,Disqus(或类似的第三方评论系统)可能是您的拿手好戏。首先,你很容易起床跑步,也许你真正需要的就是这些。所有使用Disqus的用户都可以使用它,这可能会为那些厌倦了为100万个网站注册100万个账户的用户带来便利。Disqus还内置了工具(用于垃圾邮件、巨魔等),这也很方便。

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.

如果您使用用户帐户滚动自己的解决方案,您可以集成Facebook/Twitter等登录,使注册过程更容易。但总的来说,就像我说的,这要看你需要多少复杂的东西。

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.

如果你喜欢的话,一个不错的开始是最近的一集关于祖先宝石http://railscasts.com/episode des/262-trees-with-ancestry的片段,它会给你一个构建线程化评论的良好开端。

#2


1  

Something in the middle :) Use the acts_as_commentable plugin :

使用acts_as_commentable插件:

https://github.com/jinzhu/acts_as_commentable

https://github.com/jinzhu/acts_as_commentable

#1


3  

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.

也就是说,你自己的优势在于你完全控制了他们的工作方式。我需要一个合适的系统/队列,我需要用一种特定的方式来工作。其次,有一天我将寻求整合一个“社区声誉”系统,这是我自己的另一个优势。这些事情我不想让第三方解决方案在我的控制之外,而且第三方并不总是有这么灵活的API来修改。

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.

另一方面,如果您的需求更简单,Disqus(或类似的第三方评论系统)可能是您的拿手好戏。首先,你很容易起床跑步,也许你真正需要的就是这些。所有使用Disqus的用户都可以使用它,这可能会为那些厌倦了为100万个网站注册100万个账户的用户带来便利。Disqus还内置了工具(用于垃圾邮件、巨魔等),这也很方便。

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.

如果您使用用户帐户滚动自己的解决方案,您可以集成Facebook/Twitter等登录,使注册过程更容易。但总的来说,就像我说的,这要看你需要多少复杂的东西。

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.

如果你喜欢的话,一个不错的开始是最近的一集关于祖先宝石http://railscasts.com/episode des/262-trees-with-ancestry的片段,它会给你一个构建线程化评论的良好开端。

#2


1  

Something in the middle :) Use the acts_as_commentable plugin :

使用acts_as_commentable插件:

https://github.com/jinzhu/acts_as_commentable

https://github.com/jinzhu/acts_as_commentable