Gallery: 快速入门指南:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
第1行: 第1行:
= Quick Start Guide to Gallery 2 =
= Gallery2快速入门指南 =
This guide will get you started with Gallery 2. It will walk you through the steps from zero to managing your first photo album in your freshly installed Gallery.
此指南将带你开始Gallery2的旅程。它将带你从零开始,并教你在崭新的Gallery中管理你的第一个相册。


Note that the {{exampleurl|/README.html}} that is part of the Gallery 2 download provides the basic steps as well.
注意Gallery2下载中包含的{{exampleurl|/README.html}}也提供基本的入门指导。


== What is Gallery 2? ==
== 什么是Gallery 2?==
* [[:Gallery2:About|Introduction / About]]
* [[Gallery:About|介绍/关于]]
* [[Evaluate_Gallery|Evaluate Gallery!]]
* [[Evaluate_Gallery|Gallery测评!]]


== Download and Install ==
== 下载和安装 ==
[[Category:Gallery 2:Installation|Installation Documents]]
[[Category:Gallery 2:Installation|有关安装的资料]]


It is suggested you pick the 'typical' Gallery 2 package since it includes the basic set of features. You can easily add more features later.
建议你选择'典型'Gallery2安装包,因为它包含了一套基本的特色,稍后你可以添加更多的特色。


After installing, you can basically start adding albums and uploading photos. But we'll guide you first through some of the more important configuration options which also serves as a quick product tour.
安装完成后,你基本上就可以开始添加相册并上传相片了。但在此,将由我们来带你浏览一下更为重要的配置选项,这也是对该产品的走马观花式的参观。


== Configure Site Admin ==
== 配置站点管理(Site Admin) ==
Once installed, you can configure basic things like enabling email support and enable additional features.
安装一旦成功,你就可以开始配置些基本的设定了,比如启用Email支持以及启用更多其他的特色。


But first, you need to ''login'' as ''Site administrator''.
但首先,你需要以''网站管理员的身份登录''
* Click ''Login'' in the upper right corner of Gallery. Then enter your username (if you didn't change it it's 'admin') and your password.
* 点击位于Gallery右上角的''登录''。接着输入你的用户名(如果之前没有修改用户名的话,那么就是'admin')和密码。
::Note: In step 6 of the installation wizard, you entered a username and password for your administrator account. This is the only user that exists after installing Gallery.
::注:在安装向导的第六个步骤中,你为管理员帐号输入的用户名和密码是在Gallery刚安装完时唯一存在的用户帐户了。


=== Select a Language ===
=== 选择一个语言 ===
* Click ''Site Admin'' in the upper right corner of Gallery to enter the Site Administration Area of Gallery.
* 点击Gallery页面右上角的''站点管理(Site Admin)''以登入Gallery的站点管理区域。
* Right at the top, you can select the ''language'' of your Gallery. Gallery will show all instructions and links in that language.
* 选项就在顶部,你可以在这里选择Gallery的''语言''。Gallery会为该语言显示所有的指导信息及链接。


