Gallery: 模块:评论(comment):修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: =Comments Module= Let visitors and users add comments to the items of your Gallery. ==Description== With this module, registered users and guest visitors can add comments to your images ...)
 
无编辑摘要
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
=Comments Module=
=评论(Comments)模块=
Let visitors and users add comments to the items of your Gallery.
使访客和用户可以向你Gallery的项目添加评论。


==Description==
==描述==
With this module, registered users and guest visitors can add comments to your images and albums. You can restrict the permissions if you want to require users to register with your Gallery before they are allowed to add comments.
有了此模块,已注册用户和游客就可以向你的图片和相册添加评论了。如果你希望只有注册过的用户才可以添加评论的话,就可以对访问权限进行限制。


==Features==
==特点==
* Let visitors and users add, view, edit and delete comments to images and albums
* 使访客和用户可以向图片和相册添加评论,还可以对评论进行查看,编辑以及删除操作。
* Define who is allowed to do what with fine grained permissions
* 使用定义好的权限来决定某人可以执行何种操作。
* Add the ''show comments'' block to your photo pages to show the comments below the image
* 向你的相片页面添加''显示评论(show comments)''区块,从而将评论显示在图片之下。
* In Gallery 2.2, add the ''add comment'' block to your photo pages to show a form for adding new comments
* 在Gallery 2.2版本中,向你的相片页面添加''显示评论(show comments)''区块,从而显示一个可供添加新评论的表单。
* View all comments for an item or for a whole album tree with the ''View Latest Comments'' link in the item actions link list
* 使用项目动作链接链表中的''查看最新评论(View Latest Comments)''来查看某项目或某个完整相册树的所有评论。
* Add [[Gallery:Modules:captcha|CAPTCHA]] protection to prevent comment spam (configure in Site Admin / Captcha)
* 添加[[Gallery:Modules:captcha|CAPTCHA]]保护以防止恶意灌水(在站点管理/Captcha中可进行配置)
* See the number of comments per item in the album overview below each thumbnail
* 查看各缩略图下相册概览中各项目的评论数量。


==Usage==
==用法==
* Install and activate the module in ''site admin'' -> ''plugins''
* ''站点管理(Site Admin)'' -> ''插件(Plugins)''页面中安装并激活此模块。
* '''Configure''' some settings in ''site admin'' -> ''comments''  
* ''站点管理(site admin)'' -> ''评论(comments)''中对动态相册进行配置。
* '''Add the show comment block''' to your photo pages in ''site admin'' -> ''themes'' -> ''matrix'' (or for any other active/used theme)
* ''站点管理(site admin)'' -> ''外观主题(themes)'' -> ''matrix''(或其他任何外观主题)中'''添加“显示评论区块”'''至相片页面上。
* Define (optionally for each album/item) who is allowed to add / view / edit / delete comments by browsing to your albums and configuring it in ''Edit Permissions''.  To define the same settings for the entire gallery, select ''Edit Permissions'' for the top level album.
* 通过浏览相册并通过''编辑权限(Edit Permissions)''进行配置,从而定义(可选地为各相册或项目)何人可以添加/查看/编辑/删除评论。如要为整合gallery都套用相同的设定的话,请为顶层相册选择''编辑权限(Edit Permissions)''进行配置。
* Now you and the visitors can add comments with the ''add comment'' link from the item actions link list and view comments below images
* 现在你和访问者可以使用项目动作链接列表的''添加评论(add comment)''链接来发表评论了,并且可以在图片下面查看这些评论。
* With G2.1.1 you will have to ability to add a comment box below the photo as well as view comments.
* 有了G2.1.1,你就能够在相片之下添加评论并且可以查看它们。


==Known Issues==
==已知问题==
* Add Comment block + Captcha for guest comments + acceleration turned on in Site Admin / Performance: this combination may produce "ERROR_FORGED_REQUEST" when guests try to add comments.
* 为游客评论添加评论区块 + Captcha+ 在站点管理/性能中启用加速:当游客尝试进行评论时,此结合应用可能会产生错误"ERROR_FORGED_REQUEST"


==Customization of themes==
==外观主题自定义==
add a comment link:
添加一个评论链接:
     <a href="{g->url arg1="view=comment.AddComment" arg2="itemId=`$theme.item.id`"}">{g->text text="Add Comment"}</a>
     <a href="{g->url arg1="view=comment.AddComment" arg2="itemId=`$theme.item.id`"}">{g->text text="Add Comment"}</a>


add a view comments link:
添加一个查看评论链接:
     <a href="{g->url arg1="view=comment.ShowAllComments" arg2="itemId=`$theme.item.id`"}">{g->text text="Show Comments"}</a>
     <a href="{g->url arg1="view=comment.ShowAllComments" arg2="itemId=`$theme.item.id`"}">{g->text text="Show Comments"}</a>


[[Category:Gallery 2:Modules]]
[[Category:Gallery 2:Modules]]

2008年8月26日 (二) 10:59的最新版本

评论(Comments)模块[ ]

使访客和用户可以向你Gallery的项目添加评论。

描述[ ]

有了此模块,已注册用户和游客就可以向你的图片和相册添加评论了。如果你希望只有注册过的用户才可以添加评论的话,就可以对访问权限进行限制。

特点[ ]

  • 使访客和用户可以向图片和相册添加评论,还可以对评论进行查看,编辑以及删除操作。
  • 使用定义好的权限来决定某人可以执行何种操作。
  • 向你的相片页面添加显示评论(show comments)区块,从而将评论显示在图片之下。
  • 在Gallery 2.2版本中,向你的相片页面添加显示评论(show comments)区块,从而显示一个可供添加新评论的表单。
  • 使用项目动作链接链表中的查看最新评论(View Latest Comments)来查看某项目或某个完整相册树的所有评论。
  • 添加CAPTCHA保护以防止恶意灌水(在站点管理/Captcha中可进行配置)
  • 查看各缩略图下相册概览中各项目的评论数量。

用法[ ]

  • 站点管理(Site Admin) -> 插件(Plugins)页面中安装并激活此模块。
  • 站点管理(site admin) -> 评论(comments)中对动态相册进行配置。
  • 站点管理(site admin) -> 外观主题(themes) -> matrix(或其他任何外观主题)中添加“显示评论区块”至相片页面上。
  • 通过浏览相册并通过编辑权限(Edit Permissions)进行配置,从而定义(可选地为各相册或项目)何人可以添加/查看/编辑/删除评论。如要为整合gallery都套用相同的设定的话,请为顶层相册选择编辑权限(Edit Permissions)进行配置。
  • 现在你和访问者可以使用项目动作链接列表的添加评论(add comment)链接来发表评论了,并且可以在图片下面查看这些评论。
  • 有了G2.1.1,你就能够在相片之下添加评论并且可以查看它们。

已知问题[ ]

  • 为游客评论添加评论区块 + Captcha+ 在站点管理/性能中启用加速:当游客尝试进行评论时,此结合应用可能会产生错误"ERROR_FORGED_REQUEST"。

外观主题自定义[ ]

添加一个评论链接:

    <a href="{g->url arg1="view=comment.AddComment" arg2="itemId=`$theme.item.id`"}">{g->text text="Add Comment"}</a>

添加一个查看评论链接:

   <a href="{g->url arg1="view=comment.ShowAllComments" arg2="itemId=`$theme.item.id`"}">{g->text text="Show Comments"}</a>