<?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>bulldoggie studio&#039;s blog &#187; wordpress</title>
	<atom:link href="http://bulldoggie.cn/blog/category/tutorials/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://bulldoggie.cn/blog</link>
	<description></description>
	<lastBuildDate>Thu, 16 Sep 2010 06:00:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Post Pic How to: Get the first image from the post and display it</title>
		<link>http://bulldoggie.cn/blog/2010/06/26/post-pic-how-to-get-the-first-image-from-the-post-and-display-it/</link>
		<comments>http://bulldoggie.cn/blog/2010/06/26/post-pic-how-to-get-the-first-image-from-the-post-and-display-it/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 04:12:48 +0000</pubDate>
		<dc:creator>classiclori</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bulldoggie.cn/blog/?p=440</guid>
		<description><![CDATA[<p>Most WordPress users are using custom fields to display thumbs on their blog homepage. It is a good idea, but do you know that with a simple php function, you can grab the first image from the post, and display it. Just read on.</p><p> <span class='read-more'><a href='http://bulldoggie.cn/blog/2010/06/26/post-pic-how-to-get-the-first-image-from-the-post-and-display-it/'>[Read More…]</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<div>
<blockquote><p>Most WordPress users are using custom fields to display thumbs on their blog homepage. It is a good idea, but do you know that with a simple php function, you can grab the first image from the post, and display it. Just read on.</p></blockquote>
<p><span id="more-440"></span></p>
<p>First, paste this function on your <em>functions.php</em> file.</p>
<pre>function catch_that_image() {
  global $post, $posts;
  $first_img = '';
  ob_start();
  ob_end_clean();
  $output = preg_match_all('/&lt;img.+src=[\'"]([^\'"]+)[\'"].*&gt;/i', $post-&gt;post_content, $matches);
  $first_img = $matches [1] [0];

  if(empty($first_img)){ //Defines a default image
    $first_img = "/images/default.jpg";
  }
  return $first_img;
}
</pre>
<p>Once done, you can simply call the function within the loop to display the first image from the post:</p>
<pre>&lt;?php echo catch_that_image() ?&gt;
</pre>
</div>
<p><!-- PHP 5.x --></p>


<p>Related posts:<ol><li><a href='http://bulldoggie.cn/blog/2009/12/17/how-to-make-a-hdr-image-using-one-picture/' rel='bookmark' title='How To Make a HDR Image Using One Picture'>How To Make a HDR Image Using One Picture</a></li>
<li><a href='http://bulldoggie.cn/blog/2009/12/16/asaph-for-wordpress/' rel='bookmark' title='Asaph for wordpress'>Asaph for wordpress</a></li>
<li><a href='http://bulldoggie.cn/blog/2009/12/12/starting-index-php/' rel='bookmark' title='wp theme tut：#3 Starting Index.php'>wp theme tut：#3 Starting Index.php</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bulldoggie.cn/blog/2010/06/26/post-pic-how-to-get-the-first-image-from-the-post-and-display-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bringing the Magazine to the Web</title>
		<link>http://bulldoggie.cn/blog/2010/06/26/bringing-the-magazine-to-the-web/</link>
		<comments>http://bulldoggie.cn/blog/2010/06/26/bringing-the-magazine-to-the-web/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 03:08:27 +0000</pubDate>
		<dc:creator>classiclori</dc:creator>
				<category><![CDATA[webtoday]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bulldoggie.cn/blog/?p=433</guid>
		<description><![CDATA[<p>The rise of blogs on the web has brought a quick and easy way for anyone to publish their thoughts online without having to get down and dirty with HTML. Just write your content, hit ‘Publish,’ and your thoughts are instantly available for the masses to read.</p><p>For all the good that blogs have done, they’ve made the internet look predictable when compared to articles printed in a magazine which look completely unique, each with their own art style and layout. As Greg Storey pointed out <a href="http://www.airbagindustries.com/archives/airbag/boxes.php">in a blog post</a> from 2006, “before there were blogs we had websites. Beautiful, random websites that felt more like a zine – one page looking nothing like the one before or after it”.</p><p>Most larger blogs may have a unique theme, but each blog post looks the same. Most posts we read everyday share the same common layout:</p><p> <span class='read-more'><a href='http://bulldoggie.cn/blog/2010/06/26/bringing-the-magazine-to-the-web/'>[Read More…]</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<div>
<p>The rise of blogs on the web has brought a quick and easy way for anyone to publish their thoughts online without having to get down and dirty with HTML. Just write your content, hit ‘Publish,’ and your thoughts are instantly available for the masses to read.</p>
<p>For all the good that blogs have done, they’ve made the internet look <em>predictable</em> when compared to articles printed in a magazine which look completely unique, each with their own art style and layout. As Greg Storey pointed out <a href="http://www.airbagindustries.com/archives/airbag/boxes.php">in a blog post</a> from 2006, “before there were blogs we had websites. Beautiful, random websites that felt more like a zine – one page looking nothing like the one before or after it”.</p>
<p>Most larger blogs may have a unique theme, but each blog post looks the same. Most posts we read everyday share the same common layout:</p>
<p><span id="more-433"></span></p>
<div><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/typical-blog-layout.gif" border="0" alt="" /></div>
<p>In breaking this trend, several bloggers have begun giving each post a unique layout, colour scheme and art style. Their posts look more akin to a magazine article than the typical blog post. The posts stand out from the crowd, like a zebra amongst a field of horses.</p>
<blockquote><p>“Before there were blogs we had websites. Beautiful, random websites that felt more like a zine – one page looking nothing like the one before or after it” – Greg Storey</p></blockquote>
<p>Below is a round-up of forty beautiful looking blog posts from fourteen sites which break out of the mentality that every page on a website should look the same.</p>
<hr />
<h2>1. Gregory Wood</h2>
<div><a href="http://gregorywood.co.uk/journal/top-5-reasons-to-learn-to-dive"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/gregwood-learntodive.jpg" border="0" alt="" /></a></div>
<div><a href="http://gregorywood.co.uk/journal/top-5-spielberg-films"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/gregwood-spielbergfilms.jpg" border="0" alt="" /></a></div>
<div><a href="http://gregorywood.co.uk/journal/top-5-zombie-films"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/gregwood-zombiefilms.jpg" border="0" alt="" /></a></div>
<div><a href="http://gregorywood.co.uk/journal/canada-rocks"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/gregwood-canadarocks.jpg" border="0" alt="" /></a></div>
<hr />
<h2>2. Marcel’s Blogazine</h2>
<div><a href="http://uekermann.com/time_distance"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/marcel-timeanddistance.jpg" border="0" alt="" /></a></div>
<div><a href="http://uekermann.com/listening_trends_2009"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/marcel-lastfm.jpg" border="0" alt="" /></a></div>
<div><a href="http://uekermann.com/37signals_vacation"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/marcel-37signals.jpg" border="0" alt="" /></a></div>
<div><a href="http://uekermann.com/vertical_farming"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/marcel-verticalfarming.jpg" border="0" alt="" /></a></div>
<hr />
<h2>3. Jason Santa Maria</h2>
<div><a href="http://jasonsantamaria.com/articles/what-the-world-needs/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/jsm-whattheworldneeds.jpg" border="0" alt="" /></a></div>
<div><a href="http://jasonsantamaria.com/articles/in-sugar-we-trust/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/jsm-insugarwetrust.jpg" border="0" alt="" /></a></div>
<div><a href="http://jasonsantamaria.com/articles/brain-food/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/jsm-brainfood.jpg" border="0" alt="" /></a></div>
<div><a href="http://jasonsantamaria.com/articles/whats-golden/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/jsm-whatsgolden.jpg" border="0" alt="" /></a></div>
<div><a href="http://jasonsantamaria.com/articles/jackpot/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/jsm-jackpot.jpg" border="0" alt="" /></a></div>
<hr />
<h2>4. PeepCode</h2>
<div><a href="http://blog.peepcode.com/tutorials/2010/what-pythonistas-think-of-ruby"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/peepcode-pythonistasruby.jpg" border="0" alt="" /></a></div>
<div><a href="http://blog.peepcode.com/tutorials/2010/rethinking-rails-3-routes"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/peepcode-rubyroutes.jpg" border="0" alt="" /></a></div>
<div><a href="http://blog.peepcode.com/tutorials/2010/file-navigation-in-text-editors"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/peepcode-texteditors.jpg" border="0" alt="" /></a></div>
<hr />
<h2>5. Danny Garcia</h2>
<div><a href="http://danny-garcia.com/articles/full/6_words"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/dg-6words.jpg" border="0" alt="" /></a></div>
<div><a href="http://danny-garcia.com/articles/full/i_know_its_late_but_lets_go_surfing"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/dg-letsgosurfing.jpg" border="0" alt="" /></a></div>
<div><a href="http://danny-garcia.com/articles/full/goodbye_to_print"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/dg-goodbyeprint.jpg" border="0" alt="" /></a></div>
<hr />
<h2>6. Chris Coyier</h2>
<div><a href="http://chriscoyier.net/2010/01/23/pizza-hut-dominos-quality-timeline/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/cc-pizzahutdominos.jpg" border="0" alt="" /></a></div>
<div><a href="http://chriscoyier.net/2009/12/15/the-safari-challenge/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/cc-safarichallenge.jpg" border="0" alt="" /></a></div>
<hr />
<h2>7. Avoid Contact With Eyes</h2>
<div><a href="http://www.acwe.co.uk/?p=142"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/acwe-backfromthedrawingboard.jpg" border="0" alt="" /></a></div>
<div><a href="http://www.acwe.co.uk/?p=450"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/acwe-zombiemovieposter.jpg" border="0" alt="" /></a></div>
<div><a href="http://www.acwe.co.uk/?p=394"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/acwe-monstermadness.jpg" border="0" alt="" /></a></div>
<hr />
<h2>8. Paddy Donnelly</h2>
<div><a href="http://iampaddy.com/spell/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/iamp-learntospell.jpg" border="0" alt="" /></a></div>
<div><a href="http://iampaddy.com/lifebelow600/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/iamp-lifebelow600px.jpg" border="0" alt="" /></a></div>
<div><a href="http://iampaddy.com/doodling/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/iamp-doodling.jpg" border="0" alt="" /></a></div>
<hr />
<h2>9. iamsteve</h2>
<div><a href="http://iamstevesarticles.tumblr.com/post/405552019/evolutionoftv"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/iams-evolutionoftv.jpg" border="0" alt="" /></a></div>
<div><a href="http://iamstevesarticles.tumblr.com/post/506151416/netflixpluswii"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/iams-netflixwii.jpg" border="0" alt="" /></a></div>
<hr />
<h2>10. Jack Cheng</h2>
<div><a href="http://jackcheng.com/roulette"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/jc-roulette.jpg" border="0" alt="" /></a></div>
<div><a href="http://jackcheng.com/more-fun-at-mjr"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/jc-morefunatmjr.jpg" border="0" alt="" /></a></div>
<div><a href="http://jackcheng.com/30-minutes-a-day"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/jc-30minsaday.jpg" border="0" alt="" /></a></div>
<hr />
<h2>11. Dustin Curtis</h2>
<div><a href="http://dustincurtis.com/clear-war.html"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/dc-theclearwar.jpg" border="0" alt="" /></a></div>
<div><a href="http://dustincurtis.com/how-mr-q-manufactured-emotion.html"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/dc-mrq.jpg" border="0" alt="" /></a></div>
<div><a href="http://dustincurtis.com/a-tour-of-my-brain.html"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/dc-atourofmybrain.jpg" border="0" alt="" /></a></div>
<div><a href="http://dustincurtis.com/to-fasten-your-seatbelt.html"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/dc-fastenyourseatbelt.jpg" border="0" alt="" /></a></div>
<hr />
<h2>12. Metalab Design</h2>
<div><a href="http://www.metalabdesign.com/zappos/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/metalab-zappos.jpg" border="0" alt="" /></a></div>
<hr />
<h2>13. Smashing Magazine</h2>
<div><a href="http://www.smashingmagazine.com/the-death-of-the-blog-post/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/smashingmag-deathoftheboringblogpost.jpg" border="0" alt="" /></a></div>
<hr />
<h2>14. Panic Blog</h2>
<div><a href="http://www.panic.com/blog/2010/03/the-panic-status-board/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/panic-statusboard.jpg" border="0" alt="" /></a></div>
<div><a href="http://www.panic.com/blog/2009/12/on-calendars/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/panic-onceinabluemoon.jpg" border="0" alt="" /></a></div>
<div><a href="http://www.panic.com/blog/2010/04/shipped-it/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/panic-shippedit.jpg" border="0" alt="" /></a></div>
<div><a href="http://www.panic.com/blog/2010/05/vegan-co-op-luncheon/"><img src="http://s3.amazonaws.com/nettuts/724_magazine/images/panic-veganlunch.jpg" border="0" alt="" /></a></div>
</div>
<p><!-- PHP 5.x --></p>


<p>Related posts:<ol><li><a href='http://bulldoggie.cn/blog/2009/12/12/top-50-wordpress-tutorials/' rel='bookmark' title='Top 50 WordPress Tutorials'>Top 50 WordPress Tutorials</a></li>
<li><a href='http://bulldoggie.cn/blog/2010/06/26/post-pic-how-to-get-the-first-image-from-the-post-and-display-it/' rel='bookmark' title='Post Pic How to: Get the first image from the post and display it'>Post Pic How to: Get the first image from the post and display it</a></li>
<li><a href='http://bulldoggie.cn/blog/2009/12/28/more-web-design-trends-for-2009/' rel='bookmark' title='More Web Design Trends For 2009(layout)'>More Web Design Trends For 2009(layout)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bulldoggie.cn/blog/2010/06/26/bringing-the-magazine-to-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress2.9模板支持page-slug和page-id</title>
		<link>http://bulldoggie.cn/blog/2009/12/27/wordpress2-9%e6%a8%a1%e6%9d%bf%e6%94%af%e6%8c%81page-slug%e5%92%8cpage-id/</link>
		<comments>http://bulldoggie.cn/blog/2009/12/27/wordpress2-9%e6%a8%a1%e6%9d%bf%e6%94%af%e6%8c%81page-slug%e5%92%8cpage-id/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 14:26:51 +0000</pubDate>
		<dc:creator>classiclori</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bulldoggie.cn/blog/?p=182</guid>
		<description><![CDATA[<p>在2.9之前的版本中，如果想个性化一个页面，需要先创建一个模板文件，创建方法是在文件的开始加上一段注释</p><p>&#60;?php</p><p>/*</p><p>Template Name: 模板名</p><p>*/</p><p> <span class='read-more'><a href='http://bulldoggie.cn/blog/2009/12/27/wordpress2-9%e6%a8%a1%e6%9d%bf%e6%94%af%e6%8c%81page-slug%e5%92%8cpage-id/'>[Read More…]</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-183" title="7096865_c640b0d7a6_m" src="http://bulldoggie.cn/blog/wp-content/uploads/2009/12/7096865_c640b0d7a6_m.jpg" alt="" width="141" height="132" />在2.9之前的版本中，如果想个性化一个页面，需要先创建一个模板文件，创建方法是在文件的开始加上一段注释</p>
<blockquote><p>&lt;?php<br />
/*<br />
Template Name: 模板名<br />
*/</p>
<p><span id="more-182"></span></p></blockquote>
<p>然后新建页面的时候再选择这个模板。在我前几天写的<a href="http://domety.com/archives/181/">了解wordpress模板(主题)系统</a> 一文中提到了2.9将要支持的几个文件，其中就有page-slug和page-id。趁着昨天刚升级到2.9,今天就迫不及待的想测试一下，果然，还真的支持。</p>
<h3>测试过程</h3>
<p>首先在后台控制面板新建了一个页面，标题为“测试”，别名”test”。然后访问网站发现导航中多了一个“测试”的链接，点击后发现调用的是page.php文件。</p>
<p>然后又新建了一个page-test.php文件，内容为</p>
<blockquote><p>&lt;?php<br />
get_header();<br />
echo “这只是一个测试页面”;<br />
get_footer();<br />
?&gt;</p></blockquote>
<p>刷新测试页面，除了显示网页头部和尾部之外，中间显示的是“这只是一个测试页面”，说明page-test.php已经工作了。</p>
<p>最后把page-test.php重命名为page-192.php（192是页面ID）,然后强制刷新测试页面，仍然显示“这只是一个测试页面”，说明page-192.php也正常工作了。<!-- PHP 5.x --></p>


<p>Related posts:<ol><li><a href='http://bulldoggie.cn/blog/2009/12/16/asaph-for-wordpress/' rel='bookmark' title='Asaph for wordpress'>Asaph for wordpress</a></li>
<li><a href='http://bulldoggie.cn/blog/2010/06/26/post-pic-how-to-get-the-first-image-from-the-post-and-display-it/' rel='bookmark' title='Post Pic How to: Get the first image from the post and display it'>Post Pic How to: Get the first image from the post and display it</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bulldoggie.cn/blog/2009/12/27/wordpress2-9%e6%a8%a1%e6%9d%bf%e6%94%af%e6%8c%81page-slug%e5%92%8cpage-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Asaph for wordpress</title>
		<link>http://bulldoggie.cn/blog/2009/12/16/asaph-for-wordpress/</link>
		<comments>http://bulldoggie.cn/blog/2009/12/16/asaph-for-wordpress/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 07:53:50 +0000</pubDate>
		<dc:creator>classiclori</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Asaph]]></category>

		<guid isPermaLink="false">http://bulldoggie.cn/blog/?p=115</guid>
		<description><![CDATA[<p>Asaph is a micro-blogging system, focusing on collecting links and images from other pages. It allows you to post content directly from any page you are on. Asaph is not a full blown blog and it does not aim to be one — it just does this one task, but it's pretty good at it.</p><p>The alternative Stickney Theme also shows date and author information for each post and allows posting of longer texts. Feel free to modify these themes to your liking, or create new ones.</p><p>My own Asaph blog can be found at <a href="http://asaph.phoboslab.org/">asaph.phoboslab.org</a>.</p><p>Here's a short screencast of how posting entries in Asaph works:</p><p align="center"></p><p align="center"> <span class='read-more'><a href='http://bulldoggie.cn/blog/2009/12/16/asaph-for-wordpress/'>[Read More…]</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<p>Asaph is a micro-blogging system, focusing on collecting links and images from other pages. It allows you to post content directly from any page you are on. Asaph is not a full blown blog and it does not aim to be one — it just does this one task, but it&#8217;s pretty good at it.</p>
<p>The alternative Stickney Theme also shows date and author information for each post and allows posting of longer texts. Feel free to modify these themes to your liking, or create new ones.</p>
<p>My own Asaph blog can be found at <a href="http://asaph.phoboslab.org/">asaph.phoboslab.org</a>.</p>
<p>Here&#8217;s a short screencast of how posting entries in Asaph works:</p>
<p align="center"><img class="aligncenter size-medium wp-image-116" title="asaph-screencast" src="http://bulldoggie.cn/blog/wp-content/uploads/2009/12/asaph-screencast-300x199.png" alt="asaph-screencast" width="300" height="199" /></p>
<p align="center"><span id="more-115"></span></p>
<p>建Asaph微型博客系统 整合WordPress博客,关键词是建站经验,站长经验,</p>
<p>前阵子在vikiworks那里看到yichi介绍用<span style="color: #48a890;">Asaph建设一个自己的FFFFound</span>，也就是一个图片搜集博客。所以我试了一下，觉得很好玩，在这里特地推荐给大家。</p>
<p>你可以先看看我的图片博客.Asaph根据官方介绍：它是一个用来搜集外部链接及图片的微型博客系统。允许你在任何其他网站来发布你要的图片或是链接。</p>
<p align="center"><img src="http://www.xue5.com/Admin/UploadFiles_3466/200910/2009102612234260.jpg" border="0" alt="" width="432" height="288" /></p>
<p>我个人认为最特别的地方，就是Asaph有发布文章的Bookmarklet，无论我在任何页面，只要点一下Bookmarklet，再选择要发布的图片，再点确定，就完成了整个发布文章的过程。看下图</p>
<p align="center"><img style="width: 469px; height: 255px;" src="http://www.xue5.com/Admin/UploadFiles_3466/200910/2009102612234220.jpg" border="0" alt="" width="515" height="266" /></p>
<p><strong>怎么安装呢？</strong></p>
<table style="border: 1px solid #0099cc; table-layout: fixed;" border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td bgcolor="#ddedfb"><span style="color: #ff0000;">以下为引用的内容：</span><span style="color: #ff0000;">安装之前请确保满足以下条件</span>：服务器是PHP5以上并装有GD-lib或者开启了allow_url_fopen</p>
<p>使用现代浏览器（非IE）</p>
<p>在上传完全部文件后，确保data/ 文件夹是”可写”的</p>
<p>如果不知道怎么看服务器的php版本，请下载php探针，上传到服务器后运行探针查看即可。</p>
<p>下 载压缩包，解压放上服务器（需要php支持）。接着需要修改lib/asaph_config.class.php 这个文件中的$domain， $absolutePath 与 $db这三个项目。接着在浏览器打开目录下的admin/install.php进行安装。装过Wordpress想必没有问题了。</td>
</tr>
</tbody>
</table>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong>怎么使用？</strong></p>
<p>如图所示，在后台管理左侧，用鼠标将bookmarklet下的ASAPH拉到你的书签栏，或是加入书签。接着你可以去flickr等图片网站，</p>
<p>看到喜欢的眼睛发亮的图片，就点一下那个书签.OK，懂了吧？（最好使用现代浏览器，不要使用IE）</p>
<p align="center"><img src="http://www.xue5.com/Admin/UploadFiles_3466/200910/2009102612234304.jpg" border="0" alt="" width="172" height="211" /></p>
<p><strong>总结</strong></p>
<p>Asaph的作者也说明了，这个博客系统就是这么简单，简单到后台只有几个按钮。而这就是他做这个系统的目标.Asaph也很好的完成了他的工作。在我看来，用来制作这种图片搜集博客，Asaph真的是很好用，很容易用。所以喜欢的朋友赶紧试试吧。</p>
<p><strong><span style="font-size: small;">整合WordPress前须知</span></strong></p>
<p>Asaph不是一个wordpress插件，而是一个独立的博客系统</p>
<p>确保你已经安装好Asaph，否则请看该文</p>
<p><strong><span style="font-size: small;">我们开始</span></strong></p>
<p>其实接下来很简单，之需要一个步骤，就是复制下面的代码，放到你的WordPress主题下的sidebar.php（或是其他你要显示的地方）。</p>
<table style="border: 1px solid #0099cc; table-layout: fixed;" border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td bgcolor="#ddedfb"><span style="color: #ff0000;">以下为引用的内容：</span><br />
<span style="font-family: Consolas;">&lt;?php // Get RSS Feed<br />
include_once(ABSPATH . WPINC . &#8216;/rss.php&#8217;);<br />
$rss = fetch_rss(&#8216;<strong>your-asaph-feed</strong>&#8216;);<br />
<strong>$maxitems = 24</strong>;<br />
$items = array_slice($rss-&gt;items, 0, $maxitems);<br />
?&gt;<br />
&lt;ul&gt;<br />
&lt;?php if (empty($items)) echo ‘&lt;li&gt;No items&lt;/li&gt;’;<br />
else<br />
foreach ( $items as $item ) : ?&gt;<br />
&lt;li&gt;&lt;a href=’&lt;?php echo $item['link']; ?&gt;’&gt;<br />
&lt;?php echo $item['description']; ?&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;?php endforeach; ?&gt;<br />
&lt;/ul&gt;</span></td>
</tr>
</tbody>
</table>
<p>请留意代码中的注释部分需要自行修改，也就是自己的feed地址以及显示的图片数量。</p>
<p>在将代码复制到模版文件中之后，如果一切顺利，那么你将会看到9张图片了，至于说大小问题，你需要在CSS中定义width:80px之类的。详细的可以用Firebug来查看我的CSS.</p>
<p>在这里，首先要感觉Asaph作者，再者感谢vikiworks的yichi大哥的文章。才让你我有机会认识与使用到如此优秀的功能。</p>
<p>同时我也留意到一些朋友在安装Asaph过程中无法成功，而大多数应属于服务器无法支持的原因<!-- PHP 5.x --></p>


<p>Related posts:<ol><li><a href='http://bulldoggie.cn/blog/2009/12/12/top-50-wordpress-tutorials/' rel='bookmark' title='Top 50 WordPress Tutorials'>Top 50 WordPress Tutorials</a></li>
<li><a href='http://bulldoggie.cn/blog/2009/12/11/%e4%ba%86%e8%a7%a3jquery%e6%8a%80%e5%b7%a7%e6%9d%a5%e6%8f%90%e9%ab%98%e4%bd%a0%e7%9a%84%e4%bb%a3%e7%a0%81/' rel='bookmark' title='The WordPress Developer Toolkit'>The WordPress Developer Toolkit</a></li>
<li><a href='http://bulldoggie.cn/blog/2010/06/26/post-pic-how-to-get-the-first-image-from-the-post-and-display-it/' rel='bookmark' title='Post Pic How to: Get the first image from the post and display it'>Post Pic How to: Get the first image from the post and display it</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bulldoggie.cn/blog/2009/12/16/asaph-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用xampp在本地搭建WordPress</title>
		<link>http://bulldoggie.cn/blog/2009/12/15/%e7%94%a8xampp%e5%9c%a8%e6%9c%ac%e5%9c%b0%e6%90%ad%e5%bb%bawordpress/</link>
		<comments>http://bulldoggie.cn/blog/2009/12/15/%e7%94%a8xampp%e5%9c%a8%e6%9c%ac%e5%9c%b0%e6%90%ad%e5%bb%bawordpress/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 08:21:18 +0000</pubDate>
		<dc:creator>classiclori</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[XAMPP]]></category>

		<guid isPermaLink="false">http://bulldoggie.cn/blog/?p=111</guid>
		<description><![CDATA[<p>首先，下载<a href="http://www.apachefriends.org/en/xampp-windows.html" target="_blank">最新的xampp lite</a>（没必要用完整版的，对于wordpress来说lite版就足够了。官网上提供了两种格式下载，ZIP格式的是安装版，EXE格式的是自解压版，我这里选择了小得多的EXE，其实内容是一样的。</p><p>然后就是安装了，先解压到一个目录，我直接安装到了D盘根目录。解压后在D盘下就多出了一个xampplite的文件夹。</p><p>进入文件夹，执行名为“setup_xampp” 的批处理文件（后缀为.bat)，成功后按任意键关闭窗口。</p><p> <span class='read-more'><a href='http://bulldoggie.cn/blog/2009/12/15/%e7%94%a8xampp%e5%9c%a8%e6%9c%ac%e5%9c%b0%e6%90%ad%e5%bb%bawordpress/'>[Read More…]</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<div>
<p>首先，下载<a href="http://www.apachefriends.org/en/xampp-windows.html" target="_blank">最新的xampp lite</a>（没必要用完整版的，对于wordpress来说lite版就足够了。官网上提供了两种格式下载，ZIP格式的是安装版，EXE格式的是自解压版，我这里选择了小得多的EXE，其实内容是一样的。</p>
<p>然后就是安装了，先解压到一个目录，我直接安装到了D盘根目录。解压后在D盘下就多出了一个xampplite的文件夹。</p>
<p>进入文件夹，执行名为“setup_xampp” 的批处理文件（后缀为.bat)，成功后按任意键关闭窗口。</p>
<p><img title="xampp_install_1.png" src="http://photo1.yupoo.com/20070226/190357_153882543.jpg" border="0" alt="xampp_install_1.png" width="339" height="210" /></p>
<p><span id="more-111"></span></p>
<p>执行“xampp-control.exe”，分别点击Apache和MySql后的Start，看到如下状态后即说明成功。</p>
<p><img title="xampp_install_2.png" src="http://photo1.yupoo.com/20070226/190357_1575491833.jpg" border="0" alt="xampp_install_2.png" width="344" height="177" /></p>
<p>打开一个浏览器，比如<a href="http://www.mozilla.com/firefox/" target="_blank">firefox</a>，在地址栏输入“http://localhost/xampp/splash.php”后回车，选择最后的“Chinese”，即可进入Xampp的欢迎页面了。这以后只要在地址栏输入“http://localhost”回车就能来到这个页面了。</p>
<p><img src="http://lucifr.com/wp-content/uploads/2006/08/1.jpg" alt="" /></p>
<p>接下来要建立一个数据库：点击欢迎页面左栏工具下的“phpMyAdmin” ，创建一个名为wordpress的新数据库，设置如下图：</p>
<p><img title="xampp_install_4.png" src="http://photo1.yupoo.com/20070226/190359_1920389395.jpg" border="0" alt="xampp_install_4.png" width="425" height="49" /><br />
下载<a href="http://lucifr.com/2006/07/30/wordpress-204-upgrade/">WordPress2.0.4</a>并解压。用记事本等编辑程序打开“wp-config-sample.php”，将其中的设置做如下修改，再另存为“wp-config.php”。</p>
<p><img title="xampp_install_6.png" src="http://photo1.yupoo.com/20070226/190653_877182449_cjuaxhtz.jpg" border="0" alt="xampp_install_6.png" width="395" height="51" /></p>
<p>接下来把整个wordpress文件夹复制到安装目录下的“htdocs”文件夹中，以我的情况就是在“D:xampplitehtdocs” 中，完成后的文件树如下：</p>
<p><img title="xampp_install_5.png" src="http://photo1.yupoo.com/20070226/190359_1500211093.jpg" border="0" alt="xampp_install_5.png" width="203" height="233" /></p>
<p>最后的一步就是在浏览器中输入“http://localhost/wordpress/wp-admin/install.php”然后回车了，怎么样，是不是很熟悉的画面？</p></div>
<p><!-- PHP 5.x --></p>


<p>Related posts:<ol><li><a href='http://bulldoggie.cn/blog/2009/12/12/starting-index-php/' rel='bookmark' title='wp theme tut：#3 Starting Index.php'>wp theme tut：#3 Starting Index.php</a></li>
<li><a href='http://bulldoggie.cn/blog/2009/12/12/top-50-wordpress-tutorials/' rel='bookmark' title='Top 50 WordPress Tutorials'>Top 50 WordPress Tutorials</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bulldoggie.cn/blog/2009/12/15/%e7%94%a8xampp%e5%9c%a8%e6%9c%ac%e5%9c%b0%e6%90%ad%e5%bb%bawordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

