Skip to content

ARCHIVED

!注意“归档”

This chapter has not been updated for the current version of Orchard, and has been ARCHIVED.

Scenarios

方案

A user can comment content entries

用户可以评论内容条目

  1. User browses the site and wants to comment a blog post

1.用户浏览网站并想评论博客文章

  1. User scrolls down to the bottom of the post and starts entering the mandatory information: name, e-mail and comment. He also enters the URL of his own blog and checks "remember me" so that he doesn't have to enter that information when he returns. He clicks the "add comment" button.

2.用户向下滚动到帖子的底部并开始输入必填信息:姓名,电子邮件和评论。他还输入了自己博客的URL并检查“记住我”,以便他在返回时不必输入该信息。他点击“添加评论”按钮。

Validation rules check that the e-mail, name and text was entered before validating the comment.

验证规则检查在验证注释之前是否输入了电子邮件,名称和文本。

When "remember me" is checked, a cookie with a long expiration is set on the client to store the information to remember.

选中“记住我”时,会在客户端上设置一个长期过期的cookie,以存储要记住的信息。

  1. The comment is published after validation by the spam filter.

3.评论在垃圾邮件过滤器验证后发布。

A user can receive notifications when answers to his comments are published

用户可以在发布其评论的答案时接收通知

  1. When adding a comment, a user can check "receive e-mail notifications for new comments on this post".

1.添加评论时,用户可以选中“接收有关此帖子的新评论的电子邮件通知”。

  1. A new comment gets added to the same post.

2.新评论会添加到同一篇文章中。

  1. The user receives an e-mail to notify him of the new comment.

3.用户收到一封电子邮件,通知他新的评论。

