<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>SHAMAS &#187; gallery2</title>
	<atom:link href="http://shamas.me/tag/gallery2/feed/" rel="self" type="application/rss+xml" />
	<link>http://shamas.me</link>
	<description>Design, Music and Health</description>
	<lastBuildDate>Mon, 06 Feb 2012 08:44:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>wordpress与gallery2成功整合</title>
		<link>http://shamas.me/successful-integration-of-wordpress-and-gallery2/</link>
		<comments>http://shamas.me/successful-integration-of-wordpress-and-gallery2/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 04:51:40 +0000</pubDate>
		<dc:creator>shamas</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Gallery]]></category>
		<category><![CDATA[gallery2]]></category>
		<category><![CDATA[整合相册]]></category>

		<guid isPermaLink="false">http://shamas.me/successful-integration-of-wordpress-and-gallery2</guid>
		<description><![CDATA[经过数小时的辛勤劳作，终于把wordpress与gallery2给整合到一起了，想起我可怜的picasa网络相册，只有翻墙才能看，不过现在好了，再也不受那些鸟限制，想发什么图就发什么图。下面的教程部分来自网络。 整合必须的： gallery2 下载：gallery-2.3 wpg2 下载：WPG2 3.0.7 首先在gallery2的下载页面会看到有Typical、Full、Minimal、Developer这几个版本，为了节省空间，选择Minimal安装包下载，然后解压上传到和wordpress程序相同的空间（域名可以不同但要在同一个空间），假如你的wordpress路径为abc/wordpress,则gallery可以选择abc/gallery的路径。 安装gallery2之前，需要为gallery2建立新的数据库，注意：一定要和wordpress在同一个database上。然后开始安装，在安装的第一步，。安装完成后，你就可以管理你的gallery图片站，这时你可以倒杯茶歇一会儿，顺便体验一下它的功能，不过我建议最好是先对部分插件进行安装，因为在安装wpg2时会用到Image Block和Image Frame这两个插件，Minimal安装包内没有，需要去这里下载。然后你可以试着创建相册，并传几张照片上去，以便后来整合时调整css用。 接下来就是安装wpg2这个“外挂”了，下载最新版wpg2 3.X后解压缩会得到wpg2这个文件夹，把它放在/wordpress/wp-content/plugins/ 路径下，然后去后台激活它。 激活后会在后台管理首页发现多出了WPG2这一选项，这时需要进行wpg2 validation check，通过之后会显示success，如果出现了红色fail说明有部分插件或module没有安装，回到gallery2中检查，直到通过检测。然后在Should Gallery2 Page(s) look like a WordPress Page?这一项选择Yes。 下面是重点，介绍如何用WPG2整合gallery2 和wordpress。在成功安装WPG2这个插件之后，会发现多了一个wpg2的新页面，这个就是调用gallery2的页面。打开此页面，看到 wordpress已经加载了相册程序，只不过外观上显得很不搭配。当然，网上有很多专门用来搭配对应某一款wordpress主题的theme。不过在不改变blog主题的基础上就只能修改gallery2的theme和CSS属性，以实现外观上的整合。 假如 gallery2 的 theme 名称是 wordpressembedded，找到 gallery2themes wordpressembeddedtemplates 这个路径，里面有几个 .tpl 的模板文件，现在的任务就是修改这几个模板文件以及 …theme.css 文件。 其中的theme.tpl文件为mian.php要加载的文件。主要修改的是album.tpl和photo.tpl这两个文件。album.tpl为相册模板，即为wpg2页面的主页面模板；photo.tpl为单个照片的模板，包括很多CSS元素。通过修改这两个模板，你可以改变相册页面的内容。然后找到theme.css，修改其中的属性，来使页面的颜色、布局、字体大小和你的wordpress主题相匹配。这时你需要的是耐心来一个一个去修改并测试，直到你觉得满意为止。 相关演示：相册 另外还有个特点就是发文章时可以自动调用G2相册里面的图片或整个相册 5053]]></description>
		<wfw:commentRss>http://shamas.me/successful-integration-of-wordpress-and-gallery2/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

