Gallery: 模块:用户相册(useralbum):修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
 
第1行: 第1行:
= User Albums Module =
= 用户相册(User Albums)模块 =
Automatically creates an album for each new user.
为每个新用户自动创建一个相册。


==Description==
==描述==
This module automates the creation of an album for each user and is thus very useful for community sites. You can do all the things this module does without this module, but creating an album for each user, setting the correct permissions, etc takes a lot of time if done step by step. And in addition, users will see a "Your Album" link on each page as well.
此模块为每个用户自动创建一个相册,因此对于社区类型的网站很有用处。当然,不使用此模块也不会造成任何损失,但是手动为每个用户创建一个相册并设定正确的权限是很费时费力的。另外,用户还能在每个页面上看到一个"你的相册(Your Album)"的链接。


==Features==
==特点==
* Gives each registered user an album of their own.
* 为每个已注册用户提供一个相册。
* Users can create unlimited items and sub-albums in their user-album.
* 在自己的用户相册中,用户可以创建不限数量的项目和子相册。
* Choose the parent album for all user-albums.
* 为所有用户相册选择父族相册。
* Configure when user-albums get created: When first accessed by the user or when the user is created.
* 在用户相册创建好的时候进行配置:当用户初次访问或用户被创建时。
* Configure who is allowed to view a user's album: the user only, registered users only or everybody.
* 配置用户相册的查看权限:仅允许用户自己,仅允许已注册用户或允许所有人查看。
* Show / hide the "Your Album" link.
* 显示或隐藏"你的相册(Your Album)"链接。
* Configure whether other users can view the original (fullsize) images as well.
* 决定其他用户是否能够查看原始(全尺寸)的图片。
* Configure whether a user should be redirected to the user-album after login.
* 决定某用户在登录后是否应被重新导向至用户相册。


=== Permission Details ===
=== 权限详细信息 ===
* All user-albums inherit the permissions of their parent album. If you want to change the permissions user-albums are created with, change the permissions of the parent album of all user-albums.
* 所有用户相册都继承父族相册的权限配置。如果你要修改用户相册的权限的话,就修改所有用户相册的父族相册权限。
* Exceptions:
* 例外:
** The owner of a user-album (the user) has all access, no matter what the permissions of the parent album are.
** 无论父族相册的权限是如何设置的,某用户相册(用户)的所有者具有全部的访问权限。
** View permissions to override the parent album's permissions are configurable in the user-album's module configuration page in site admin.
** 在站点管理的用户相册模块配置页面中,查看权限对父族相册权限的覆盖是可配置的。


You can edit modules/useralbum/classes/UserAlbumHelper.class if you would like to e.g. remove certain permissions from the user.
如果需要的话,你可以编辑modules/useralbum/classes/UserAlbumHelper.class以从用户处移除特定的权限。
Or file a feature request such that the Gallery team takes notice of a larger interest in user-album permissions.
或发布一个特点请求,这样就能令Gallery团队更关注用户相册权限的问题。


==Usage==
==用法==
* Read the [[Gallery:Installing_Additional_Components#Installing_Modules_and_Themes|plugin installation instructions]] to enable the user-album module.
* 参阅[[Gallery:Installing_Additional_Components#模块和外观主题的安装|有关插件安装的指导]]来启用用户相册模块。
* '''Configure''' some settings in ''site admin'' -> ''User Albums''
* ''站点管理(site admin)'' -> ''用户相册(User Albums)''中进行一些'''配置'''


==Requested Features==
==被请求的特点==
See http://gallery.menalto.com/sfvote/all
参见http://gallery.menalto.com/sfvote/all


==Bugs==
==Bugs==
* Currently there are no known issues for this module.
* 目前尚无有关此模块的已知问题。
* But beware from using this module for a large user-base. There is still an unfixed performance problem with user-albums if there are a lot of users with their own user-album.
* 但对于较大的用户库来说,使用此模块时就要多加注意了。如果存在大量拥有各自相册的用户,在用户相册性能方面就会出问题,这个问题尚未得到解决。


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

2008年8月20日 (三) 14:35的最新版本

用户相册(User Albums)模块[编辑 | 编辑源代码]

为每个新用户自动创建一个相册。

描述[编辑 | 编辑源代码]

此模块为每个用户自动创建一个相册,因此对于社区类型的网站很有用处。当然,不使用此模块也不会造成任何损失,但是手动为每个用户创建一个相册并设定正确的权限是很费时费力的。另外,用户还能在每个页面上看到一个"你的相册(Your Album)"的链接。

特点[编辑 | 编辑源代码]

  • 为每个已注册用户提供一个相册。
  • 在自己的用户相册中,用户可以创建不限数量的项目和子相册。
  • 为所有用户相册选择父族相册。
  • 在用户相册创建好的时候进行配置:当用户初次访问或用户被创建时。
  • 配置用户相册的查看权限:仅允许用户自己,仅允许已注册用户或允许所有人查看。
  • 显示或隐藏"你的相册(Your Album)"链接。
  • 决定其他用户是否能够查看原始(全尺寸)的图片。
  • 决定某用户在登录后是否应被重新导向至用户相册。

权限详细信息[编辑 | 编辑源代码]

  • 所有用户相册都继承父族相册的权限配置。如果你要修改用户相册的权限的话,就修改所有用户相册的父族相册权限。
  • 例外:
    • 无论父族相册的权限是如何设置的,某用户相册(用户)的所有者具有全部的访问权限。
    • 在站点管理的用户相册模块配置页面中,查看权限对父族相册权限的覆盖是可配置的。

如果需要的话,你可以编辑modules/useralbum/classes/UserAlbumHelper.class以从用户处移除特定的权限。 或发布一个特点请求,这样就能令Gallery团队更关注用户相册权限的问题。

用法[编辑 | 编辑源代码]

  • 参阅有关插件安装的指导来启用用户相册模块。
  • 站点管理(site admin) -> 用户相册(User Albums)中进行一些配置

被请求的特点[编辑 | 编辑源代码]

参见http://gallery.menalto.com/sfvote/all

Bugs[编辑 | 编辑源代码]

  • 目前尚无有关此模块的已知问题。
  • 但对于较大的用户库来说,使用此模块时就要多加注意了。如果存在大量拥有各自相册的用户,在用户相册性能方面就会出问题,这个问题尚未得到解决。