The e-mail contains the text of the new comment and a link (using a # anchor) to the new comment.

电子邮件包含新评论的文本和新评论的链接(使用#锚)。

Status: Not implemented yet

状态:尚未实施

A user can subscribe to the comments feed for any item

用户可以订阅任何项目的评论供稿

  1. The user can use the feed icon for the comment stream to add it to his favorite feed reader (modus operandi varies with readers and browsers).

1.用户可以使用评论流的提要图标将其添加到他最喜欢的提要阅读器(操作方式因阅读器和浏览器而异)。

  1. New comments get published.

2.新评论发表。

  1. User sees the new comments in feed reader.

3.用户在Feed阅读器中看到新评论。

Status: Not implemented yet

状态:尚未实施

The site administrator gets notified when new comments are added

添加新注释时会通知站点管理员

  1. A user adds a comment.

1.用户添加评论。

  1. The administrator receives an e-mail with a link to the admin UI for comments.

2.管理员收到一封电子邮件,其中包含指向管理UI的链接以供注释。

  1. The administrator can then click on a comment and moderate it or click the link to the content item in order to answer the new comment.

3.然后,管理员可以单击评论并对其进行调节,或者单击指向内容项的链接以回答新评论。

Status: Not implemented yet

状态:尚未实施

The site administrator can manage comments

站点管理员可以管理评论

  1. The administrator of the site clicks "Manage comments" from the admin UI's global menu or from a "manage comments for this item" link at the bottom of the admin UI for a specific content item or from an alert e-mail he received from the site.

1.网站管理员点击管理界面的全局菜单中的“管理评论”或管理界面底部的“管理此项评论”链接,查看特定内容项目或收到的警报电子邮件来自网站。

  1. He checks the checkbox in front of a bunch of comments he recognizes as spam, chooses the "Delete" bulk action and clicks "Apply".

2.他在一堆他认为是垃圾邮件的评论前面勾选复选框,选择“删除”批量操作并点击“应用”。

  1. He clicks on a specific unpublished comment, reads it and then clicks "publish".

3.他点击一个特定的未发表的评论,阅读它,然后点击“发布”。

  1. The new comment can be read by anyone.

任何人都可以阅读新评论。

The site administrator can configure comment publication rules

站点管理员可以配置注释发布规则

  1. The administrator goes to the permission administration screen.

1.管理员转到权限管理屏幕。

  1. He changes the "Add a comment without validation" right to apply only to authenticated users.

2.他更改了“未经验证添加评论”权限,仅适用于经过身份验证的用户。

  1. Comments by non-authenticated users are not published by default anymore, but only when an administrator publishes them.

3.默认情况下,非身份验证用户的注释不再发布,但仅在管理员发布时才会发布。

A content owner can close comments on his items

内容所有者可以关闭对其项目的评论

  1. A content author feels the comment thread on one of his blog posts is spinning out of control into a troll fest.

内容作者认为他的一篇博客文章中的评论主题正在失控,成为一个巨魔节目。

  1. He clicks "Close comments on this item".

2.他点击“关闭此项目的评论”。

  1. No new comments can be added.

3.无法添加新评论。

Comments are threaded

评论是有线的

  1. A user sees a specific comment he wants to answer.

1.用户看到他想要回答的特定评论。

  1. He clicks the "reply" button next to that specific comment.

2.他点击该特定评论旁边的“回复”按钮。

  1. He types an answer that is stored as an answer to the original comment.

他输入的答案存储为原始评论的答案。

  1. The resulting new comment gets added at the end of the comment thread and has a link to the original comment.

4.结果新注释将添加到注释线程的末尾,并具有指向原始注释的链接。

Authenticated users and author comments appear different

经过身份验证的用户和作者评论显示不同

  1. An author answers a comment on one of his content items.

1.作者回答对他的一个内容项的评论。

  1. His comment appears in the comment thread with a different style.

他的评论出现在评论主题中,风格各异。

Note: authenticated users' comments could also appear differently (from non-authenticated and also from author comments) as they can have a different weight in people's minds on some sites.

注意:经过身份验证的用户的评论也可能显示不同(来自未经过身份验证的评论,也来自作者评论),因为他们在某些网站上可能会有不同的权重。

Spam protection

垃圾邮件保护

Spam protection is strictly necessary on a comment feature but is difficult to implement. Fortunately, many solutions already exist and can be integrated into existing applications.

垃圾邮件保护对于评论功能是绝对必要的,但很难实现。幸运的是,许多解决方案已经存在并且可以集成到现有应用程序中。

The comment infrastructure should be ready to be extended with various spam protection technologies such as CAPTCHA or Akismet. We will integrate Akismet by default and make it easy for users to obtain their own Akismet key.

评论基础设施应该随着各种垃圾邮件保护技术(如CAPTCHA或Akismet)进行扩展。我们将默认集成Akismet,使用户可以轻松获得自己的Akismet密钥。

Administrators can mark comments as spam rather than delete them, which could result in the comment being fed into the spam protection provider's feedback service.

管理员可以将评论标记为垃圾邮件而不是删除它们,这可能会导致评论被输入垃圾邮件保护提供商的反馈服务。

Permissions

权限

In this context, the owner is the owner of the content item being commented (the container of the comments).

在此上下文中,所有者是被注释的内容项的所有者(注释的容器)。

Permission | Anon. | Authentic. | Owner | Admin. | Author | Editor

许可|匿名。 |真实。 |所有者|管理员。 |作者|编辑

------------------------------------------------ | ----- | ---------- | ----- | ------ | ------ | ------

  • | ----- | ---------- | ----- | ------ | ------ | ------

Add Comments | Yes | Yes | Yes | Yes | Yes | Yes

添加评论|是的|是的|是的|是的|是的|是

Manage Comments (implies all others) | No | No | Yes | Yes | No | Yes

管理评论(暗示所有其他人)|没有|没有|是的|是的|没有|是

Close Comments | No | No | Yes | Yes | Yes | Yes

关闭评论|没有|没有|是的|是的|是的|是

Moderate comments | No | No | Yes | Yes | No | Yes

适度的评论|没有|没有|是的|是的|没有|是