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

来自站长百科
跳转至: 导航、​ 搜索
(新页面: <h3>Description</h3> [http://www.flashyourweb.com/filemgmt/index.php?id=8 G2Bridge] is a [http://www.geeklog.net Geeklog] plugin which allows integration of the [http://gallery.menalto.c...)
 
无编辑摘要
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
<h3>Description</h3>
<h3>描述</h3>


[http://www.flashyourweb.com/filemgmt/index.php?id=8 G2Bridge] is a [http://www.geeklog.net Geeklog] plugin which allows integration of the [http://gallery.menalto.com/ Gallery2] image gallery into your Geeklog site.
[http://www.flashyourweb.com/filemgmt/index.php?id=8 G2Bridge]是一个[http://www.geeklog.net Geeklog]插件,它允许 [http://gallery.menalto.com/ Gallery2]图片gallery整合到你的Geeklog站点中。


By default, the bridge installs a random photo block, which is enabled, and a Gallery2 control block [the G2 sidebar], which is disabled.<br>
默认情况下,该bridge安装一个随机的相片区块,为启用状态;还安装一个Gallery2控制区块[G2边栏],为禁用状态。<br>
The control block is explained on the G2Bridge admin page.<br>
控制区块在G2Bridge管理页面上有相关解释。<br>
<small>*In order for the random photo block to work, you must have the 'Image Block' module installed.<br>
<small>*为了能够让随机相片区块工作,你必须安装'Image Block'模块。<br>
You can find the 'Image Block' module on the G2 [http://codex.gallery2.org/Gallery2:Download#Modules downloads] page or check your G2's admin its probably already there.</small>
你可以在G2 [http://codex.gallery2.org/Gallery2:Download#模块下载]页面上找到'Image Block'模块,也可以查看一下G2的管理页面,或许已经有了该模块。</small>


<span style="color:red;">Note that although G2Bridge maps users from one app to the other, it does not map group permissions.</span>
<span style="color:red;">注意尽管G2Bridge将用户由一个应用程序映射到另一个,它不会映射用户组权限。</span>
<br>
<br>
<h3>Version History</h3>
<h3>版本历史</h3>


<ul>
<ul>
<li>v2.0 [5 Aug 2007]
<li>v2.0 [2007年8月5日]
<ul>
<ul>
<li><span style="color:blue;">[fix]</span> Updated GL detection of anon user for 1.4.1. Minor cleanup of other functions.
<li><span style="color:blue;">[fix]</span> 更新1.4.1版anon用户的GL检测。以及其他功能的小裁减。
<li><span style="color:blue;">[fix]</span> Gallery2 sidebar now displays properly in rightblocks.
<li><span style="color:blue;">[fix]</span> Gallery2边栏现在能够在rightblocks中正确显示了。
<li><span style="color:red;">[new]</span> Added option for displaying [http://www.flashyourweb.com/dokuwiki/doku.php?id=xmlmini Flash XML MiniSlideShow] in blocks.
<li><span style="color:red;">[new]</span>添加[http://www.flashyourweb.com/dokuwiki/doku.php?id=xmlmini Flash XML MiniSlideShow]在区块中进行显示的选项。
</ul>
</ul>
</li>
</li>
<li>v1.1 [5 Apr 2006]  
<li>v1.1 [2006年4月5日]  
<ul>
<ul>
<li><span style="color:red;">[new]</span> Added option for displaying left and right blocks in <b>config.php</b></li>
<li><span style="color:red;">[new]</span> 添加在<b>config.php</b></li>中显示左右区块的选项
<li><span style="color:blue;">[fix]</span> Now correctly maps users that pre-exsist in both apps, no more collisions.
<li><span style="color:blue;">[fix]</span> 现在能够正确映射预先存在于应用程序中的用户了,不会再产生崩溃。
<li><span style="color:blue;">[fix]</span> Gallery2 sidebar now displays properly.
<li><span style="color:blue;">[fix]</span> Gallery2边栏现在能够正确显示了。
</ul>
</ul>
</li>
</li>
<li>v1.0 [18 Mar 2006] Forked to G2Bridge from GL_Gallery2 for compatibility with Gallery 2.1+ by [mailto:suprsidr@gmail.com suprsidr] [http://www.flashyourweb.com/ flashyourweb.com]
<li>v1.0 [2006年3月18日]应Gallery 2.1+兼容性的需要,由GL_Gallery2分支出G2Bridge,[mailto:suprsidr@gmail.com suprsidr] [http://www.flashyourweb.com/ flashyourweb.com]
<ul>
<ul>
<li><span style="color:red;">[new]</span> Fully updated Gallery 2.1 API
<li><span style="color:red;">[new]</span> 完全更新的Gallery 2.1 API。
<li><span style="color:red;">[new]</span> Added option for My Gallery link (for use with User Album Module) as apposed to Gallery2 link in User Menu
<li><span style="color:red;">[new]</span> 添加My Gallery链接的选项,附于用户菜单的Gallery2链接旁。
<li><span style="color:red;">[new]</span> Added option for alternate login redirect in <b>config.php </b>
<li><span style="color:red;">[new]</span> 添加<b>config.php </b>中备用登入重定向的选项
<li><span style="color:blue;">[fix]</span> Now adds installing user to G2 Admin Group instead of mapping user to G2 admin user
<li><span style="color:blue;">[fix]</span> 现在添加安装用户至G2管理用户组,而不再将用户映射到G2管理用户。
<li><span style="color:blue;">[fix]</span> <b>No More Path Confusion</b> :)
<li><span style="color:blue;">[fix]</span> <b>不再存在路径混淆了。</b> :)
</ul>
</ul>
</ul>
</ul>
<br>
<br>
<h3>Installing The Plugin</h3>
 
<h3>安装插件</h3>
A note on paths:
路径的相关注释:
<ul>
<ul>
<li>a path beginning with ./ is where the plugin's config.php may be found</li>
<li>./开头的路径可找到插件的config.php </li>
<li>&lt;public_html&gt; is where your lib-common.php file may be found</li>
<li>&lt;public_html&gt; 可找到lib-common.php文件</li>
<li>&lt;geeklog_dir&gt; is where your config.php file for geeklog may be found</li>
<li>&lt;geeklog_dir&gt; 可找到geeklog的config.php文件</li>
</ul>
</ul>
<ol>
<ol>
<li>First off, make sure you have a working Gallery2 installation and a working Geeklog installation.</li>
<li>首先确保你的gallery2和Geeklog能够正常运作。</li>
<li>If you have G2's <b>URL Rewrite module</b> installed, deactivate and remove it.  Re-install it <b>through the
<li>如果你安装了G2的<b>URL重写模块</b>,禁用它并将其移除。在插件安装完成并确认其确实可运作后,<b>通过
embedded version</b> 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.</li>
嵌入的版本</b>将其重新进行安装。这将保证重写时使用的是正确的路径。</li>
<li>Backup your Geeklog database because the G2Bridge plugin adds and modifies tables.
<li>备份你的Geeklog数据库 因为G2Bridge插件可能会添加或修改数据库表格。
You can do this with the built in database backup facility in the Admin menu.</li>
你可以使用管理菜单中内置的数据库备份设备完成此操作。</li>
<li>Uncompress the G2Bridge plugin archive while in the &lt;geeklog_dir&gt;/plugins directory.
<li>解压缩G2Bridge插件的归档文件,同时在&lt;geeklog_dir&gt;/plugins目录中。
The archive will create a directory called G2Bridge.</li>
归档文件会创建一个名为G2Bridge的目录。</li>
<li>In your &lt;public_html&gt;/admin/plugins/ directory create a directory called G2Bridge.</li>
<li>&lt;public_html&gt;/admin/plugins/目录下创建一个名为G2Bridge的目录。</li>
<li>In your &lt;public_html&gt; directory, create a directory called G2Bridge.</li>
<li>&lt;public_html&gt;目录下, 创建一个名为G2Bridge的目录。</li>
<li>Copy the files in the ./admin directory to the &lt;public_html&gt;/admin/plugins/G2Bridge/ directory you created in step 5.</li>
<li>复制./admin目录下的文件至你在第五步中创建的&lt;public_html&gt;/admin/plugins/G2Bridge/目录下。</li>
<li>Copy the files and directories in the ./public_html directory to the &lt;public_html&gt;/G2Bridge/
<li>复制./public_html目录下的文件及目录至你在第六步中创建的&lt;public_html&gt;/G2Bridge/
directory you created in step 6.</li>
目录下。</li>
<li>Configure your plugin by setting paths and options in the <b>./config.php</b> file.</li>
<li>通过在<b>./config.php</b>文件中设定路径及选项来配置你的插件。</li>
<li>Login as the user who will be the admin for the G2 installation. Go to the plugin administration page.
<li>以G2管理员身份登入。来到插件管理页面。
The G2Bridge plugin should show up with a link to install it.  Click it.  The install page will tell you if the install
G2Bridge创建现在应显示一个可供安装的链接。点击该链接。安装页面会告知你安装
was successful or not.  If not, examine the Geeklog system errorlog in &lt;geeklog_dir&gt;/logs to see
是否成功。如果失败了,请在&lt;geeklog_dir&gt;/logs 中查看Geeklog系统错误日志
what the problem was.  Fix it and re-install.</li>
来看看问题所在。修复出现的问题并重新进行安装。</li>
<li>Install will map installing user as G2 admin, others can be added through normal G2 admin.
<li>安装将映射进行安装的用户为G2管理员,其他用户可通过一般的G2管理进行添加。
<li><b>Note:</b> This plugin creates blocks which you should not remove manually.
<li><b>注:</b> 该插件创建的区块不应手动进行移除。
It is fine to disable them, but the plugin expects them to exist.
禁用这些区块是可以的,但插件要求它们至少存在。
They will be removed if you choose to remove the plugin.</li>
选择移除插件时,这些区块会被移除。</li>
</ol>
</ol>
<br>
<br>
<h3>Configuring The Plugin</h3>
 
<h3>配置插件</h3>
The only thing you <i>must</i> do is configure your paths  in your G2Bridge <b>config.php</b>.  These are explained in the  file.<br>
你需要做的唯一一件事就是配置G2Bridge <b>config.php</b>中的路径。这些在文件中有解释。<br>


<b>$_G2B_CONF['public_dir']</b> allows you to name the public_html portion of the G2Bridge plugin whatever you want.
<b>$_G2B_CONF['public_dir']</b> 运行你任意命名G2Bridge插件的public_html 部分。


<b>$_G2B_CONF['random_photo_fields']</b> allows you to specify what data should be displayed in the random photo block.
<b>$_G2B_CONF['random_photo_fields']</b> 允许你指定显示在随机相片区块中的数据。


<b>$_G2B_CONF['allow_anon_access_random_photo']</b> and
<b>$_G2B_CONF['allow_anon_access_random_photo']</b>
   
   
<b>$_G2B_CONF['allow_anon_access_gallery']</b> specify what should be visible to anonymous users.
<b>$_G2B_CONF['allow_anon_access_gallery']</b> 确定匿名用户所能看见的内容。


<b>$_G2B_CONF['user_albums']</b> lets you select what type of link will appear in the user menu. &quot;My Gallery&quot; or  &quot;Gallery2&quot;
<b>$_G2B_CONF['user_albums']</b> 使你能够选择用户菜单中出现链接的类型。&quot;My Gallery&quot; &quot;Gallery2&quot;


<b>$_G2B_CONF['login_redirect']</b> can be set if you use a custom login page for your geeklog site.
<b>$_G2B_CONF['login_redirect']</b> ,如果你的geeklog站点使用自定义的登入页面,就可对其进设定。


<b>Note:</b> if you are experiencing unresolvable redirects in your browser set this to ' '.
<b>注:</b> 如果你在浏览器中遇上无法决定的重定向,请将此设定为' '


All other configuration is done through your Gallery2 admin page.
其他所有的配置都是通过Gallery2管理页面完成的。。
<br>
<br>
<h3>The Admin Section</h3>
<h3>管理部分</h3>
<ul>
<ul>
<li>Within the admin page &lt;site_admin_url&gt;/plugins/G2Bridge/index.php there are a few option for your control.
<li>在管理页面 &lt;site_admin_url&gt;/plugins/G2Bridge/index.php中,有一些选项可供控制之用。
<li>Control the Gallery2 SideBar Block's visibility.
<li>控制Gallery2边栏区块的可见度。
<li>Sync your Geeklog&amp; Gallery2 users should they ever fall out of sync.
<li>对Geeklog&amp; Gallery2用户进行同步。
<li><span style="color:red;">[new]</span>Create Blocks containing my Flash XML MiniSlideShow to display your albums like the random photo block.</ul>
<li><span style="color:red;">[new]</span>创建含有my Flash XML MiniSlideShow的区块将你的相册以随机相片区块的形式进行显示。</ul>
<br>
<br>
<h3>Upgrading The Plugin</h3>
<h3>升级插件</h3>
Upgrading G2Bridge is very similar to installation:
升级G2Bridge与安装很相似:
<ol>
<ol>
<li>Backup your Geeklog database because upgrading may add or modify database tables.
<li>备份你的Geeklog数据库,因为升级可能会添加或修改数据库表格。
You can do this with the built in database backup facility in the Admin menu.</li>
你可以使用管理菜单中内置的数据库完成此操作。</li>
<li>Disable G2Bridge using the admin interface's plugin editor [Admin->Plugins->G2Bridge]</li>
<li>使用管理界面的插件编辑器来禁用G2Bridge [Admin->Plugins->G2Bridge]</li>
<li>Uncompress the G2Bridge plugin and copy the new files over the old ones as if it were a new installation.</li>
<li>解压缩G2Bridge插件并将新文件复制并覆盖到旧文件上,其实可以当作新的安装来进行。</li>
<li>Enable G2Bridge using the admin interface [Admin->Plugins->G2Bridge]</li>
<li>使用管理界面启用G2Bridge [Admin->Plugins->G2Bridge]</li>
<li>Go back to the plugin editor for G2Bridge [Admin->Plugins->G2Bridge] and click the 'Update' button.</li>
<li>返回G2Bridge的插件编辑器 [Admin->Plugins->G2Bridge]并点击'更新(Update)'按钮。</li>
</ol>
</ol>
<br>
<br>
<h3>Removing The Plugin</h3>
<h3>移除插件</h3>
<ol>
<ol>
<li>Because the plugin modifies several database tables, it should <b>always</b> be removed through the interface provided.
<li>因为插件会修改某些数据库表格,它<b>总是</b>应当通过提供的界面移除。
Log in to your Geeklog as a root user and go to the plugin administration page.  Click the 'G2Bridge'
以root用户身份登入Geeklog并来到插件管理页面。点击'G2Bridge'
link and then click the 'Delete' button.  It will ask you to confirm it.  Confirm it.</li>
链接并点击'删除(Delete)'按钮。它会要求你进行确认。那么就请确认删除。</li>
<li>Delete the three plugin directories created in the install process:
<li>删除安装过程中创建的三个插件目录:
<ul>
<ul>
<li>&lt;geeklog-dir&gt;/plugins/G2Bridge/</li>
<li>&lt;geeklog-dir&gt;/plugins/G2Bridge/</li>
<li>&lt;public_html&gt;/G2Bridge/ [OR whatever you changed the name to in your config.php]</li>
<li>&lt;public_html&gt;/G2Bridge/ [或在config.php中你所修改后的任何名称]</li>
<li>&lt;public_html&gt;/admin/plugins/G2Bridge/</li>
<li>&lt;public_html&gt;/admin/plugins/G2Bridge/</li>
</ul>
</ul>
</li>
</li>
<li>There is no step three.</li>
<li>没有第三步了,完成。</li>
</ol>
</ol>
<h3>Questions/Comments</h3>
<h3>疑问/评论</h3>
[mailto://suprsidr@gmail.com mail suprsidr]<br>
[mailto://suprsidr@gmail.com 发送邮件给suprsidr]<br>
[http://www.flashyourweb.com visit mysite]<br>
[http://www.flashyourweb.com 访问mysite]<br>


[[Category:Integration|Geeklog]]
[[Category:Integration|Geeklog]]
[[Category:Integration:Geeklog]]
[[Category:Integration:Geeklog]]

2008年9月27日 (六) 09:35的最新版本

描述

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. 首先确保你的gallery2和Geeklog能够正常运作。
  2. 如果你安装了G2的URL重写模块,禁用它并将其移除。在插件安装完成并确认其确实可运作后,通过 嵌入的版本将其重新进行安装。这将保证重写时使用的是正确的路径。
  3. 备份你的Geeklog数据库 因为G2Bridge插件可能会添加或修改数据库表格。 你可以使用管理菜单中内置的数据库备份设备完成此操作。
  4. 解压缩G2Bridge插件的归档文件,同时在<geeklog_dir>/plugins目录中。 归档文件会创建一个名为G2Bridge的目录。
  5. 在<public_html>/admin/plugins/目录下创建一个名为G2Bridge的目录。
  6. 在<public_html>目录下, 创建一个名为G2Bridge的目录。
  7. 复制./admin目录下的文件至你在第五步中创建的<public_html>/admin/plugins/G2Bridge/目录下。
  8. 复制./public_html目录下的文件及目录至你在第六步中创建的<public_html>/G2Bridge/ 目录下。
  9. 通过在./config.php文件中设定路径及选项来配置你的插件。
  10. 以G2管理员身份登入。来到插件管理页面。 G2Bridge创建现在应显示一个可供安装的链接。点击该链接。安装页面会告知你安装 是否成功。如果失败了,请在<geeklog_dir>/logs 中查看Geeklog系统错误日志 来看看问题所在。修复出现的问题并重新进行安装。
  11. 安装将映射进行安装的用户为G2管理员,其他用户可通过一般的G2管理进行添加。
  12. 注: 该插件创建的区块不应手动进行移除。 禁用这些区块是可以的,但插件要求它们至少存在。 选择移除插件时,这些区块会被移除。


配置插件

你需要做的唯一一件事就是配置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