<?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>Allen Chan &#187; wordpress</title>
	<atom:link href="http://allenchan.org/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://allenchan.org</link>
	<description>2011 - The Year of Co-Funding</description>
	<lastBuildDate>Thu, 15 Dec 2011 09:08:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<atom:link rel='hub' href='http://allenchan.org/?pushpress=hub'/>
		<item>
		<title>向Twitter-Bootstrap致敬</title>
		<link>http://allenchan.org/2011/11/new-appearance-shows-respect-to-twitter-bootstrap/</link>
		<comments>http://allenchan.org/2011/11/new-appearance-shows-respect-to-twitter-bootstrap/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 02:51:01 +0000</pubDate>
		<dc:creator>Allen Chan (chenillen)</dc:creator>
				<category><![CDATA[Life Experience]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[webdesign]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://allenchan.org/?p=476</guid>
		<description><![CDATA[之前貌似看到过，没有太注意Twitter Bootstrap，博客的UI也已经用了2年了，是该换换新样子了，于是选用了Bootstrap的样式，基本没有调整任何原始的东西。直接用。看起来挺清新的，简单的。 补充一句，还是继续不支持IE6的。放弃IE6活动一定要支持到底 得放一张之前的作为纪念和对比：<a class="btn small pull-right" href="http://allenchan.org/2011/11/new-appearance-shows-respect-to-twitter-bootstrap/">继续阅读&#8594;</a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_483" class="wp-caption aligncenter" style="width: 570px"><img src="http://allenchan.org/wp-content/uploads/2011/11/new-ui-of-allenchan-blog-560x382.png" alt="" title="New UI of Allen Chan&#039;s Blog" width="560" height="382" class="size-medium wp-image-483" /><p class="wp-caption-text">New UI of Allen Chan&#039;s Blog</p></div>

<p class="indent">之前貌似看到过，没有太注意<a href="http://twitter.github.com/bootstrap/index.html" title="Twitter Bootstrap" target="_blank">Twitter Bootstrap</a>，博客的UI也已经用了2年了，是该换换新样子了，于是选用了Bootstrap的样式，基本没有调整任何原始的东西。直接用。看起来挺清新的，简单的。
</p>
<p class="indent">补充一句，还是继续不支持IE6的。放弃IE6活动一定要支持到底</p><span id="more-476"></span>

<p class="indent first-update">
得放一张之前的作为纪念和对比：
<div id="attachment_487" class="wp-caption aligncenter" style="width: 570px"><img src="http://allenchan.org/wp-content/uploads/2011/11/2009-ui-of-allenchan-blog-560x377.png" alt="" title="2009 UI of Allen Chan&#039;s blog" width="560" height="377" class="size-medium wp-image-487" /><p class="wp-caption-text">2009 UI of Allen Chan&#039;s blog</p></div>
</p>

]]></content:encoded>
			<wfw:commentRss>http://allenchan.org/2011/11/new-appearance-shows-respect-to-twitter-bootstrap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>安装本地WordPress测试环境</title>
		<link>http://allenchan.org/2009/11/installing-wordpress-locally/</link>
		<comments>http://allenchan.org/2009/11/installing-wordpress-locally/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 17:30:18 +0000</pubDate>
		<dc:creator>Allen Chan (chenillen)</dc:creator>
				<category><![CDATA[Life Experience]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://allenchan.com.cn/?p=108</guid>
		<description><![CDATA[这是完整的WordPress主题制作指南的第一章节。在这章里面，你将会学习怎样在本地电脑（服务器）安装，配置WordPress。这样做的好处在于节约你更新和预览的时间（也就是说，你不用每时每刻上传你实时修改的文件，或者添加的图片等），当然除非你有一个在线编辑器，如Mac上流行的Coda。你也可以用本地电脑，服务器来测试新的插件，主题或者是WordPress的新版本。总之，这一章将会交给所有人特别是初学者或者是刚接触Mac/Linux的新手们在本地安装WordPress。 简单总结 安装本地服务器（包括Web服务器，数据库服务器），在不同平台下面有不同的安装方式(Mac: MAMP, PC:XAMPP 或者 WAMP)。 配置Web，数据库服务器，并且新建数据库 下载最新的WordPress，解压缩之后把它放在你的Web服务器活动目录 把wp-config-sample.php改名为wp-config.php，把文件中数据库的信息改为自己的设置 运行wp-admin/install.php安装过程，一步一步的完成安装 你的WordPress就在本地安装好了 在正式开始之前 我们必须知道WordPress的系统最低要求是： PHP 4.3及其以上的版本 MySQL 4及其以上的服务器版本 安装本地服务器 为了能在本地跑PHP/Mysql数据库的程序，我们需要安装一个本地服务器。通常来说是(X)AMP，X代表操作系统，也就是操作系统(X)+Apache（世界上最流行的Web服务器）+ PHP脚本语言 + MySQL数据库。在Mac我们有MAMP，在Windows我们有XAMPP 或者 WAMP，这三个服务器都是打包好的，各种库都已经包含在内，下载直接可以使用。那么在Linux中，我们用什么？当然是LAMP，怎样配置呢？请参见我另外的一篇文章“在VPS上配置LAMP服务器高级教程-Mysql篇” 我讲更详细的介绍在Mac中建立本地服务器的另一种方法，也是推荐的一种方法。大家都知道Mac OSX其实是一个基于Unix的系统，系统本来就集成了Apache Web服务器和PHP5，如果你使用的是服务器版本的Mac OSX，那么很幸运，MySQL数据库服务器也已经预装好了。那么我们来开启这所有的服务： 开启Apache 打开System Preferences 系统预置，选择Sharing 共享，在Web Sharing 网络共享前面打上小钩，那么Apache就开启了。在Safari中打开http://localhost，你将会看到Mac OSX Apache的欢迎页面 加载PHP 打开Terminal &#8230; <a href="http://allenchan.org/2009/11/installing-wordpress-locally/">Continue reading <span class="meta-nav">&#8594;</span></a><a class="btn small pull-right" href="http://allenchan.org/2009/11/installing-wordpress-locally/">继续阅读&#8594;</a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_141" class="wp-caption aligncenter" style="width: 570px"><img src="/wp-content/uploads/2009/11/mamp-vs-wamp.png" alt="MAMP v.s. WAMP" title="MAMP v.s. WAMP" width="560" height="342" class="size-full wp-image-141" /><p class="wp-caption-text">MAMP v.s. WAMP</p></div>
<p class="indent">这是<a href="/2009/11/complete-wordpress-theme-guide/">完整的WordPress主题制作指南</a>的第一章节。在这章里面，你将会学习怎样在本地电脑（服务器）安装，配置WordPress。这样做的好处在于节约你更新和预览的时间（也就是说，你不用每时每刻上传你实时修改的文件，或者添加的图片等），当然除非你有一个在线编辑器，如Mac上流行的<a href="http://www.panic.com/coda/" target="_blank">Coda</a>。你也可以用本地电脑，服务器来测试新的插件，主题或者是WordPress的新版本。总之，这一章将会交给所有人特别是初学者或者是刚接触Mac/Linux的新手们在本地安装WordPress。</p>
<span id="more-108"></span>

<h3>简单总结</h3>
<ol>
  <li>安装本地服务器（包括Web服务器，数据库服务器），在不同平台下面有不同的安装方式(Mac: <a href="http://www.mamp.info/" target="_blank">MAMP</a>, PC:<a href="http://www.apachefriends.org/en/xampp.html" target="_blank">XAMPP</a> 或者 <a href="http://www.wampserver.com/en/" target="_blank">WAMP</a>)。</li>
  <li>配置Web，数据库服务器，并且新建数据库</li>
  <li>下载<a href="http://wordpress.org/download/" target="_blank">最新的WordPress</a>，解压缩之后把它放在你的Web服务器活动目录</li>
  <li>把wp-config-sample.php改名为wp-config.php，把文件中数据库的信息改为自己的设置</li>
  <li>运行wp-admin/install.php安装过程，一步一步的完成安装</li>
  <li>你的WordPress就在本地安装好了</li>
</ol>
<h3>在正式开始之前</h3>
<p class="indent">我们必须知道WordPress的系统最低要求是：</p>
<ul class="indent">
  <li>PHP 4.3及其以上的版本</li>
  <li>MySQL 4及其以上的服务器版本</li>
</ul>
<ol>
  <li><strong>安装本地服务器</strong></li>
  <p>为了能在本地跑PHP/Mysql数据库的程序，我们需要安装一个本地服务器。通常来说是(X)AMP，X代表操作系统，也就是操作系统(X)+<a href="http://apache.org" target="_blank">Apache</a>（世界上最流行的Web服务器）+ <a href="http://php.net" target="_blank">PHP脚本语言</a> + <a href="http://mysql.com" target="_blank">MySQL数据库</a>。在Mac我们有<a href="http://www.mamp.info/" target="_blank">MAMP</a>，在Windows我们有<a href="http://www.apachefriends.org/en/xampp.html" target="_blank">XAMPP</a> 或者 <a href="http://www.wampserver.com/en/" target="_blank">WAMP</a>，这三个服务器都是打包好的，各种库都已经包含在内，下载直接可以使用。那么在Linux中，我们用什么？当然是LAMP，怎样配置呢？请参见我另外的一篇文章“<a href="/2008/11/configure-lamp-server-with-apache-mysql-php-centos-1/">在VPS上配置LAMP服务器高级教程-Mysql篇</a>”</p>
  <p class="indent">我讲更详细的介绍在Mac中建立本地服务器的另一种方法，也是推荐的一种方法。大家都知道Mac OSX其实是一个基于Unix的系统，系统本来就集成了Apache Web服务器和PHP5，如果你使用的是服务器版本的Mac OSX，那么很幸运，MySQL数据库服务器也已经预装好了。那么我们来开启这所有的服务：</p>
  <ul>
    <li>开启Apache</li>
    <p>打开System Preferences 系统预置，选择Sharing 共享，在Web Sharing 网络共享前面打上小钩，那么Apache就开启了。在Safari中打开http://localhost，你将会看到Mac OSX Apache的欢迎页面</p>
    <p>
    <li>加载PHP</li>
    </p>
    <p>打开Terminal 终端，在命令行中输入以下命令，输入你的密码。
    <pre><code>sudo vim /etc/apache2/httpd.conf</code></pre>
    找到这下面行代码，并且把这行前面的#去掉。
    <pre><code>#LoadModule php5_module        libexec/apache2/libphp5.so</code></pre>
    方法是先点击i键进入插入编辑状态，然后删除#，再点击ESC退出编辑模式，输入:wq!点击回车。
    <pre><code>:wq!</code></pre>
    重启Apache服务器，PHP就生效了。重启可以使用第一步的方法，也可以在Terminal中输入命令：
    <pre><code>sudo apachectl restart</code></pre>
    </p>
    <p>测试PHP加载成功，你在Web服务器根目录放一个php页面，用文本文档新建文件，输入代码如下：
    <pre><code class="php">
&lt;?php
phpinfo();
?&gt;
</code></pre>
    文件名存为test.php，然后访问http://localhost/test.php，你将会看到一系列关于服务器的配置，如图：
    </p>
    <div class="wp-caption aligncenter" style="width: 570px"><img src="/wp-content/uploads/2009/11/php-configuration-560x385.png" alt="PHP info" title="PHP info" width="560" height="385" class="aligncenter landscape" /><p class="wp-caption-text">PHP info</p></div>
    <li>安装MySQL</li>
    <p>先下载5.1稳定版本，Snow Leopard（不管你的Mac支持64位与否）一定使用<a href="http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.40-osx10.5-x86_64.dmg/from/http://mysql.he.net/" target="_blank">Mac OS X 10.5 (x86_64)</a>这个64位版本，否则会出现不能启动，或者是启动后不能使用的问题。安装所有的组件，这样可以让系统启动时，自动启动MySQL</p>
  </ul>
  <li><strong>配置Web，数据库服务器新建数据库</strong></li>
  <p>你如果使用的是MAMP，XXAMP或者是WAMP，启动程序的时候将会自动带你到MySQL的管理页面，数据库默认root密码是root。如果你是单独安装的MySQL那么这时候你需要配置一下密码。打开Terminal终端，输入下面的命令：
  <pre><code>mysqladmin -u root password '你的密码'</code></pre>
  如果找不到mysqladmin这个命令，请在终端先输入
  <pre><code>export PATH="/usr/local/mysql/bin:$PATH"</code></pre>
  这时你可以去下载一个<a href="http://www.phpmyadmin.net/" target="_blank">phpMyAdmin</a>的软件来管理你的MySQL数据库，具体过程我就不详细叙述。进入phpMyAdmin之后，就可以新建数据库了，如图：
  </p>
  <div class="wp-caption aligncenter" style="width: 480px"><img alt="phpMyAdmin" src="http://www.webdesignerwall.com/wp-content/uploads/2008/11/phpmyadmin.gif" title="phpMyAdmin" width="470" height="226" /><p class="wp-caption-text">phpMyAdmin</p></div>
  <li><strong>下载<a href="http://wordpress.org/download/" target="_blank">最新的WordPress</a></strong></li>
  <p>下载好的zip压缩文件应该解压缩到/Library/WebServer/Documents/wordpress(或者你喜欢叫什么就叫什么，这将是你本地目录的名字)下面。</p>
  <li><strong>更新wp-config.php配置文件</strong></li>
  <p>拷贝一个wp-config-sample.php并改名为wp-config.php，这里可以使用两种方式来更改wp-config.php配置文件。</p>
<ul>
    <li>使用编辑器，直接打开文件编辑，如下：</li>
    <pre><code class="php">
define('DB_NAME', 'allenchan_com_cn'); #你刚才新建的数据库的名字
define('DB_USER', 'root'); #数据库用户
define('DB_PASSWORD', 'root'); #数据库密码
define('DB_HOST', 'localhost'); #本地数据库，所以使用localhost，也可以使用127.0.0.1
define('DB_CONNECT', 'socket'); #数据库连接方式，一般不需要更改
define('DB_CHARSET', 'utf8'); #字符集，一般不需要更改
/*从WordPress2.6起加了以下的加密设置，请把pass-code改为数字字母的字符串32位以上为佳*/
define('AUTH_KEY', 'pass-code');
define('SECURE_AUTH_KEY', 'pass-code'');
define('LOGGED_IN_KEY', 'pass-code'');
define('NONCE_KEY', 'pass-code'');
</code></pre>
    <p>存储后，配置文件就生效了</p>
    <li>使用WordPress内建的指南修改，那么在运行之前请修改wp-config.php文件的属性，可以使用代码</li>
    <pre><code>chmod 777 /Library/WebServer/Documents/wordpress/wp-config.php</code></pre>
  </ul>
  <li><strong>安装WordPress</strong></li>
  <p>打开你的浏览器，在地址栏中输入http://localhost/wordpress/wp-admin/install.php，然后根据步骤安装WordPress</p>
  <img alt="WordPress 安装界面" src="http://www.webdesignerwall.com/wp-content/uploads/2008/11/install-wp.gif" title="WordPress 安装界面" class="aligncenter" width="460" height="283" />
<p>&nbsp;</p>
</ol>

<h3>接下来</h3>
<p class="indent">下面一章我详细的介绍WordPress的详细构架和设计布局的框架，如果教程中有不恰当的之处请指出:-)</p>]]></content:encoded>
			<wfw:commentRss>http://allenchan.org/2009/11/installing-wordpress-locally/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>完整的WordPress主题制作指南</title>
		<link>http://allenchan.org/2009/11/complete-wordpress-theme-guide/</link>
		<comments>http://allenchan.org/2009/11/complete-wordpress-theme-guide/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 19:05:08 +0000</pubDate>
		<dc:creator>Allen Chan (chenillen)</dc:creator>
				<category><![CDATA[Life Experience]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://allenchan.com.cn/?p=109</guid>
		<description><![CDATA[内容管理系统（CMS）。本博客也是使用Wordpress搭建的，并且自己制作了主题。 接下来这一系列的文章，我将会详细的介绍Wordpress主题的制作过程，并且分为五个章节：（链接会及时更新） 安装本地Wordpress测试环境 WordPress主题布局构架 制作WordPress主题(Theme) WordPress中部分API调用 发布到服务器，迁移和备份 本次教程基本是根据本博客的主题制作过程一步一步往下走，并且参考了<a class="btn small pull-right" href="http://allenchan.org/2009/11/complete-wordpress-theme-guide/">继续阅读&#8594;</a>]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 509px"><img alt="Wordpress" src="http://upload.wikimedia.org/wikipedia/commons/c/ca/Wordpress-logo.png" title="Wordpress" width="499" height="113" /><p class="wp-caption-text">Wordpress</p></div>
<p class="indent"><a href="http://wordpress.org" target=“_blank">WordPress</a>是一个非常出名而使用频率很高的自由博客软件，也可以把它作为一个简单的<a href="http://zh.wikipedia.org/wiki/内容管理系统" target=“_blank">内容管理系统（CMS）</a>。本博客也是使用Wordpress搭建的，并且自己制作了主题。</p>
<span id="more-109"></span>
<p class="indent">接下来这一系列的文章，我将会详细的介绍Wordpress主题的制作过程，并且分为五个章节：（链接会及时更新）</p>
<ol>
	<li><a href="/2009/11/installing-wordpress-locally/">安装本地Wordpress测试环境</a></li>
	<li>WordPress主题布局构架</li>
	<li>制作WordPress主题(Theme)</li>
	<li>WordPress中部分API调用</li>
	<li>发布到服务器，迁移和备份</li>
</ol>
<p class="indent">本次教程基本是根据本博客的主题制作过程一步一步往下走，并且参考了<a href="http://www.webdesignerwall.com/tutorials/complete-wordpress-theme-guide/" target=“_blank">WebDesignerWall</a>的教程写作流程，希望大家能够明白所以的过程。如果有任何不同意见，请给予建议和评论。</p>

]]></content:encoded>
			<wfw:commentRss>http://allenchan.org/2009/11/complete-wordpress-theme-guide/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

