Howfar对评论功能和样式设定一头雾水,刚好看到这篇文章,一面看,一面简单翻译一下,如果翻译完发现没用到,至少还能留在这里。 ------------------------------------------------------------------------------ 1 n n: i8 B# P6 m! D' {
The Comment module in Drupal allows users to comment on many types of site content, as allowed by the site administrator. Drupal的评论模块【Comment module】在得到管理员允许之后可以让用户对很多不同类型的内容进行评论,
$ {$ i4 B. }! k+ fUses使用) g+ ]; x Z% [+ C* h; y8 Z
1 k" X9 r4 i* LWhen Comment module is enabled, users can post comments to discuss a forum topic, a blog post, a book page, etc. Comments behave like other user submissions. Filters, smileys and HTML that work in nodes will also work with comments if configured accordingly. 评论模块启用时,用户可以发表评论,讨论论坛的主题,博客文章,书页,像其他用户提交的行为等的评论。如果相应的配置,过滤器【Filters】,标签和HTML节点中的工作也将与评论工作。
1 s5 y' j1 j* a; P# D+ YAs an administrator, you can specify the default comment settings for each content type. You can specify content permissions (for example, you can specify whether anonymous users can make comments). You can also specify whether comments are allowed for a specific node. 作为管理员,您可以指定每个内容类型设置默认的注释。您可以指定内容的权限(例如,您可以指定匿名用户是否可以提出意见) 。您还可以指定是否允许特定节点的意见。1 J0 i X3 U+ J" o- }" v* g; I
) o/ l" [( L# T" {' e; ^ B& c' B0 ?+ Q
In Drupal 7 and later, you can add also add new fields to comments. 在Drupal 7和之后的更高版本,你也可以为评论添加新的领域【Fields】。
2 z# A5 y2 j7 b, F2 T- v( J: r, e
- q, ?. x* `" M; G4 [9 j: p
You can also enable a Recent Comments block. For more information on enabling blocks, see Working with Blocks. $ J, H% O5 Q5 N# u! J
This section provides information on only a few of the many contributed modules that extend the core commenting functionality. 本节提供的信息只有少数的许多贡献的评论功能扩展核心模块。
$ T5 J) x5 n. m7 y) k5 w4 ]
6 |9 n! e. ~8 F8 w1 ]; J9 d0 T% `---------------------------------------------------------------------------------------------------------------------------------------- # C5 B) y5 R0 x" |2 C% ?( A1 S6 B$ V
7 [! c% |, ?3 U) K0 Y& j$ p. S( \) f4 p9 P
Administering comments in Drupal 7 /管理意见+ l* O! f) m4 I, e8 S% }
& c7 T( {5 ~1 @7 B
This section provides information about configuring comment settings and administering the comments queue in Drupal 7.
4 ^0 |8 r1 F7 V& Z2 P本节提供有关配置注释的设置和管理意见队列在Drupal 7的信息。4 O# K3 Q1 x# z" \5 U2 g
0 d) J, p4 G: vModules to reduce spam comments:
3 K9 k; L; Y! i模块,以减少垃圾邮件的评论:8 l0 i! K) Y6 O/ Q P
: H9 {- }6 C) N7 v- s- U- @Mollom is configurable to offer both text analysis as well as CAPTCHA
8 T+ l7 S5 F+ p/ C: R2 nmollom配置同时提供文本分析以及验证码【CAPTCHA】
5 r' F. ]6 |0 I
6 s% a8 }0 R- h s! n# W% ?9 U# }# tCAPTCHA is a module that makes it easy to embed CAPTCHAs to prevent spam. The module page is a great reference guide to many other CAPTCHA like modules and other spam fighting modules3 p2 j# I8 V1 V
验证码【CAPTCHA】是一个模块,可以很容易地嵌入,以防止垃圾邮件的CAPTCHA的。模块的页面是一个很好的参考指南,像许多其他验证码模块和其他反垃圾邮件模块
7 z) Y3 y9 ^6 Q3 a& I, e
: `$ w5 w7 O0 R9 E9 B% hAdministering a content type's comment settings 管理内容类型的设置评论
7 m! B2 d9 m4 r8 q4 XTo configure comment settings on a specific content type: 配置设置评论在一个特定的内容类型: 1.Navigate to the Content types administration page 导航到内容类型管理页面 (Administer > Structure > Content types or http://example.com/admin/structure/types). ( Q' h+ J; a) K' _9 s4 z* g/ Z+ _
2.Find the content type you want to enable and click the "Edit" link. 找到要启用并单击“编辑”链接的内容类型。
; p; _: {; i+ W' T# ~3.Scroll down and click the "Comment Settings" tab. 在下方,点击“留言设置”标签。
: T' J, e1 X0 x0 q) M/ o7 [9 P4.Here you can specify several different settings (some options will not appear until you've selected a certain setting). 在这里你可以指定几个不同的设置(一些选项不会出现,直到你选择了某些设置) 。
) S. F) h9 h4 I2 M8 E- t$ @
( \. @# e% O0 ]! q% I
6 |: W+ `+ r, h2 B7 Z. x# a- U% B Default comment setting for new content默认评论设置新的内容8 B! N+ y) @3 n8 H- F, k0 R
& h& e4 B- j1 P" {/ c. S- |' C. q; G( ^& G* E+ Y, u
The comment setting on future content of this type will default to: 今后这种类型的内容的评论设置默认为:$ T2 g1 k; k6 N4 [* w8 J ]
- Hidden: No comments are allowed, and past comments are hidden.
- 隐藏:允许无评论,之前的评论也将隐藏。
- Closed: No comments are allowed, but any past comments remain visible.
- 关闭:允许无评论,但是之前的评论依然可见。
- Open: Any future content of this type is open to new comments.
- 打开:此类型的任何未来的内容是新评论。
- {8 G. b) ]7 H/ K
Note: this setting is a default, and is not retroactive to existing content of the type. 注:此设置是默认的,是不溯及既往,以现有的内容类型。
/ [% s8 X4 g% \6 BThreadingWhen this option is enabled, comments are displayed in a threaded list (replies are indented to make discussions easier to follow). 注:此设置是默认的,是不溯及既往,以现有的内容类型。
; b& \1 i" d% s' ?5 J. p, |+ x* u9 b& W1 R
Comments per pageSpecifies the maximum number of comments displayed on one page (additional pages will be added if you exceed this limit). 指定的最大数量显示在一个页面上(如果超过这个限制,将增加额外的页面)的意见。
8 I% X0 ^# ?! i; d1 R$ e( Z6 W& C' S
Allow comment titleWhen this option is enabled, a user can fill in a title for their comment (the title is optional). 当启用此选项,用户可以填写在其评论的标题(标题是可选的) 。$ r% X7 K; V- J2 R/ [+ o
; Z1 ]: M) H; Y# l
Show reply form on the same page as commentsWhen this option is enabled, the reply form is displayed on the same page as the comments. (If this is not selected, clicking "Reply" will take you to a new page where you can fill in the reply form.) 启用此选项时,答复的形式显示在同一页的意见。 (如果不选择,点击“回复”将带你到一个新的页面,您可以填写的答复形式。 )
' y) y, P) q# g6 H6 i9 [0 J. h( W1 y" k' y
Preview commentsYou can specify whether a preview is "Required" (always be displayed prior to saving the comment), "Disabled" (never displayed), or "Optional" (the user has the option of displaying a preview). 您可以指定是否预览“必需”(前总是显示保存评论),“禁用”(从来没有显示),或“可选”(用户显示预览的选项) 。
( V l0 d- ?0 J: E
5 e9 _7 a' ?2 X- V p+ H* p* _ Note: Be sure to click "Save content type" after configuring the settings. 注:务必设定后点击“保存内容类型” 。7 H6 @- V) s6 a9 }( @
& G& \+ ~, n; l4 o& P: H
. q& b1 @" t* d3 t. U3 R( w
Administering and approving comments管理和审批意见
0 _! z& E' G! K1 ]9 t+ {: O6 J9 o3 b' p
3 z' x) R2 q0 R" _+ ?Administering comments管理评论3 L* c$ A5 a" e: C7 [
1.Navigate to the Comments administration page 浏览评论管理页面(Administration > Content > Commentsor http://example.com/admin/content/comment).# d0 x/ v$ y% W8 T; ?- C4 c. e& T
2.From this "Published comments" page, you can select one or more comments to unpublish or delete using the checkboxes next to each comment (to select all, check the checkbox at the very top of the row).从这个“发表的评论”页面,您可以选择一个或多个使用每个评论(选择,检查行的复选框)旁边的复选框取消发布或删除的意见。% N9 T- N, }5 \+ |
$ Z: t: t- f- o S+ ]3.Use the dropdown above under "Update Options" to select one of the following options from the list:采用下拉根据上述“更新选项”从列表中选择下列选项之一- Unpublish the selected comments取消发布的选定评论
- Delete the selected comments删除选中评论+ z; [* M7 V# k% W+ C' \
Click the "Update" button.点击“更新”按钮
9 A' W- m! Q: K' u: W8 O
9 I# ]& r8 s5 Z! lApproving comments审批意见To approve unpublished comments, click the "Unapproved Comments" tab and follow the above steps, selecting whether you would like to: 批准未发表评论,点击“未批准的评论”标签,并按照上面的步骤,选择您是否想:
; w6 A) H# L; r7 o7 | - Publish the selected comments发布选中评论
- Delete the selected comments删除选中评论
/ B' [" M5 I" V& [) T; o 2 ^1 b) d$ k) f) J
User permissions for comments用户评论权限设置To configure user permissions for commenting you must be logged in as either User 1 (the administrative user) or as a user with the "User: Administer permissions" permission: “用户配置为用户评论您必须登录1用户(管理用户) ,或作为与用户权限:管理权限”权限:, L6 F& {% Y9 @4 Z8 Q( b
- Navigate to the Permissions administration page 浏览权限管理页面(Administer > People > Permissions or http://example.com/admin/people/permissions).
- In the Comments section, enable or disable the permissions for each role:在评论部分,启用或禁用每个角色的权限:
3 {7 a& H, O# Q- Administer comments and comment settings管理的意见和评论设置
- View comments查看评论
- Post comments (If a user has this and not the "Skip comment approval" permission, their comments will show in the "Unapproved comments" list until someone with the "Administer comments and comment settings" approves them.)张贴意见(如果用户有此,而不是“跳过评论审批”权限,他们的意见,直到显示“未批准的意见”名单将在“管理的意见和评论设置”有人批准他们。 )
- Skip comment approval (Comments are published immediately and do not need to be approved.跳过注释批准(评论立即发布和不需要得到批准。
- Edit own comments (This does not allow the user to delete comments, only users with the "Administer comments and comment settings" can delete comments because if comments are threaded, replies to a comment are deleted with it.)编辑自己的意见(这不会允许用户删除的意见, “设置管理的意见和评论”的用户可以删除,因为如果是螺纹评论,删除评论的答复意见。 )
- G; T* P- W8 }" v" x; _* k p- R
1 w/ K; g8 H/ Y8 {2 K, w
Note: Granting anonymous users the permission to post comments can dramatically increase the amount of spam. It is recommended that you set up a spam filtering module if you choose to allow anonymous comments. 注:匿名用户授予的权限要发表评论,可以极大地提高垃圾邮件的数量。据建议,设立一个垃圾邮件过滤模块,如果您选择允许匿名评论。 ( Q$ a4 Y$ h1 E
Adding fields to the comments for a content type内容类型添加字段的评论
$ r2 B* Y8 E4 P2 C$ K( R
To add fields to the comment form for a given content type: 将字段添加到一个给定的内容类型的评论形式:& ~; v. Y3 f& ~# V4 D
( x& M u# h5 L; E/ r% f( p' zNavigate to the Content types administration page 导航到的内容类型管理页面
# I1 o+ w2 }; H' gFind the content type for which you'd like to add fields on the comment form, and click "Manage fields" next to it.Click the "Comment fields" tab.In the "Add new field" section, enter a human readable "Label" for the field.In the "Name" field, enter the machine name for the field. (You can only use numbers, lower-case letters, and underscores.)In the "Select a field type" dropdown list, select one of the following types:BooleanDecimalFileFloatImageIntegerListList (numeric)List (text)Long textLong text and summaryTerm referenceTextIn the "Widget" dropdown, select a widget. The options vary depending on the field type chosen.Click "Save". 找到的内容类型,你想加入域的评论形式,并单击“管理域”旁边。单击“域”选项卡。在“添加新字段”部分,进入一个人类可读的“标签”的领域。在“名称”字段中,输入机器名称的领域。(你可以只使用小写字母,数字,和强调。”)中选择一个字段类型”下拉列表中,选择下列类型之一:booleandecimalfilefloatimageintegerlistlist(数字)列表(文本)长textlong文本和summaryterm referencetextin“小工具”下拉菜单,选择一个部件。该方案取决于字段类型选择点击“保存”。' g' U/ S4 F; L6 G$ u+ N
/ f. B) r `2 ]- h- i& L
4 i/ a- U2 ?' J+ w, E c4 ]7 a, q
: ^% T3 p: r* L: [# G6 }' H
# W7 Q' V* a4 g, R# f
- J4 O( O4 E1 P/ n) s5 a, }$ H; f% ]" Y7 l: v2 A0 `
3 L! [+ d+ m J7 N& [4 K1 I4 T
/ }; l& |# A7 ~' B- W/ Y/ V6 r
r) x; U" W6 u# u
}' `; t% M5 @1 z; E5 m" V- O) k7 W% v$ u! x! \
) L3 v5 B+ k _; L2 g
& \% k! d: \% G2 D4 F. b
% v! e) [7 i" s! p5 d* n5 B# s m+ x' ?: A
# D% ]4 J/ s* r5 G& ^* q, q |