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

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
第46行: 第46行:


=== Email的配置 ===
=== Email的配置 ===
Gallery能够成功发送email邮件是很重要的。发送Email邮件多是用于用户密码的找回,新用户注册帐号的激活以及其他一些操作。
Gallery能否成功发送email邮件是很重要的。发送Email邮件多是用于用户密码的找回,新用户注册帐号的激活以及其他一些操作。
* 如果你还没有为自己的用户帐户输入email地址的话,请点击Gallery页面右上角的''我的帐户(My Account)'' 并输入你的email地址。
* 如果你还没有为自己的用户帐户输入email地址的话,请点击Gallery页面右上角的''我的帐户(My Account)'' 并输入你的email地址。
* 点击Gallery页面右上角的''站点管理(Site Admin)''以登入Gallery的站点管理区域。
* 点击Gallery页面右上角的''站点管理(Site Admin)''以登入Gallery的站点管理区域。

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

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: