编辑“Gallery:快速入门指南

跳转至: 导航、​ 搜索
警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第1行: 第1行:
= Gallery2快速入门指南 =
= Quick Start Guide to Gallery 2 =
此指南将带你开始Gallery2的旅程。它将带你从零开始,并教你在崭新的Gallery中管理你的第一个相册。
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下载中包含的[http://www.example.com/gallery/README.html http://www.example.com/gallery/README.html]也提供基本的入门指导。
Note that the {{exampleurl|/README.html}} that is part of the Gallery 2 download provides the basic steps as well.


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


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


建议你选择'典型'Gallery2安装包,因为它包含了一套基本的特色,稍后你可以添加更多的特色。
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.


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


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


但首先,你需要以''网站管理员的身份登录''
But first, you need to ''login'' as ''Site administrator''.
* 点击位于Gallery右上角的''登录''。接着输入你的用户名(如果之前没有修改用户名的话,那么就是'admin')和密码。
* 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刚安装完时唯一存在的用户帐户了。
::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.


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


另见:[[Gallery:FAQ#我修改了语言但是没有效果,这是怎么回事?|常见问题:我修改了语言但是没有效果,这是怎么回事?]]
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?]]


=== 图像工具包的配置 ===
=== Configure a Graphics Toolkit ===
Gallery可以为你生成缩略图(小尺寸的预览图片)以及重设尺寸的图片。''图像工具包'就可以用于图片处理及操作。你需要激活至少一个可用图像工具包。如果你没有激活工具包,尽管Gallery能正常运行,但你就无法看到各相册的缩略图概览了,从而使得浏览效果及效率欠佳。
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可能已经''自动配置''了所有可用图像工具包了。但也有可能的是,你需要自己手动进行配置。
If you are lucky, Gallery ''auto-configured'' all available graphics toolkits. But maybe, you need to configure it manually yourself.


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


最后,你可能希望调整一下图像工具包的优先级,这样就可以让Gallery在调用时知道该先用某特定的工具包再用其他的工具包了。最好不要把'GD'作为基本工具包来使用(它占用太多的资源,而且很占内存),因此可以先不要考虑它了。
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.
* 点击'管理选项(Admin Options)'的菜单'图像工具包(Graphics Toolkits)'分类中的''工具包优先级(Toolkit Priority)''
* Click on ''Toolkit Priority'' in the 'Graphics Toolkits' category in the left side 'Admin Options' menu.
::注:当多于一个的图像工具包处于激活状态时,你只能看到''工具包优先级(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.
* 在工具包优先级选项视图中,使用链接'上移(up)''下移(down)'来调整优先级(提示:如果GD在其中的话,将其下移吧)。
* In the Toolkit Priority option view, use the 'up' and 'down' links to adjust the priority (hint: move GD down if it's available).
* 点击'保存(Save)'
* Click 'Save'


=== Email的配置 ===
=== Configuring Email ===
Gallery能够成功发送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.
* 如果你还没有为自己的用户帐户输入email地址的话,请点击Gallery页面右上角的''我的帐户(My Account)'' 并输入你的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.
* 点击Gallery页面右上角的''站点管理(Site Admin)''以登入Gallery的站点管理区域。
* Click ''Site Admin'' in the upper right corner of Gallery to enter the Site Administration Area of Gallery.
** 下拉至''Email''区域。
** Scroll down to the ''Email'' section
*** 输入你的一个email地址并点击''发送email邮件(Send email)'''''测试'''email的相关功能是否有效。
*** Enter one of your email addresses and click ''Send email'' to '''test''' the email functionality.
*** 如果无效的话,你可能需要输入你email账户的SMTP 设定并再次进行测试。
*** If it fails, you may have to enter the SMTP settings of one of your email accounts and test again.


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


切记两点:
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.
# 要为整个相册甚至整个Gallery修改一个设定的话,请打开你的[[Gallery:Root_Album|根目录相册]]并在此修改设定。大部分设定都有一个''对子相册应用此设定''的选项。如果在根目录相册中使用的话,Gallery中所有的相册和项目都会受此设定的影响。
# 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的标题',你应当修改根目录相册的标题。
To change the 'title of your Gallery', you should change the title of the root album.
* 浏览到根目录相册并点击''编辑相册(Edit Album)'' -> ''一般(General)'' 标签来编辑你Gallery的标题。
* Browse to the root album and click ''Edit Album'' -> ''General'' tab to edit the title of your 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


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


=== 用户组 ===
=== 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.


在Gallery中有不少内置用户组和用户,因此理解这些内置的分组规则从而进行合理的Gallery权限管理是很重要的。
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)' 用户组的全部权限。
* ''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.
* ''已注册用户'' – 所有除游客外的用户自动被归到这个组中。只要登录了,你就拥有已注册用户应享有的所有权限,同时包括'所有人(Everybody)'用户组的所有权限。
* ''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 Admin)''区及所有的相册。默认情况下,仅预先定义的(安装向导中所创建的)'管理员'用户为此用户组成员。
* ''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.


请记住,赋予''所有人(Everybody)''用户组的所有权限会自动赋予给所有已注册用户。
Remember that all permissions assigned to the ''Everybody'' group are automatically assigned to all registered users as well.


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


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


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


== 相册的创建,相片的上传 ==
== Create Albums, Upload Photos ==
现在该是向你的Gallery中添加相片的时候了。你可以直接将相片加入到你的根目录相册中,但大多数用户更倾向于先创建一个顶层相册,然后再此相册中添加相片。
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:
* 相册及相片是在Gallery相册区中进行添加的。如果你尚滞留在'站点管理(Site Admin)'区中,请点击左上角的''Gallery''链接跳转过来。
* 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.
* 要创建一个相册,点击左侧菜单中的''添加相册(Add Album)''
* To create an album, click ''Add Album'' in the left side menu.
* 输入该相册的''名称''。你可以输入任何名称,只要给它一个名称就足够了。然后就可以点击''保存(Save)''了。
* 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:
* 点击左侧菜单中的''添加项目(Add Item)''
* Click on ''Add Items'' in the left side menu.
* 由于启用了一些插件,你现在就有多种办法添加相片到Gallery中了。
* Depending on the enabled plugins, you have now one or more methods to add photos to your Gallery.
* 你肯定想尝试使用''Gallery Remote''''Upload Applet''''Publish XP''。这些方法使得大量项目的添加操作变得很简便且快速,只需轻点几下鼠标就可以了。
* 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.
* 参见:[[Gallery:How_to_Add_Items|如何添加项目]]
* See: [[Gallery:How_to_Add_Items|How to Add Items]]


== 更多特色的添加及配置 ==
== Add and Configure More Features ==
在了解了Gallery的基本知识之后,现在就可以按你的需要自定义Gallery呈现出的特色了。
After learning the basics of Gallery, you will now want to customize the feature-set of Gallery to your needs.
*点击''站点管理(Site Admin)'',然后点击左侧'管理选项(Admin Options)'菜单中的''插件(Plugins)''(Gallery 2.2版本之前是'模块(Modules)'选项)。
* Click on ''Site Admin'' and then on the ''Plugins'' ('Modules' prior to Gallery 2.2) option in the left side 'Admin Options' menu.
* 点击顶部的''获取更多插件(Get More Plugins)''标签(在Gallery 2.2版本之前此选项不存在)
* Click on the ''Get More Plugins'' tab at the top (not availabe prior to Gallery 2.2)
** 参见:[[Gallery:How_to_Install_Plugins|如何安装插件的视频(0.7 MB)]]
** See: [[Gallery:How_to_Install_Plugins|How To Install Plugins Video (0.7 MB)]]
* 点击''下载插件列表(Download Plugin List)''按钮。此动作将联系中心库(在http://gallery.menalto.com中)下载一个罗列所有可用插件的列表。在下载过程中你能看到一个进度条,而下载完成后,会显示一个'下一步(continue)'的链接供后续操作。
* 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.
* 现在你可以花些时间安装这些插件了,点击'获取更多插件(Get More Plugins)'页面上的''安装(install)''就可以开始了。
* 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:
* 你可能希望访问你的网站的人可以选择'''用户注册'''(需要验证或无需验证)。那么就安装[[Gallery:Modules:register|注册模块(Registration module)]]
* You may want to give visitors of your site the option to '''register a user-account''' (with or without approval). Install the [[Gallery:Modules:register|Registration module]].
* 如果'URL 重写'模块安装并激活了,那么相册及图片的URL地址就会变得简洁美观。
* If the 'URL rewrite' module is installed and active, URLs for your albums and images will be much shorter and nicer.
* 激活'CAPTCHA'模块来保护你的Gallery不受攻击或恶意灌水。
* Activate the 'CAPTCHA' module to protect your Gallery from automated attacks and comment spam.
* '评论(Comment)'模块处于激活状态时,访问者和用户可以发表评论。
* Visitors and users can add comments if the 'Comment' module is active.
* 当然,还有更多有待发掘的东西。请参见:[[Gallery:Modules|Gallery 2的模块]]
* And there's much more to explore. See [[Gallery:Modules|Gallery 2 Modules]]


== 改变外观主题(去看去感受) ==
== Changing the Theme (Look and Feel) ==
外观主题控制Gallery的外观表现和呈现给人的感觉。
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.
* 你可以'''换一种不同的外观主题''',这样可以将你的Gallery外观和感觉做个180度的大转变。
* 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.
* 点击''站点管理(Site Admin)'',然后点击左侧'管理选项(Admin Options)'菜单中的''插件(Plugins)''
* Click on ''Site Admin'' and then on ''Plugins'' in the left side 'Admin Option' menu.
* 点击顶部的''获取更多插件(Get More Plugins)''标签(在Gallery 2.2版本之前此选项不存在)。如果页面为空的话,请点击''下载插件列表(Download Plugin List)''按钮。
* 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.
* 下拉至''外观主题(Themes)''分类并安装/激活其中的一部分。
* Scroll down to the ''Themes'' category and install / activate a few of them.


你可以通过''站点管理(Site Admin)''为Gallery的外观主题做全局设定。
You can manage theme settings globally for your complete Gallery via ''Site Admin''.
* 点击''站点管理(Site Admin)'',然后点击左侧'管理选项(Admin Options)'菜单中的''外观主题(Themes)''
* Click on ''Site Admin'' and then on ''Themes'' in the left side 'Admin Option' menu.
* 在此你可以设定Gallery范围内的默认外观主题及排序规则。
* 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.


在Gallery中,每个相册都可以有一个不同的外观主题及外观主题设定。
Each album can have a different theme and different theme settings in Gallery.
* 如果你尚滞留在'站点管理(Site Admin)'区中,请点击左上角的''Gallery''链接跳转到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.
* 点击''编辑相册(Edit Album)''并点击''外观主题(Theme)''标签。现在你可以用新的外观主题设定覆盖默认的外观主题设定了。
* Click ''Edit Album'' and click on the ''Theme'' tab. Here you can override any of the site-wide default theme settings.


::注:如果你向一个外观主题设定被覆盖的相册添加一个子相册的话,那么这个子相册将继承所有上级相册的设定。一般用户不愿意出现这种效果。你可以在''站点管理(Site Admin)'' -> ''外观主题(Themes)''中决定新建的子相册是否继承父族相册的全局默认设定。
::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:
* [http://themes.gallery2.hu/ 外观主题试衣间]
* [http://themes.gallery2.hu/ Theme Demo Showcase]
* [[Gallery:User_Contributions|用户贡献的外观主题]]
* [[Gallery:User_Contributions|User Contributed Themes]]
* [[Gallery:Themes|Gallery2的外观主题]]
* [[Gallery:Themes|Gallery 2 Themes]]


[[Category:Gallery 2:Installation]]
[[Category:Gallery 2:Installation]]
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅Wordpress-mediawiki:版权的细节)。 未经许可,请勿提交受版权保护的作品!
取消 编辑帮助(在新窗口中打开)