Gallery: 整合:Geeklog:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
第17行: 第17行:
<li><span style="color:blue;">[fix]</span> 更新1.4.1版anon用户的GL检测。以及其他功能的小裁减。
<li><span style="color:blue;">[fix]</span> 更新1.4.1版anon用户的GL检测。以及其他功能的小裁减。
<li><span style="color:blue;">[fix]</span> Gallery2边栏现在能够在rightblocks中正确显示了。
<li><span style="color:blue;">[fix]</span> Gallery2边栏现在能够在rightblocks中正确显示了。
<li><span style="color:red;">[new]</span>添加在区块中[http://www.flashyourweb.com/dokuwiki/doku.php?id=xmlmini Flash XML MiniSlideShow]进行显示的选项。
<li><span style="color:red;">[new]</span>添加[http://www.flashyourweb.com/dokuwiki/doku.php?id=xmlmini Flash XML MiniSlideShow]在区块中进行显示的选项。
</ul>
</ul>
</li>
</li>
第37行: 第37行:
</ul>
</ul>
<br>
<br>
<h3>安装插件</h3>
<h3>安装插件</h3>

2008年9月26日 (五) 17:28的版本

描述

G2Bridge是一个Geeklog插件,它允许 Gallery2图片gallery整合到你的Geeklog站点中。

默认情况下,该bridge安装一个随机的相片区块,为启用状态;还安装一个Gallery2控制区块[G2边栏],为禁用状态。
控制区块在G2Bridge管理页面上有相关解释。
*为了能够让随机相片区块工作,你必须安装'Image Block'模块。
你可以在G2 [1]页面上找到'Image Block'模块,也可以查看一下G2的管理页面,或许已经有了该模块。

注意尽管G2Bridge将用户由一个应用程序映射到另一个,它不会映射用户组权限。

版本历史

  • v2.0 [2007年8月5日]
    • [fix] 更新1.4.1版anon用户的GL检测。以及其他功能的小裁减。
    • [fix] Gallery2边栏现在能够在rightblocks中正确显示了。
    • [new]添加Flash XML MiniSlideShow在区块中进行显示的选项。
  • v1.1 [2006年4月5日]
    • [new] 添加在config.php
    • 中显示左右区块的选项
    • [fix] 现在能够正确映射预先存在于应用程序中的用户了,不会再产生崩溃。
    • [fix] Gallery2边栏现在能够正确显示了。
  • v1.0 [2006年3月18日]应Gallery 2.1+兼容性的需要,由GL_Gallery2分支出G2Bridge,suprsidr flashyourweb.com
    • [new] 完全更新的Gallery 2.1 API。
    • [new] 添加My Gallery链接的选项,附于用户菜单的Gallery2链接旁。
    • [new] 添加config.php 中备用登入重定向的选项
    • [fix] 现在添加安装用户至G2管理用户组,而不再将用户映射到G2管理用户。
    • [fix] 不再存在路径混淆了。 :)


安装插件

路径的相关注释:

  • 以 ./开头的路径可找到插件的config.php
  • 由<public_html> 可找到lib-common.php文件
  • 由<geeklog_dir> 可找到geeklog的config.php文件
  1. First off, make sure you have a working Gallery2 installation and a working Geeklog installation.
  2. If you have G2's URL Rewrite module installed, deactivate and remove it. Re-install it through the embedded version after you've completed the installation of the plugin and verified that the installation works properly. This will ensure that the correct paths are used for rewriting.
  3. Backup your Geeklog database because the G2Bridge plugin adds and modifies tables. You can do this with the built in database backup facility in the Admin menu.
  4. Uncompress the G2Bridge plugin archive while in the <geeklog_dir>/plugins directory. The archive will create a directory called G2Bridge.
  5. In your <public_html>/admin/plugins/ directory create a directory called G2Bridge.
  6. In your <public_html> directory, create a directory called G2Bridge.
  7. Copy the files in the ./admin directory to the <public_html>/admin/plugins/G2Bridge/ directory you created in step 5.
  8. Copy the files and directories in the ./public_html directory to the <public_html>/G2Bridge/ directory you created in step 6.
  9. Configure your plugin by setting paths and options in the ./config.php file.
  10. Login as the user who will be the admin for the G2 installation. Go to the plugin administration page. The G2Bridge plugin should show up with a link to install it. Click it. The install page will tell you if the install was successful or not. If not, examine the Geeklog system errorlog in <geeklog_dir>/logs to see what the problem was. Fix it and re-install.
  11. Install will map installing user as G2 admin, others can be added through normal G2 admin.
  12. Note: This plugin creates blocks which you should not remove manually. It is fine to disable them, but the plugin expects them to exist. They will be removed if you choose to remove the plugin.


配置插件

你需要做的唯一一件事就是配置G2Bridge config.php中的路径。这些在文件中有解释。

$_G2B_CONF['public_dir'] 运行你任意命名G2Bridge插件的public_html 部分。

$_G2B_CONF['random_photo_fields'] 允许你指定显示在随机相片区块中的数据。

$_G2B_CONF['allow_anon_access_random_photo']

$_G2B_CONF['allow_anon_access_gallery'] 确定匿名用户所能看见的内容。

$_G2B_CONF['user_albums'] 使你能够选择用户菜单中出现链接的类型。"My Gallery" 或 "Gallery2"

$_G2B_CONF['login_redirect'] ,如果你的geeklog站点使用自定义的登入页面,就可对其进设定。

注: 如果你在浏览器中遇上无法决定的重定向,请将此设定为' '。

其他所有的配置都是通过Gallery2管理页面完成的。。

管理部分

  • 在管理页面 <site_admin_url>/plugins/G2Bridge/index.php中,有一些选项可供控制之用。
  • 控制Gallery2边栏区块的可见度。
  • 对Geeklog& Gallery2用户进行同步。
  • [new]创建含有my Flash XML MiniSlideShow的区块将你的相册以随机相片区块的形式进行显示。


升级插件

升级G2Bridge与安装很相似:

  1. 备份你的Geeklog数据库,因为升级可能会添加或修改数据库表格。 你可以使用管理菜单中内置的数据库完成此操作。
  2. 使用管理界面的插件编辑器来禁用G2Bridge [Admin->Plugins->G2Bridge]
  3. 解压缩G2Bridge插件并将新文件复制并覆盖到旧文件上,其实可以当作新的安装来进行。
  4. 使用管理界面启用G2Bridge [Admin->Plugins->G2Bridge]
  5. 返回G2Bridge的插件编辑器 [Admin->Plugins->G2Bridge]并点击'更新(Update)'按钮。


移除插件

  1. 因为插件会修改某些数据库表格,它总是应当通过提供的界面移除。 以root用户身份登入Geeklog并来到插件管理页面。点击'G2Bridge' 链接并点击'删除(Delete)'按钮。它会要求你进行确认。那么就请确认删除。
  2. 删除安装过程中创建的三个插件目录:
    • <geeklog-dir>/plugins/G2Bridge/
    • <public_html>/G2Bridge/ [或在config.php中你所修改后的任何名称]
    • <public_html>/admin/plugins/G2Bridge/
  3. 没有第三步了,完成。

疑问/评论

发送邮件给suprsidr
访问mysite