Also see: [[Gallery:FAQ#I_changed_the_language_but_nothing_happens.2C_what.27s_wrong.3F|FAQ: I changed the language but nothing happens, what's wrong?]]
另见:[[Gallery:FAQ#我修改了语言但是没有效果,这是怎么回事?|常见问题:我修改了语言但是没有效果,这是怎么回事?]]


=== Configure a Graphics Toolkit ===
=== 图像工具包的配置 ===
Gallery can generate thumbnail (small preview) images and resized images for you. ''Graphics toolkits' are responsible to do such operations on images. You need to activate at least one of the available graphics toolkits. If you do not, Gallery will still work, but you will not see an overview of thumbnail images for each album which makes navigation suboptimal.
Gallery可以为你生成缩略图(小尺寸的预览图片)以及重设尺寸的图片。''图像工具包'就可以用于图片处理及操作。你需要激活至少一个可用图像工具包。如果你没有激活工具包,尽管Gallery能正常运行,但你就无法看到各相册的缩略图概览了,从而使得浏览效果及效率欠佳。


If you are lucky, Gallery ''auto-configured'' all available graphics toolkits. But maybe, you need to configure it manually yourself.
不过运气好的话,Gallery可能已经''自动配置''了所有可用图像工具包了。但也有可能的是,你需要自己手动进行配置。


* In the 'Gallery category, click on ''Plugins'' (was 'Modules' prior to Gallery 2.2) in the left side menu of 'Admin Options'
* 在Gallery分类中,点击'管理选项(Admin Options)'左侧菜单中的''插件(Plugins)'' (Gallery 2.2以前的版本则是'模块(Modules)')
* Scroll down to the 'Graphics Toolkits' category.
* 下拉至'图像工具包(Graphics Toolkits)' 分类。
* You should try to activate the 'ImageMagick', the 'netpbm' and the 'GD' toolkit. The more, the better.
* 你应当尝试激活'ImageMagick''netpbm'以及'GD'工具包。激活的越多越好。
* A green icon on the left shows if the toolkit is active. If there is a 'activate' or 'configure' link on the right, click it.
* 左边的绿色图标表示此工具包为激活状态。如果在其右边有一个'激活(activate)''配置(configure)'链接的话,请点击它来进行激活。
* For details, please see: [[Installing_an_Image_Processing_Library|Installing an Image Processing Library]]
* 更详尽的信息请见:[[Installing_an_Image_Processing_Library|图片处理库的安装]]


Finally, you may want to adjust the priority of the graphics toolkit which basically tells Gallery if it should try a specific toolkit before it tries the other ones. It's a good idea to not have 'GD' as the primary toolkit (it uses too much resources, needs a lot of memory), move it down if possible.
最后,你可能希望调整一下图像工具包的优先级,这样就可以让Gallery在调用时知道该先用某特定的工具包再用其他的工具包了。最好不要把'GD'作为基本工具包来使用(它占用太多的资源,而且很占内存),因此可以先不要考虑它了。
* Click on ''Toolkit Priority'' in the 'Graphics Toolkits' category in the left side 'Admin Options' menu.
* 点击'管理选项(Admin Options)'的菜单'图像工具包(Graphics Toolkits)'分类中的''工具包优先级(Toolkit Priority)''
::Note: You only see a ''Toolkit Priority'' option if more than one graphics toolkit is active that can do the same thing. Else there's no point in assigning a priority.
::注:当多于一个的图像工具包处于激活状态时,你只能看到''工具包优先级(Toolkit Priority)'',不过效果是一样的。否则就没必要使用优先级了。
* In the Toolkit Priority option view, use the 'up' and 'down' links to adjust the priority (hint: move GD down if it's available).
* 在工具包优先级选项视图中,使用链接'上移(up)''下移(down)'来调整优先级(提示:如果GD在其中的话,将其下移吧)。
* Click 'Save'
* 点击'保存(Save)'


=== Configuring Email ===
=== Email的配置 ===
It is important that Gallery can send emails successfully. Emails get sent to recover your user account password, when a user tries to register a new account, and on other occasions.
Gallery能够成功发送email邮件是很重要的。发送Email邮件多是用于用户密码的找回,新用户注册帐号的激活以及其他一些操作。
* Click ''My Account'' in the upper right corner of Gallery and enter an email address for your user account, if you haven't already.
* 如果你还没有为自己的用户帐户输入email地址的话,请点击Gallery页面右上角的''我的帐户(My Account)'' 并输入你的email地址。
* Click ''Site Admin'' in the upper right corner of Gallery to enter the Site Administration Area of Gallery.
* 点击Gallery页面右上角的''站点管理(Site Admin)''以登入Gallery的站点管理区域。
** Scroll down to the ''Email'' section
** 下拉至''Email''区域。
*** Enter one of your email addresses and click ''Send email'' to '''test''' the email functionality.
*** 输入你的一个email地址并点击''发送email邮件(Send email)'''''测试'''email的相关功能是否有效。
*** If it fails, you may have to enter the SMTP settings of one of your email accounts and test again.
*** 如果无效的话,你可能需要输入你email账户的SMTP 设定并再次进行测试。


== Configure the Root Album ==
== 根目录相册的配置 ==
* Click on ''Gallery'' in the top-left corner to get back from the 'Site Admin' area to the normal album area of your Gallery.
* 点击左上角的''Gallery'''站点管理(Site Admin)'区域返回到Gallery的一般相册区域。
* Since you are logged in as administrator, you have the permission to edit any album / item in your Gallery.
* 因为你是以管理员身份登录的,因此具有编辑任何相册或项目的权限。
* Click ''Edit Album'' in the left side menu.
* 点击左侧菜单中的''编辑相册(Edit Album)''
* In the ''General'' tab, you can '''change the album title, description and other attributes'''.
* ''一般(General)''标签中,你可以'''修改相册标题,描述以及其他的属性'''
* In the ''Album'' tab, you can change the settings for the album and all items within that album.
* ''相册(Album)''标签中,你可以修改相册及该相册包含的所有项目的设定。
::Note: This is a good time to learn what the '''[[Gallery:Root_Album|Root Album]]''' is.
::注:这是了解'''[[Gallery:Root_Album|根目录相册]]'''的一个很好的机会。


Two things to remember:
切记两点:
# Most album, item and theme settings are always inherited. When you create a new album, it will have the same permissions, the same sort order, the same theme settings, etc. as the album in which it is created in.
# 大部分相册,项目及外观主题设定都是继承下来的。当你新建一个相册时,它将具有与上级相册相同的权限设置,相同的排序规则以及外观主题设定等。
# To change a setting for a complete album, or even for your complete Gallery, go to your [[Gallery:Root_Album|Root Album]] and change the settings there. Most settings have a ''Apply settings to sub-album'' option. If this is used in the root album, all albums and items of your Gallery will be affected by such a change.
# 要为整个相册甚至整个Gallery修改一个设定的话,请打开你的[[Gallery:Root_Album|根目录相册]]并在此修改设定。大部分设定都有一个''对下属相册应用此设定''的选项。如果在根目录相册中使用的话,Gallery中所有的相册和项目都会受此设定的影响。


To change the 'title of your Gallery', you should change the title of the root album.
要修改'Gallery的标题',你应当修改根目录相册的标题。
* Browse to the root album and click ''Edit Album'' -> ''General'' tab to edit the title of your Gallery.
* 浏览到根目录相册并点击''编辑相册(Edit Album)'' -> ''一般(General)'' 标签来编辑你Gallery的标题。


== Configure Permissions ==
== 权限的配置 ==
With permissions, you can:
拥有权限,你可以:
* Control which albums / photos are publicly viewable or only available to your private community
* 决定哪些相册或相片是公开可见的,或是只对特定群体开放
* Control who is allowed to create albums, upload images, post comments and much more
* 决定哪些人可以创建相册,上传图片,发表评论以及其他更多的操作


Each album and item can have different permissions in Gallery. And all new albums and items have the same permissions as the album in which they are created in until you change them to something else.
Gallery中的每个相册和项目都可以具有不同的权限设定。所有新建相册及项目将具有与上级相册相同的权限设置,直到你修改这些权限设置才会有变化。


=== User Groups ===
=== User Groups ===
第91行: 第91行:
Remember that all permissions assigned to the ''Everybody'' group are automatically assigned to all registered users as well.
Remember that all permissions assigned to the ''Everybody'' group are automatically assigned to all registered users as well.


=== Set Permissions ===
=== 权限的设定 ===
Since all albums and items are created in the [[Gallery:Root_Album|Root Album]] container, changing permissions of the root album will affect everything.
因为所有的相册和项目是在[[Gallery:Root_Album|根目录相册]]容器中被创建的,因此改变根目录相册的权限将产生全局性的影响。
* If you are in 'Site Admin', click on 'Gallery' in the upper left corner to reach the root album.
* 如果你位于'站点管理(Site Admin)'页面的话,点击左上角的'Gallery'以转到根目录相册。
* Click ''Edit Permissions'' in the left side menu.
* 在左侧菜单中点击''编辑权限(Edit Permissions)''
* Here you can add / remove permissions.
* 在此你可以添加或移除权限设定。


Say you want to make your Gallery completly private such that all visitors have to login first before they can see any photo album.
比如说你想让你的Gallery完全保密,即访问者要先登录才能观看相册。
* Remove the ''[core] View All Versions'' from the 'Everybody' group and
* 移除'所有人(Everybody)'组中的''[core] View All Versions'',并
* Add the ''[core] View All Versions'' to the 'Registered Users' group.
* ''[core] View All Versions''添加到'已注册用户(Registered Users)'组中。


Say you want to allow all 'Registered Users' to create albums and to upload items (e.g. photos).
又如你允许所有'已注册用户(Registered Users)'能够创建相册并上传项目(比如相片)。
* Add the ''[core] Add sub-album'' and the ''[core] Add sub-item'' permissions to the 'Registered Users' group.
* ''[core] Add sub-album''''[core] Add sub-item''权限添加到'已注册用户(Registered Users)'组中。


== Create Albums, Upload Photos ==
== Create Albums, Upload Photos ==

2008年8月1日 (五) 16:46的版本

Gallery2快速入门指南

此指南将带你开始Gallery2的旅程。它将带你从零开始,并教你在崭新的Gallery中管理你的第一个相册。

注意Gallery2下载中包含的http://www.example.com/gallery/README.html也提供基本的入门指导。

什么是Gallery 2?

下载和安装

建议你选择'典型'Gallery2安装包,因为它包含了一套基本的特色,稍后你可以添加更多的特色。

安装完成后,你基本上就可以开始添加相册并上传相片了。但在此,将由我们来带你浏览一下更为重要的配置选项,这也是对该产品的走马观花式的参观。

配置站点管理(Site Admin)

安装一旦成功,你就可以开始配置些基本的设定了,比如启用Email支持以及启用更多其他的特色。

但首先,你需要以网站管理员的身份登录

  • 点击位于Gallery右上角的登录。接着输入你的用户名(如果之前没有修改用户名的话,那么就是'admin')和密码。
注:在安装向导的第六个步骤中,你为管理员帐号输入的用户名和密码是在Gallery刚安装完时唯一存在的用户帐户了。

选择一个语言

  • 点击Gallery页面右上角的站点管理(Site Admin)以登入Gallery的站点管理区域。
  • 选项就在顶部,你可以在这里选择Gallery的语言。Gallery会为该语言显示所有的指导信息及链接。

另见:常见问题:我修改了语言但是没有效果,这是怎么回事?

图像工具包的配置

Gallery可以为你生成缩略图(小尺寸的预览图片)以及重设尺寸的图片。图像工具包'就可以用于图片处理及操作。你需要激活至少一个可用图像工具包。如果你没有激活工具包,尽管Gallery能正常运行,但你就无法看到各相册的缩略图概览了,从而使得浏览效果及效率欠佳。

不过运气好的话,Gallery可能已经自动配置了所有可用图像工具包了。但也有可能的是,你需要自己手动进行配置。

  • 在Gallery分类中,点击'管理选项(Admin Options)'左侧菜单中的插件(Plugins) (Gallery 2.2以前的版本则是'模块(Modules)')
  • 下拉至'图像工具包(Graphics Toolkits)' 分类。
  • 你应当尝试激活'ImageMagick','netpbm'以及'GD'工具包。激活的越多越好。
  • 左边的绿色图标表示此工具包为激活状态。如果在其右边有一个'激活(activate)'或'配置(configure)'链接的话,请点击它来进行激活。
  • 更详尽的信息请见:图片处理库的安装

最后,你可能希望调整一下图像工具包的优先级,这样就可以让Gallery在调用时知道该先用某特定的工具包再用其他的工具包了。最好不要把'GD'作为基本工具包来使用(它占用太多的资源,而且很占内存),因此可以先不要考虑它了。

  • 点击'管理选项(Admin Options)'的菜单'图像工具包(Graphics Toolkits)'分类中的工具包优先级(Toolkit Priority)
注:当多于一个的图像工具包处于激活状态时,你只能看到工具包优先级(Toolkit Priority),不过效果是一样的。否则就没必要使用优先级了。
  • 在工具包优先级选项视图中,使用链接'上移(up)'和'下移(down)'来调整优先级(提示:如果GD在其中的话,将其下移吧)。
  • 点击'保存(Save)'

Email的配置

Gallery能够成功发送email邮件是很重要的。发送Email邮件多是用于用户密码的找回,新用户注册帐号的激活以及其他一些操作。

  • 如果你还没有为自己的用户帐户输入email地址的话,请点击Gallery页面右上角的我的帐户(My Account) 并输入你的email地址。
  • 点击Gallery页面右上角的站点管理(Site Admin)以登入Gallery的站点管理区域。
    • 下拉至Email区域。
      • 输入你的一个email地址并点击发送email邮件(Send email)测试email的相关功能是否有效。
      • 如果无效的话,你可能需要输入你email账户的SMTP 设定并再次进行测试。

根目录相册的配置

  • 点击左上角的Gallery从'站点管理(Site Admin)'区域返回到Gallery的一般相册区域。
  • 因为你是以管理员身份登录的,因此具有编辑任何相册或项目的权限。
  • 点击左侧菜单中的编辑相册(Edit Album)
  • 一般(General)标签中,你可以修改相册标题,描述以及其他的属性
  • 相册(Album)标签中,你可以修改相册及该相册包含的所有项目的设定。
注:这是了解根目录相册的一个很好的机会。

切记两点:

  1. 大部分相册,项目及外观主题设定都是继承下来的。当你新建一个相册时,它将具有与上级相册相同的权限设置,相同的排序规则以及外观主题设定等。
  2. 要为整个相册甚至整个Gallery修改一个设定的话,请打开你的根目录相册并在此修改设定。大部分设定都有一个对下属相册应用此设定的选项。如果在根目录相册中使用的话,Gallery中所有的相册和项目都会受此设定的影响。

要修改'Gallery的标题',你应当修改根目录相册的标题。

  • 浏览到根目录相册并点击编辑相册(Edit Album) -> 一般(General) 标签来编辑你Gallery的标题。

权限的配置

拥有权限,你可以:

  • 决定哪些相册或相片是公开可见的,或是只对特定群体开放
  • 决定哪些人可以创建相册,上传图片,发表评论以及其他更多的操作

Gallery中的每个相册和项目都可以具有不同的权限设定。所有新建相册及项目将具有与上级相册相同的权限设置,直到你修改这些权限设置才会有变化。

User Groups

User groups simplify the permission management. Instead of managing the permissions for each user one by one, you can build groups of users and then manage the permissions of those groups.

There are a number of built-in groups and users in Gallery and it's important to understand what they are for in order to understand permission management in Gallery.

Predefined Users:

  • Guest - Any visitor or user of your site acts as the guest user as long as the user did not login.
  • Admin - The site administrator account that was created by the installation wizard.

Predefined Groups:

  • Everybody - This includes everyone, even visitors of your site that are not logged in. All guests and logged in users have all permissions that are assigned to the 'Everybody' group.
  • Registered Users - All users but the guest user are automatically a member of this group. As soon as you are logged in, you have all permissions a registered user has plus the permissions that are assigned to the 'Everybody' group.
  • Site Administrators - Members of this group have full access to any album and to the Site Admin area. By default, only the predefined 'admin' user is a member of this group.

Remember that all permissions assigned to the Everybody group are automatically assigned to all registered users as well.

权限的设定

因为所有的相册和项目是在根目录相册容器中被创建的,因此改变根目录相册的权限将产生全局性的影响。

  • 如果你位于'站点管理(Site Admin)'页面的话,点击左上角的'Gallery'以转到根目录相册。
  • 在左侧菜单中点击编辑权限(Edit Permissions)
  • 在此你可以添加或移除权限设定。

比如说你想让你的Gallery完全保密,即访问者要先登录才能观看相册。

  • 移除'所有人(Everybody)'组中的[core] View All Versions,并
  • [core] View All Versions添加到'已注册用户(Registered Users)'组中。

又如你允许所有'已注册用户(Registered Users)'能够创建相册并上传项目(比如相片)。

  • [core] Add sub-album[core] Add sub-item权限添加到'已注册用户(Registered Users)'组中。

Create Albums, Upload Photos

Now it's time to finally add some photos to your Gallery. You can add photos directly in your root album, but most users prefer to create a top-level album first and to add the photos in there.

Creating an Album:

  • Albums and photos are added in the album area of your Gallery. If you are still in the 'Site Admin' area, first click on the Gallery link in the upper left corner.
  • To create an album, click Add Album in the left side menu.
  • Just enter a name for the album. You can also enter other things, but a name is all that is needed. Then you can hit Save

Adding photos:

  • Click on Add Items in the left side menu.
  • Depending on the enabled plugins, you have now one or more methods to add photos to your Gallery.
  • You certainly want to try Gallery Remote, the Upload Applet and Publish XP. Those methods make adding a lot of items just with a few clicks quick and easy.
  • See: How to Add Items

Add and Configure More Features

After learning the basics of Gallery, you will now want to customize the feature-set of Gallery to your needs.

  • Click on Site Admin and then on the Plugins ('Modules' prior to Gallery 2.2) option in the left side 'Admin Options' menu.
  • Click on the Get More Plugins tab at the top (not availabe prior to Gallery 2.2)
  • Click on the Download Plugin List button. This will contact a central repository (at http://gallery.menalto.com) to download a list of all available plugins. You should see a progress bar and once it's finished, it should show a 'continue' link which you then can follow.
  • Now you can take some time to install the plugins that sound interesting or useful by clicking on install on the 'Get more plugins' page.

Some examples:

  • You may want to give visitors of your site the option to register a user-account (with or without approval). Install the Registration module.
  • If the 'URL rewrite' module is installed and active, URLs for your albums and images will be much shorter and nicer.
  • Activate the 'CAPTCHA' module to protect your Gallery from automated attacks and comment spam.
  • Visitors and users can add comments if the 'Comment' module is active.
  • And there's much more to explore. See Gallery 2 Modules

Changing the Theme (Look and Feel)

Themes control the look and feel of your Gallery.

  • Theme settings can control some parameters of the look and feel. E.g. the number of photos that are shown on each album page.
  • You can switch to a different theme to change the look and feel of your Gallery to something completely different.

First you'll want to install and activate more themes such that you can experiment with different looks.

  • Click on Site Admin and then on Plugins in the left side 'Admin Option' menu.
  • Click on the Get More Plugins tab at the top (not available prior to Gallery 2.2). If the page is empty, click on the Download Plugin List button.
  • Scroll down to the Themes category and install / activate a few of them.

You can manage theme settings globally for your complete Gallery via Site Admin.

  • Click on Site Admin and then on Themes in the left side 'Admin Option' menu.
  • Here you can set the Gallery-wide default theme and sort order.
  • You can also configure the default settings for each theme in this view.

Each album can have a different theme and different theme settings in Gallery.

  • If you are in the Site Admin area, click on Gallery in the upper left corner to get to the album area of your Gallery.
  • Browse to the album for which you want to change some theme settings or for which you want to use a different theme.
  • Click Edit Album and click on the Theme tab. Here you can override any of the site-wide default theme settings.
Note: If you add a sub-albums to an album that has overridden theme settings, it will inherit all those settings. Often this is an unwanted effect. You can specify whether new sub-albums should inherit the global defaults or the settings of its parent in Site Admin -> Themes (only since Gallery 2.2).

Further links: