<?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/"
	>

<channel>
	<title>Erick &#187; flickr photo album</title>
	<atom:link href="http://blog.xiongchuan.org/tag/flickr-photo-album/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.xiongchuan.org</link>
	<description>Even a great life is only a life until you make it.</description>
	<lastBuildDate>Thu, 10 Mar 2011 14:44:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://blog.xiongchuan.org/wp-includes/js/jquery/jquery.js?ver=1.4.4'></script>
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>Flickr Photo Album for WordPress&#124;wp 相册</title>
		<link>http://blog.xiongchuan.org/flickr-photo-album-for-wordpress.html</link>
		<comments>http://blog.xiongchuan.org/flickr-photo-album-for-wordpress.html#comments</comments>
		<pubDate>Thu, 19 Nov 2009 14:32:32 +0000</pubDate>
		<dc:creator>Erick</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[flickr photo album]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[相册]]></category>

		<guid isPermaLink="false">http://www.pigblog.net/?p=440</guid>
		<description><![CDATA[这几天突然想弄一个相册，放点图片。决定放Flickr上面，寻觅这样的插件，发现很多人说用Falbum，有很不错的评价，可惜我下载了最新版本，安装了却老有问题，要放弃时，偶然发现了这个插件，觉得挺好用的。Flickr Photo Album for WordPress，可以在sidebar提供照片，可以单独设置一个页面放相册。 讲一下安装吧： 1、当然下载这个zip的插件包，点这里下载 2、在wp后台，添加新插件，上传，激活插件 3、如果你想要单独的页面放相册，那么要开启rewrite，把原来的固定链接改成其它的样子 4、配置photo album 首先是授权，你必须要有一个Flickr的账号，这个自己解决吧，操作也明显。 相片集聚合 这个选项，设置路径，比如我设置的是photos/ 下面的按你的想法配置了。 5、为了在导航部分显示一个 相册 的链接我们要添加一个页面。先看效果图： 具体做法如下： A、左边menu的页面-&#62;添加新页面 B、标题处写上 相册 二字(当然你可以写其他的) C、点击右上角的 显示选项 在弹出菜单上 选择 页面别名选项 如下图 D、在下面 的页面别名处 填写 photos(和你在photo album的相片集处填写的路径一样) E、保存，完成。 这个时候，在你的博客页面，就可以看到相册的导航了，如果rewrite开启了的话，点击相册，就可以看到photo album上面的内容了，前提是你要有照片。效果： 但是你可能在你的博客里看到的效果和我的不一样，我是指没有排列好，这个是和具体模板有联系的。为了配合当前的模板，你需要修改这个文件。 /wp-content/plugins/tantan-flickr/templates/photoalbum-index.php 这个文件负责人布局，修改的话你要参照当前的模板，比如我现在用的是elegant-box这个主题，我就从这个目录下面找到/wp-content/themes/elegant-boxindex.php文件，参看布局，进行修改具体细节不想讲了，因为现在比较晚了，我要看火影了。针对我这个模板的photoalbum-index.php我放出来，如果有出现某种巧合你也用了这个模板，可以方便的把这个文件拿去覆盖啦。 getDisplayTemplate($photoTemplate)); // uncomment this line to print out the template being used // echo 'Photo [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">这几天突然想弄一个相册，放点图片。决定放Flickr上面，寻觅这样的插件，发现很多人说用Falbum，有很不错的评价，可惜我下载了最新版本，安装了却老有问题，要放弃时，偶然发现了这个插件，觉得挺好用的。<a href="http://tantannoodles.com/toolkit/photo-album/" target="_blank" rel="external nofollow">Flickr Photo Album for WordPress</a>，可以在sidebar提供照片，可以单独设置一个页面放相册。<br />
讲一下安装吧：<br />
1、当然下载这个zip的插件包，<a href="http://tantannoodles.com/toolkit/photo-album/" rel="external nofollow">点这里下载</a><br />
2、在wp后台，添加新插件，上传，激活插件<br />
3、如果你想要单独的页面放相册，那么要开启rewrite，把原来的固定链接改成其它的样子<br />
<a href="http://www.pigblog.net/wp-content/uploads/2009/11/4444.jpg" rel="external nofollow"><img class="aligncenter size-full wp-image-441" title="4444" src="http://www.pigblog.net/wp-content/uploads/2009/11/4444.jpg" alt="4444" width="570" height="309" /></a><br />
4、配置photo album<br />
首先是授权，你必须要有一个Flickr的账号，这个自己解决吧，操作也明显。<br />
相片集聚合 这个选项，设置路径，比如我设置的是photos/<br />
<a href="http://www.pigblog.net/wp-content/uploads/2009/11/5555.jpg" rel="external nofollow"><img class="aligncenter size-full wp-image-442" title="5555" src="http://www.pigblog.net/wp-content/uploads/2009/11/5555.jpg" alt="5555" width="596" height="101" /></a><br />
下面的按你的想法配置了。<br />
<span id="more-440"></span><br />
5、为了在导航部分显示一个 相册 的链接我们要添加一个页面。先看效果图：<br />
<a href="http://www.pigblog.net/wp-content/uploads/2009/11/6666.jpg" rel="external nofollow"><img class="aligncenter size-full wp-image-443" title="6666" src="http://www.pigblog.net/wp-content/uploads/2009/11/6666.jpg" alt="6666" width="128" height="41" /></a><br />
具体做法如下：<br />
A、左边menu的页面-&gt;添加新页面<br />
<a href="http://www.pigblog.net/wp-content/uploads/2009/11/77.jpg" rel="external nofollow"><img class="aligncenter size-full wp-image-444" title="77" src="http://www.pigblog.net/wp-content/uploads/2009/11/77.jpg" alt="77" width="143" height="74" /></a><br />
B、标题处写上 相册 二字(当然你可以写其他的)<br />
<a href="http://www.pigblog.net/wp-content/uploads/2009/11/888.jpg" rel="external nofollow"><img class="aligncenter size-full wp-image-446" title="888" src="http://www.pigblog.net/wp-content/uploads/2009/11/888.jpg" alt="888" width="394" height="107" /></a><br />
C、点击右上角的 显示选项 在弹出菜单上 选择 页面别名选项 如下图<br />
<a href="http://www.pigblog.net/wp-content/uploads/2009/11/99999.jpg" rel="external nofollow"><img class="aligncenter size-full wp-image-447" title="99999" src="http://www.pigblog.net/wp-content/uploads/2009/11/99999.jpg" alt="99999" width="970" height="154" /></a><br />
D、在下面 的页面别名处 填写 photos(和你在photo album的相片集处填写的路径一样)<br />
<a href="http://www.pigblog.net/wp-content/uploads/2009/11/111111111111.jpg" rel="external nofollow"><img class="aligncenter size-full wp-image-448" title="111111111111" src="http://www.pigblog.net/wp-content/uploads/2009/11/111111111111.jpg" alt="111111111111" width="212" height="152" /></a><br />
E、保存，完成。<br />
这个时候，在你的博客页面，就可以看到相册的导航了，如果rewrite开启了的话，点击相册，就可以看到photo album上面的内容了，前提是你要有照片。效果：<br />
<a href="http://www.pigblog.net/wp-content/uploads/2009/11/123456.jpg" rel="external nofollow"></a><a href="http://www.pigblog.net/wp-content/uploads/2009/11/123456.jpg" rel="external nofollow"><img class="size-full wp-image-455 aligncenter" title="123456" src="http://www.pigblog.net/wp-content/uploads/2009/11/123456.jpg" alt="123456" width="600" height="200" /></a></p>
<p>但是你可能在你的博客里看到的效果和我的不一样，我是指没有排列好，这个是和具体模板有联系的。为了配合当前的模板，你需要修改这个文件。<br />
/wp-content/plugins/tantan-flickr/templates/photoalbum-index.php<br />
这个文件负责人布局，修改的话你要参照当前的模板，比如我现在用的是elegant-box这个主题，我就从这个目录下面找到/wp-content/themes/elegant-boxindex.php文件，参看布局，进行修改具体细节不想讲了，因为现在比较晚了，我要看火影了。针对我这个模板的photoalbum-index.php我放出来，如果有出现某种巧合你也用了这个模板，可以方便的把这个文件拿去覆盖啦。</p>
<pre class="php" style="text-align: left;"><!--p /* Template Name: Photo Album If you want to customize the look and feel of your photo album, follow these steps.  You'll probably need a good understanding of HTML and CSS! 1. Copy this file into your current active theme's directory 2. Also copy all the files starting with "photoalbum-" into your theme's directory       * Alternatively, you could only copy just the "photoalbum-" file you want to customize into your current themes directory. 3. Customize the CSS in photoalbum-header.html to your liking. 4. That's it :) The main template files: - photoalbum-albums-index.html shows all your Flickr sets (aka albums) - photoalbum-album.html displays a highlight photo and all the photos for an album - photoalbum-photo.html displays one photo, along with next and previous photo links  Troubleshooting Tips: Not all WordPress themes are created equal, so default look and feel might look a little weird on your blog. Try looking at your theme's "index.php" and copy and paste any extra HTML or PHP into this file. $Revision: 128 $ $Date: 2008-04-24 00:16:32 -0400 (Thu, 24 Apr 2008) $ $Author: joetan54 $ */ global $TanTanFlickrPlugin; if (!is_object($TanTanFlickrPlugin)) wp_die('Flickr Photo Album plugin is not installed / activated!'); get_header(); // load the appropriate albums index, album's photos, or individual photo template. // $photoTemplate contains the template being used-->
<!--
<div id="content" class="narrowcolumn">-->
<div class="post"><!--p include($tpl = $TanTanFlickrPlugi-->getDisplayTemplate($photoTemplate));
// uncomment this line to print out the template being used
// echo 'Photo Album Template: '.$tpl;
?&gt;</div>

<!--p get_sidebar();-->
<div id="bottom"><!--p get_footer()--></div>
</pre>
<p>6、设置sidebar上面的图片<br />
这个很简单，在左边menu-&gt;小工具-&gt;把Flickr sidebar拖到右边 激活就OK了，你可以选择显示几张，如果你不选择随机显示相片的话，那么 第二栏的 标签对你来说很重要，因为显示的相片是根据你填写的标签，在flickr上你的相册里搜索的，所以呢，要怎么做，你知道了吧。<br />
<span style="color: #ff0000;">PS：如果你填写的标签，但是又没有显示出相片来，而你的相册确实是有相片的，并且也加了标签，这个的时候你要做的是，在photo album处刷新相集，清除cache这个选项选上，因为这个插件是有缓存的。</span></p>
<p>7、尽情享受吧！<br />
这是新手的天堂，高手闪开！</p>
<h4  class="entry-title">Related Posts</h4><ul class="related_post"><li><a href="http://blog.xiongchuan.org/blog-back.html" title="博客归来，更简洁了">博客归来，更简洁了</a></li><li><a href="http://blog.xiongchuan.org/batch-delete-blank-lines.html" title="PHP批量删除空行|wordpress迁移的艰辛">PHP批量删除空行|wordpress迁移的艰辛</a></li><li><a href="http://blog.xiongchuan.org/firefox-plugins-reboot-failed-resolve.html" title="Firefox安装插件后，重启无效的解决方法">Firefox安装插件后，重启无效的解决方法</a></li><li><a href="http://blog.xiongchuan.org/make-a-change-google-syntax-highlighter-for-wordpress.html" title="小小改动高亮插件Google Syntax Highlighter for WordPress">小小改动高亮插件Google Syntax Highlighter for WordPress</a></li><li><a href="http://blog.xiongchuan.org/add-author-name-for-wordpress.html" title="给博客加个作者|wordpress作者函数">给博客加个作者|wordpress作者函数</a></li><li><a href="http://blog.xiongchuan.org/change-blog-program-to-wordpress.html" title="换博客啦">换博客啦</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.xiongchuan.org/flickr-photo-album-for-wordpress.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

