<?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>YaoYuan --  i am sorry, and i love u. &#187; Wordpress</title>
	<atom:link href="http://blog.yaoyuan.org/article/category/wordpress-tips/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.yaoyuan.org</link>
	<description>当你清楚了你需要什么的时候,却发现一切都已经成曾经,不再唾手可得.请不要让关爱你的人从你身边溜走.</description>
	<lastBuildDate>Fri, 18 Jun 2010 12:16:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Fix WordPress automaticlly upgrade wordpress upgrade automatically ‘Could not copy file……’</title>
		<link>http://blog.yaoyuan.org/article/1189.html</link>
		<comments>http://blog.yaoyuan.org/article/1189.html#comments</comments>
		<pubDate>Fri, 27 Nov 2009 15:13:20 +0000</pubDate>
		<dc:creator>Yao Yuan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.yaoyuan.org/?p=1189</guid>
		<description><![CDATA[I had moved my weblog to a cheapest vps server, it used to on a share hosting. but at the same time, the problem came . i can not use automaticlly upgrade of wordpress. it&#8217;s told me that &#8216;Could not copy file……&#8217;, and i need to fill the ftp infomations when i do it. i [...]


Related posts:<ol><li><a href='http://blog.yaoyuan.org/article/1215.html' rel='bookmark' title='Permanent Link: Automatically convert apache .htaccess rewrite to Nginx'>Automatically convert apache .htaccess rewrite to Nginx</a> <small>Try this link http://www.anilcetin.com/convert-apache-htaccess-to-nginx/ add it to nginx.conf and then...</small></li>
<li><a href='http://blog.yaoyuan.org/article/984.html' rel='bookmark' title='Permanent Link: How to Fix Unexpected WordPress Database Table Error'>How to Fix Unexpected WordPress Database Table Error</a> <small>Two days ago, out of nowhere, a particular table in...</small></li>
<li><a href='http://blog.yaoyuan.org/article/612.html' rel='bookmark' title='Permanent Link: Easy to manage your files by Mini File Host 1.5'>Easy to manage your files by Mini File Host 1.5</a> <small>Mini File Host 1.5 has been added to the download...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I had moved my weblog to a cheapest vps server, it used to on a share hosting. but at the same time, the problem came . i can not use automaticlly upgrade of wordpress. it&#8217;s told me that &#8216;Could not copy file……&#8217;, and i need to fill the ftp infomations when i do it.<br />
i found a funcion <a href="http://wordpress.org/support/topic/164174" target="_blank">get_filesystem_method</a> , the explanation of it</p>
<blockquote><p>(FTP) it only uses this when it detects that files it creates have the wrong owner name</p></blockquote>
<p>so, it&#8217;s clear&#8230; the owner of the dir and php process is different.</p>
<p>login ssh, do this </p>
<blockquote><p>chown -R apache dir</p></blockquote>
<p>it&#8217;s ok now.</p>


<p>Related posts:<ol><li><a href='http://blog.yaoyuan.org/article/1215.html' rel='bookmark' title='Permanent Link: Automatically convert apache .htaccess rewrite to Nginx'>Automatically convert apache .htaccess rewrite to Nginx</a> <small>Try this link http://www.anilcetin.com/convert-apache-htaccess-to-nginx/ add it to nginx.conf and then...</small></li>
<li><a href='http://blog.yaoyuan.org/article/984.html' rel='bookmark' title='Permanent Link: How to Fix Unexpected WordPress Database Table Error'>How to Fix Unexpected WordPress Database Table Error</a> <small>Two days ago, out of nowhere, a particular table in...</small></li>
<li><a href='http://blog.yaoyuan.org/article/612.html' rel='bookmark' title='Permanent Link: Easy to manage your files by Mini File Host 1.5'>Easy to manage your files by Mini File Host 1.5</a> <small>Mini File Host 1.5 has been added to the download...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.yaoyuan.org/article/1189.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>摆脱mySQL，让WordPress投奔SQLite</title>
		<link>http://blog.yaoyuan.org/article/1075.html</link>
		<comments>http://blog.yaoyuan.org/article/1075.html#comments</comments>
		<pubDate>Tue, 19 May 2009 12:45:10 +0000</pubDate>
		<dc:creator>Yao Yuan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.yaoyuan.org/?p=1075</guid>
		<description><![CDATA[WordPress默认就是与mySQL搭配的，这次要为wordpress换一个数据库搭档，但这并不是说mySQL如何的不优秀，但在10万以下的低并发访问，SQLite这样的单文件轻量级数据库系统性能优异，体积小、读取速度快、容量大，免费、开源，其实更适合像blog、或中小型站点的这种场景的数据库应用。 4 c- g- p! v5 d/ w6 W3 z 3 L2 b6 h7 P5 i/ u$ s 如果你需要独立为数据库服务支付购买，或者并不满意主机系统繁杂的mySQL数据服务，倒真的是应该尝试一下SQLite这样的轻量级数据库。6 L, P: b# {% i+ Q! W SQLite官网：http://www.sqlite.org 系统环境依赖要求：8 N4 i$ e&#8217; H2 m! }3 W1 c 主机php套件必须支持SQLite和PDO扩展（不过放心，常见系统都是完美支持的）；SQLite的数据库信息存于独立文件中，该文件及文件夹必须要求读写权限。很简单，就这些要求。 升级更换wordpress数据系统：+ M1 @( \0 l9 c 这里指出一个简易的方法：首先在wordpress后台中使用“工具-导出”功能导出.xml文件。 然后，下载SQLite的wordpress功能插件-“PDO(SQLite) For WordPress”，将压缩包中的db.php和pdo文件夹放置到wp-content文件夹中。 ! u, b6 L4 J&#8217; d5 C# Q2 [...]


Related posts:<ol><li><a href='http://blog.yaoyuan.org/article/980.html' rel='bookmark' title='Permanent Link: WordPress Theme That Mimics Mac OS X Leopard &#8211; Leopress'>WordPress Theme That Mimics Mac OS X Leopard &#8211; Leopress</a> <small>here’s the WordPress theme that gets very close to a...</small></li>
<li><a href='http://blog.yaoyuan.org/article/1189.html' rel='bookmark' title='Permanent Link: Fix WordPress automaticlly upgrade wordpress upgrade automatically ‘Could not copy file……’'>Fix WordPress automaticlly upgrade wordpress upgrade automatically ‘Could not copy file……’</a> <small>I had moved my weblog to a cheapest vps server,...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td id="postmessage_1627575" class="t_msgfont">WordPress默认就是与mySQL搭配的，这次要为wordpress换一个数据库搭档，但这并不是说mySQL如何的不优秀，但在10万以下的低并发访问，SQLite这样的单文件轻量级数据库系统性能优异，体积小、读取速度快、容量大，免费、<span class="t_tag" onclick="tagshow(event)">开源</span>，其实更适合像blog、或中小型站点的这种场景的数据库应用。<br />
<img src="http://blog.gohsy.com/wp-content/uploads/2009/05/20090518-00047.png" border="0" alt="" width="455" height="100" /> <span style="font-size: 0px;">4 c- g- p! v5 d/ w6 W3 z</span><br />
<span style="font-size: 0px;">3 L2 b6 h7 P5 i/ u$ s</span></p>
<p>如果你需要独立为数据库<span class="t_tag" onclick="tagshow(event)">服务</span>支付购买，或者并不满意主机系统繁杂的mySQL数据服务，倒真的是应该尝试一下SQLite这样的轻量级数据库。<span style="font-size: 0px;">6 L, P: b# {% i+ Q! W</span><br />
SQLite官网：<a href="http://www.sqlite.org/" target="_blank">http://www.sqlite.org</a><br />
系统环境依赖要求：<span style="font-size: 0px;">8 N4 i$ e&#8217; H2 m! }3 W1 c</span><br />
主机php套件必须支持SQLite和PDO扩展（不过放心，常见系统都是完美支持的）；SQLite的数据库信息存于独立文件中，该文件及文件夹必须要求读写权限。很简单，就这些要求。<br />
升级更换wordpress数据系统：<span style="font-size: 0px;">+ M1 @( \0 l9 c</span><br />
这里指出一个简易的方法：首先在wordpress后台中使用“工具-导出”功能导出.xml文件。<br />
然后，<span class="t_tag" onclick="tagshow(event)">下载</span>SQLite的wordpress功能插件-“<a href="http://wordpress.org/extend/plugins/pdo-for-wordpress/" target="_blank">PDO(SQLite) For WordPress</a>”，将压缩包中的db.php和pdo文件夹放置到wp-content文件夹中。<br />
<img src="http://blog.gohsy.com/wp-content/uploads/2009/05/20090518-00045.png" border="0" alt="" width="452" height="221" /> <span style="font-size: 0px;">! u, b6 L4 J&#8217; d5 C# Q2 I0 q</span><br />
然后，编辑wp-config.php文件，在图示位置加入“define(’DB_TYPE’, ’sqlite’);”。<span style="font-size: 0px;">3 C, \1 x/ ^&amp; z&#8217; S2 W+ B1 l1 t</span><br />
<img src="http://blog.gohsy.com/wp-content/uploads/2009/05/20090518-00046.png" border="0" alt="" width="481" height="452" /> <span style="font-size: 0px;">7 `- j- Z  R* _* _2 J</span><br />
至此，重新访问wordpress已经启动了新的安装界面，如同安装，完后使用前面导出的.xml文件，回到wordpress后台然后“导入”即可恢复原数据，然后自行配置一下插件和主题，此时SQLite已经完全开始服役，所有数据读写皆交由SQLite处理。如果此间出现错误，请检查wp-content目录下是否自动生成了database目录，该目录下是否生成了相应的数据库文件myblog.sqlite和.htaccess文件，是否赋予可读写权限？<span style="font-size: 0px;">  \: d+ [0 U0 P. E( M3 L+ `; K</span><br />
SQLite能最大限度的降低建站成本，降低维护难度，又能很好的规避mySQL的缺点，SQLite为中小型数据应用很有前景。</td>
</tr>
</tbody>
</table>


<p>Related posts:<ol><li><a href='http://blog.yaoyuan.org/article/980.html' rel='bookmark' title='Permanent Link: WordPress Theme That Mimics Mac OS X Leopard &#8211; Leopress'>WordPress Theme That Mimics Mac OS X Leopard &#8211; Leopress</a> <small>here’s the WordPress theme that gets very close to a...</small></li>
<li><a href='http://blog.yaoyuan.org/article/1189.html' rel='bookmark' title='Permanent Link: Fix WordPress automaticlly upgrade wordpress upgrade automatically ‘Could not copy file……’'>Fix WordPress automaticlly upgrade wordpress upgrade automatically ‘Could not copy file……’</a> <small>I had moved my weblog to a cheapest vps server,...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.yaoyuan.org/article/1075.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Fix Unexpected WordPress Database Table Error</title>
		<link>http://blog.yaoyuan.org/article/984.html</link>
		<comments>http://blog.yaoyuan.org/article/984.html#comments</comments>
		<pubDate>Fri, 06 Mar 2009 00:12:25 +0000</pubDate>
		<dc:creator>Yao Yuan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[table error]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.yaoyuan.org/?p=984</guid>
		<description><![CDATA[Two days ago, out of nowhere, a particular table in the WordPress in hongkiat.com went corrupted. The ‘wp_comments‘ table of the WordPress database just crashed without signs, warnings nor error messages. So how did I came to know? Here are the symptoms: If you try to back up your database, you’ll be thrown with this [...]


Related posts:<ol><li><a href='http://blog.yaoyuan.org/article/972.html' rel='bookmark' title='Permanent Link: Execute PHP in WordPress post, page and Widget Sidebar'>Execute PHP in WordPress post, page and Widget Sidebar</a> <small>If you are still struggling on how to insert PHP...</small></li>
<li><a href='http://blog.yaoyuan.org/article/978.html' rel='bookmark' title='Permanent Link: Widgetize non-widget WordPress theme'>Widgetize non-widget WordPress theme</a> <small>Consider this &#8211; If you found a WordPress theme that...</small></li>
<li><a href='http://blog.yaoyuan.org/article/1189.html' rel='bookmark' title='Permanent Link: Fix WordPress automaticlly upgrade wordpress upgrade automatically ‘Could not copy file……’'>Fix WordPress automaticlly upgrade wordpress upgrade automatically ‘Could not copy file……’</a> <small>I had moved my weblog to a cheapest vps server,...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Two days ago, out of nowhere, a particular table in the WordPress in hongkiat.com went corrupted. The ‘<strong>wp_comments</strong>‘ table of the WordPress database just crashed without signs, warnings nor error messages. So how did I came to know? Here are the symptoms:</p>
<ul>
<li>If you try to back up your database, you’ll be thrown with this error message &#8211; <strong>wp_comments is marked as crashed and should be repaired when using LOCK TABLES</strong></li>
<li>Recent comments widget appears blank.</li>
<li>Top commenter widget appears blank.</li>
<li>Comment posted will not be written into DB, therefore will not be shown.</li>
<li>Comments section in WP Admin appears to have zero records.</li>
</ul>
<p>After searching the Internet high and low in hoping to find similar cases to help me identify and fix the problem, I end up with nothing. So I tried it my way and luckily enough, I managed to solved it. I thought writing the entry out will not only help those who suffered the same, also keep myself reminded just in case I hit on this error again in the future.</p>
<h3>The fix / Solution</h3>
<p>To fix this, you must have access to the wordpress database, either via PhpMyAdmin or Secure Shell (SSH). Most shared hosting account comes with phpMyAdmin, but either option you should be extremely careful because you dealing with the database. Any wrong move will cause more data lost.</p>
<h4>PhpMyAdmin</h4>
<p><img src="/wp-content/uploads/2009/03/phpmyadmin-fix.jpg" alt="phpmyadmin-fix.gif" width="398" height="188" /></p>
<p>In PhpMyadmin, select the WordPress database and look for the error table. In my case, the ‘<em>wp_comments</em>‘ table. Check it, and scroll all the way down and look for ‘<strong>With selected</strong>‘ drop-down box. Select <strong>Repair table</strong> and things should be alright.</p>
<h4>Secure Shell</h4>
<p><img src="/wp-content/uploads/2009/03/shell-fix.jpg" alt="SSH fix" width="480" height="230" /></p>
<ol>
<li>Login to your shell</li>
<li>Enter ‘mysql -u <em>username</em> -p <em>database_name</em>‘ to access databases</li>
<li>Enter ’show databases;’ to view all databases</li>
<li>Enter ‘<em>use database_name;</em>‘ to engage the database</li>
<li>Enter ‘<em>show tables;</em>‘ to show all tables within the database</li>
<li>Enter ‘<em>check table wordpress_table_name</em>‘ to verify this is the corrupted table</li>
<li>Fix it with ‘<em>repair table wordpress_table_name</em>‘</li>
<li>Enter ‘<em>check table wordpress_table_name</em>‘ again to make sure it’s fixed</li>
</ol>
<p>Step 3 and 5 are not necessary if you are familiar with your databases and tables. Hope this helps.</p>


<p>Related posts:<ol><li><a href='http://blog.yaoyuan.org/article/972.html' rel='bookmark' title='Permanent Link: Execute PHP in WordPress post, page and Widget Sidebar'>Execute PHP in WordPress post, page and Widget Sidebar</a> <small>If you are still struggling on how to insert PHP...</small></li>
<li><a href='http://blog.yaoyuan.org/article/978.html' rel='bookmark' title='Permanent Link: Widgetize non-widget WordPress theme'>Widgetize non-widget WordPress theme</a> <small>Consider this &#8211; If you found a WordPress theme that...</small></li>
<li><a href='http://blog.yaoyuan.org/article/1189.html' rel='bookmark' title='Permanent Link: Fix WordPress automaticlly upgrade wordpress upgrade automatically ‘Could not copy file……’'>Fix WordPress automaticlly upgrade wordpress upgrade automatically ‘Could not copy file……’</a> <small>I had moved my weblog to a cheapest vps server,...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.yaoyuan.org/article/984.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Theme That Mimics Mac OS X Leopard &#8211; Leopress</title>
		<link>http://blog.yaoyuan.org/article/980.html</link>
		<comments>http://blog.yaoyuan.org/article/980.html#comments</comments>
		<pubDate>Fri, 06 Mar 2009 00:03:47 +0000</pubDate>
		<dc:creator>Yao Yuan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.yaoyuan.org/?p=980</guid>
		<description><![CDATA[here’s the WordPress theme that gets very close to a Mac OS X Leopard &#8211; Leopress. Leopress tries to look like the Mac’s Finder, and I think it’s pretty close. One good reason why you will want to use WordPress themes that mimic other interface is &#8211; it kinda camouflage your blogging activity, hiding them [...]


Related posts:<ol><li><a href='http://blog.yaoyuan.org/article/978.html' rel='bookmark' title='Permanent Link: Widgetize non-widget WordPress theme'>Widgetize non-widget WordPress theme</a> <small>Consider this &#8211; If you found a WordPress theme that...</small></li>
<li><a href='http://blog.yaoyuan.org/article/970.html' rel='bookmark' title='Permanent Link: Something Useful for creating a WordPress theme'>Something Useful for creating a WordPress theme</a> <small>people wanting to know how to create a WordPress theme....</small></li>
<li><a href='http://blog.yaoyuan.org/article/324.html' rel='bookmark' title='Permanent Link: My wp&#8217;s theme &#8220;elements-of-seo&#8221;'>My wp&#8217;s theme &#8220;elements-of-seo&#8221;</a> <small>Elements of SEO WordPress Theme is not designed by me,but...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><img src="/wp-content/uploads/2009/03/leopress.jpg" border="0" alt="leopress" width="500" height="325" /></p>
<p>here’s the WordPress theme that gets very close to a Mac OS X Leopard &#8211; <strong><a rel="nofollow" href="http://www.7graus.com/downloads/wp/leopress.zip">Leopress</a></strong>. <strong>Leopress</strong> tries to look like the Mac’s Finder, and I think it’s pretty close. One good reason why you will want to use WordPress themes that mimic other interface is &#8211; it kinda camouflage your blogging activity, hiding them from bosses or superiors who passes by.</p>
<p><a href="http://www.7graus.com/tech/wordpress/leopress/demo.html">View demo</a> | <a rel="nofollow" href="http://www.7graus.com/downloads/wp/leopress.zip">Download Leopress</a></p>


<p>Related posts:<ol><li><a href='http://blog.yaoyuan.org/article/978.html' rel='bookmark' title='Permanent Link: Widgetize non-widget WordPress theme'>Widgetize non-widget WordPress theme</a> <small>Consider this &#8211; If you found a WordPress theme that...</small></li>
<li><a href='http://blog.yaoyuan.org/article/970.html' rel='bookmark' title='Permanent Link: Something Useful for creating a WordPress theme'>Something Useful for creating a WordPress theme</a> <small>people wanting to know how to create a WordPress theme....</small></li>
<li><a href='http://blog.yaoyuan.org/article/324.html' rel='bookmark' title='Permanent Link: My wp&#8217;s theme &#8220;elements-of-seo&#8221;'>My wp&#8217;s theme &#8220;elements-of-seo&#8221;</a> <small>Elements of SEO WordPress Theme is not designed by me,but...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.yaoyuan.org/article/980.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Widgetize non-widget WordPress theme</title>
		<link>http://blog.yaoyuan.org/article/978.html</link>
		<comments>http://blog.yaoyuan.org/article/978.html#comments</comments>
		<pubDate>Thu, 05 Mar 2009 23:51:44 +0000</pubDate>
		<dc:creator>Yao Yuan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[Widgetize]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.yaoyuan.org/?p=978</guid>
		<description><![CDATA[Consider this &#8211; If you found a WordPress theme that you like so much but it is not widget-supported, don’t give up just yet. Methods below helps you to widgetize non-widget theme to a drag-drop widget theme. Download Widget plugin from Automattic, upload them accordingly and follow the 2 steps below. Step 1 Look for [...]


Related posts:<ol><li><a href='http://blog.yaoyuan.org/article/972.html' rel='bookmark' title='Permanent Link: Execute PHP in WordPress post, page and Widget Sidebar'>Execute PHP in WordPress post, page and Widget Sidebar</a> <small>If you are still struggling on how to insert PHP...</small></li>
<li><a href='http://blog.yaoyuan.org/article/970.html' rel='bookmark' title='Permanent Link: Something Useful for creating a WordPress theme'>Something Useful for creating a WordPress theme</a> <small>people wanting to know how to create a WordPress theme....</small></li>
<li><a href='http://blog.yaoyuan.org/article/980.html' rel='bookmark' title='Permanent Link: WordPress Theme That Mimics Mac OS X Leopard &#8211; Leopress'>WordPress Theme That Mimics Mac OS X Leopard &#8211; Leopress</a> <small>here’s the WordPress theme that gets very close to a...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.yaoyuan.org/wp-content/uploads/2009/03/widgetize.gif" alt="widgetize non widget theme" /><br />
Consider this &#8211; If you found a WordPress theme that you like so much but it is not widget-supported, don’t give up just yet. Methods below helps you to widgetize non-widget theme to a drag-drop widget theme. Download <a rel="nofollow" href="http://automattic.com/code/widgets/" target="_blank">Widget plugin</a> from Automattic, upload them accordingly and follow the 2 steps below.</p>
<p class="subtitle01">Step 1</p>
<p>Look for <strong>functions.php</strong> (Create one if you don’t have). Insert the following code into it, save and close. We are done with <strong>functions.php</strong>. Basically what this codes does is &#8211; it register the sidebar as dynamic.</p>
<blockquote class="code"><p>&lt;?php<br />
if ( function_exists(’register_sidebar’) )<br />
register_sidebar();<br />
?&gt;</p></blockquote>
<p class="subtitle01">Step 2</p>
<p>Here’s how a typical <strong>sidebar.php</strong> will look like.</p>
<blockquote class="code"><p>&lt;div id=&#8221;sidebar&#8221;&gt;<br />
&lt;h2&gt;Search this site&lt;/h2&gt;<br />
&lt;div id=&#8221;searchdiv&#8221;&gt;<br />
&lt;form id=&#8221;searchform&#8221; method=&#8221;get&#8221; action=&#8221;&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;&#8221;&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;s&#8221; id=&#8221;s&#8221; size=&#8221;20&#8243;/&gt;<br />
&lt;input name=&#8221;sbutt&#8221; type=&#8221;submit&#8221; value=&#8221;Go&#8221; alt=&#8221;Submit&#8221;  /&gt;<br />
&lt;/form&gt;<br />
&lt;/div&gt;<br />
&lt;h2&gt;&lt;?php _e(’Archives’); ?&gt;&lt;/h2&gt;<br />
&lt;ul&gt;&lt;?php wp_get_archives(’type=monthly’); ?&gt;&lt;/ul&gt;<br />
&lt;h2&gt;&lt;?php _e(’Categories’); ?&gt;&lt;/h2&gt;<br />
&lt;ul&gt;&lt;?php list_cats() ?&gt;&lt;/ul&gt;<br />
&lt;h2&gt;&lt;?php _e(’Meta’); ?&gt;&lt;/h2&gt;<br />
&lt;ul&gt;<br />
&lt;?php wp_register(); ?&gt;<br />
&lt;li&gt;&lt;a href=&#8221;&lt;?php bloginfo(’rss2_url’); ?&gt;&#8221;&gt;RSS&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;?php wp_loginout(); ?&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;?php wp_meta(); ?&gt;<br />
&lt;/div&gt;</p></blockquote>
<p>What you need to do here is to enclose an <em>an-if</em> statement into <strong>sidebar.php</strong>. The addition of codes are in bold.</p>
<blockquote class="code"><p>&lt;div id=&#8221;sidebar&#8221;&gt;<br />
&lt;h2&gt;Search this site&lt;/h2&gt;<br />
&lt;div id=&#8221;searchdiv&#8221;&gt;<br />
&lt;form id=&#8221;searchform&#8221; method=&#8221;get&#8221; action=&#8221;&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;&#8221;&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;s&#8221; id=&#8221;s&#8221; size=&#8221;20&#8243;/&gt;<br />
&lt;input name=&#8221;sbutt&#8221; type=&#8221;submit&#8221; value=&#8221;Go&#8221; alt=&#8221;Submit&#8221;  /&gt;<br />
&lt;/form&gt;<br />
&lt;/div&gt;<br />
//<br />
<strong>&lt;?php if ( !function_exists(’dynamic_sidebar’)<br />
|| !dynamic_sidebar() ) : ?&gt; // added</strong><br />
//<br />
&lt;h2&gt;&lt;?php _e(’Archives’); ?&gt;&lt;/h2&gt;<br />
&lt;ul&gt;&lt;?php wp_get_archives(’type=monthly’); ?&gt;&lt;/ul&gt;<br />
&lt;h2&gt;&lt;?php _e(’Categories’); ?&gt;&lt;/h2&gt;<br />
&lt;ul&gt;&lt;?php list_cats() ?&gt;&lt;/ul&gt;<br />
&lt;h2&gt;&lt;?php _e(’Meta’); ?&gt;&lt;/h2&gt;<br />
&lt;ul&gt;<br />
&lt;?php wp_register(); ?&gt;<br />
&lt;li&gt;&lt;a href=&#8221;&lt;?php bloginfo(’rss2_url’); ?&gt;&#8221;&gt;RSS&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;?php wp_loginout(); ?&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;?php wp_meta(); ?&gt;<br />
//<br />
<strong>&lt;?php endif; ?&gt; // added</strong><br />
//<br />
&lt;/div&gt;</p></blockquote>
<p>That’s it. The theme now is now widgetized. You can now do the drag-drops like the widget themes. Here’s  a good<a rel="nofollow" href="http://codex.wordpress.org/Plugins/WordPress_Widgets" target="_blank">WordPress widget resource</a>.</p>


<p>Related posts:<ol><li><a href='http://blog.yaoyuan.org/article/972.html' rel='bookmark' title='Permanent Link: Execute PHP in WordPress post, page and Widget Sidebar'>Execute PHP in WordPress post, page and Widget Sidebar</a> <small>If you are still struggling on how to insert PHP...</small></li>
<li><a href='http://blog.yaoyuan.org/article/970.html' rel='bookmark' title='Permanent Link: Something Useful for creating a WordPress theme'>Something Useful for creating a WordPress theme</a> <small>people wanting to know how to create a WordPress theme....</small></li>
<li><a href='http://blog.yaoyuan.org/article/980.html' rel='bookmark' title='Permanent Link: WordPress Theme That Mimics Mac OS X Leopard &#8211; Leopress'>WordPress Theme That Mimics Mac OS X Leopard &#8211; Leopress</a> <small>here’s the WordPress theme that gets very close to a...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.yaoyuan.org/article/978.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Execute PHP in WordPress post, page and Widget Sidebar</title>
		<link>http://blog.yaoyuan.org/article/972.html</link>
		<comments>http://blog.yaoyuan.org/article/972.html#comments</comments>
		<pubDate>Thu, 05 Mar 2009 23:41:42 +0000</pubDate>
		<dc:creator>Yao Yuan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.yaoyuan.org/?p=972</guid>
		<description><![CDATA[If you are still struggling on how to insert PHP Codes inside particular blog post, page or a widget sidebar for execution; the following tutorial is for you. Executing PHP codes in WordPress Page/Post Installation Download phpexec.txt Rename phpexec.txt to phpexec.php Upload to /wp-content/plugins/ directory Activate the plug-in from WordPress administration menu Usage Anywhere in [...]


Related posts:<ol><li><a href='http://blog.yaoyuan.org/article/978.html' rel='bookmark' title='Permanent Link: Widgetize non-widget WordPress theme'>Widgetize non-widget WordPress theme</a> <small>Consider this &#8211; If you found a WordPress theme that...</small></li>
<li><a href='http://blog.yaoyuan.org/article/984.html' rel='bookmark' title='Permanent Link: How to Fix Unexpected WordPress Database Table Error'>How to Fix Unexpected WordPress Database Table Error</a> <small>Two days ago, out of nowhere, a particular table in...</small></li>
<li><a href='http://blog.yaoyuan.org/article/1189.html' rel='bookmark' title='Permanent Link: Fix WordPress automaticlly upgrade wordpress upgrade automatically ‘Could not copy file……’'>Fix WordPress automaticlly upgrade wordpress upgrade automatically ‘Could not copy file……’</a> <small>I had moved my weblog to a cheapest vps server,...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.yaoyuan.org/wp-content/uploads/2009/03/phpwidget.gif" alt="" /></p>
<p>If you are still struggling on how to insert PHP Codes inside particular blog post, page or a widget sidebar for execution; the following tutorial is for you.</p>
<h3><strong>Executing PHP codes in WordPress Page/Post</strong></h3>
<h4><strong>Installation</strong></h4>
<ol>
<li> Download <a title="execute php codes in wordpress" href="http://blog.yaoyuan.org/wp-content/uploads/2009/03/phpexec.txt">phpexec.txt</a></li>
<li> Rename <em>phpexec.txt</em> to <em>phpexec.php</em></li>
<li> Upload to /wp-content/plugins/ directory</li>
<li> Activate the plug-in from WordPress administration menu</li>
</ol>
<h4><strong>Usage</strong></h4>
<p>Anywhere in your post/pages where you want to execute a PHP Codes, insert <em>&lt;phpcode&gt;</em> before your php codes and <em>&lt;/phpcode&gt;</em> your php codes.</p>
<blockquote>
<pre class="php">&lt;phpcode&gt;
	&lt;?php
		echo "Current date and time: ";
		echo date("l dS of F Y h:i:s A");
	?&gt;
&lt;/phpcode&gt;</pre>
</blockquote>
<h4><strong>Security</strong></h4>
<p>If you are running a blog with multiple users, you need to determine who can run this plug-in. Alter the settings in your Administration Menu. <em>Options -&gt; PHPExec</em></p>
<h3><strong>Executing PHP codes in WordPress widget sidebar</strong></h3>
<h4><strong>Installation</strong></h4>
<ol>
<li>Download <a href="http://blog.yaoyuan.org/wp-content/uploads/2009/03/execphp.txt">execphp.txt</a></li>
<li>Rename execphp.txt to execphp.php</li>
<li> Upload to /wp-content/plugins/ directory</li>
<li> Activate the plug-in from WordPress administration menu</li>
</ol>
<h4><strong>Usage</strong></h4>
<p>This plug-in work like a normal text widget except that it allows execution of PHP Codes. You can create up to 9 instances of this widget. <img src="http://blog.yaoyuan.org/wp-content/uploads/2009/03/phpwidget.jpg" alt="" /></p>


<p>Related posts:<ol><li><a href='http://blog.yaoyuan.org/article/978.html' rel='bookmark' title='Permanent Link: Widgetize non-widget WordPress theme'>Widgetize non-widget WordPress theme</a> <small>Consider this &#8211; If you found a WordPress theme that...</small></li>
<li><a href='http://blog.yaoyuan.org/article/984.html' rel='bookmark' title='Permanent Link: How to Fix Unexpected WordPress Database Table Error'>How to Fix Unexpected WordPress Database Table Error</a> <small>Two days ago, out of nowhere, a particular table in...</small></li>
<li><a href='http://blog.yaoyuan.org/article/1189.html' rel='bookmark' title='Permanent Link: Fix WordPress automaticlly upgrade wordpress upgrade automatically ‘Could not copy file……’'>Fix WordPress automaticlly upgrade wordpress upgrade automatically ‘Could not copy file……’</a> <small>I had moved my weblog to a cheapest vps server,...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.yaoyuan.org/article/972.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Something Useful for creating a WordPress theme</title>
		<link>http://blog.yaoyuan.org/article/970.html</link>
		<comments>http://blog.yaoyuan.org/article/970.html#comments</comments>
		<pubDate>Thu, 05 Mar 2009 23:12:03 +0000</pubDate>
		<dc:creator>Yao Yuan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.yaoyuan.org/?p=970</guid>
		<description><![CDATA[people wanting to know how to create a WordPress theme. Here’s some resources I’ve found useful for putting one together: Graphic design: Useful to have: Photoshop/Fireworks or the like to create your graphics For inspiration: sites like Netdiver, Design Melt Down, CSS Beauty, Unmatched Style etc can help sometimes. Color scheme ideas: Colorschemer, Daily Color [...]


Related posts:<ol><li><a href='http://blog.yaoyuan.org/article/978.html' rel='bookmark' title='Permanent Link: Widgetize non-widget WordPress theme'>Widgetize non-widget WordPress theme</a> <small>Consider this &#8211; If you found a WordPress theme that...</small></li>
<li><a href='http://blog.yaoyuan.org/article/980.html' rel='bookmark' title='Permanent Link: WordPress Theme That Mimics Mac OS X Leopard &#8211; Leopress'>WordPress Theme That Mimics Mac OS X Leopard &#8211; Leopress</a> <small>here’s the WordPress theme that gets very close to a...</small></li>
<li><a href='http://blog.yaoyuan.org/article/972.html' rel='bookmark' title='Permanent Link: Execute PHP in WordPress post, page and Widget Sidebar'>Execute PHP in WordPress post, page and Widget Sidebar</a> <small>If you are still struggling on how to insert PHP...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>people wanting to know how to create a WordPress theme. Here’s some resources I’ve found useful for putting one together:</p>
<ul>
<li><strong>Graphic design:</strong>
<ul>
<li><strong>Useful to have:</strong> Photoshop/Fireworks or the like to create your graphics</li>
<li><strong>For inspiration:</strong> sites like <a href="http://www.netdiver.net/">Netdiver</a>, <a href="http://www.designmeltdown.com/">Design Melt Down</a>, <a href="http://www.cssbeauty.com/gallery/">CSS Beauty</a>, <a href="http://www.unmatchedstyle.com/">Unmatched Style</a> etc can help sometimes.</li>
<li><strong>Color scheme ideas:</strong> <a href="http://www.colorschemer.com/schemes/">Colorschemer</a>, <a href="http://beta.dailycolorscheme.com/">Daily Color Scheme</a> and <a href="http://www.flickr.com/">Flickr</a> (photos are a brilliant source for color combinations).  Flip through your favourite magazines (I love looking through my <a href="http://www.howdesign.com/">How Magazines</a> and books for ideas. Look at how you’ve designed your house/bedroom/office &#8211; what color combinations do you like?</li>
<li><strong>Fonts:</strong> <a href="http://www.dafont.com/">DaFont</a> for free fonts and <a href="http://www.linotype.com/">Linotype</a> for purchasing professional fonts.</li>
<li><strong>Images:</strong> <a href="http://www.sxc.hu/">SXC</a> for free photos and <a href="http://www.istockphoto.com/">iStockPhoto</a> for inexpensive illustrations and photos.</li>
</ul>
</li>
<li><strong>XHTML/CSS templating:</strong>
<ul>
<li><a href="http://www.w3schools.com/">W3Schools</a> for learning or for quick reference.</li>
<li><a href="https://addons.mozilla.org/firefox/60/">Firefox web developer toolbar</a> &#8211; essential for checking and testing your code.  Great for live changing of your CSS.</li>
<li>A text editor like <a href="http://notepad-plus.sourceforge.net/uk/site.htm">Notepad++</a> to write your code.</li>
<li><a href="http://www.browsershots.org/">Browser Shots</a> &#8211; for testing your design in different browsers</li>
<li><strong>For reference:</strong> <a href="http://css.maxdesign.com.au/listamatic/">Listamatic</a>, <a href="http://www.inknoise.com/experimental/layoutomatic.php">Layoutomatic</a>, <a href="http://alistapart.com/articles/practicalcss">Practical CSS</a> and <a href="http://www.alistapart.com/">A List Apart</a> in general, <a href="http://www.csszengarden.com/">CSS Zen Garden</a> for insight into how to achieve different layouts and effects using CSS and <a href="http://blog.html.it/layoutgala/">Layout Gala</a></li>
</ul>
</li>
<li><strong>Understanding how WordPress themes are put together.</strong> I can’t emphasise enough how important the <a href="http://codex.wordpress.org/">WordPress manual</a> is.  Don’t miss the <a href="http://codex.wordpress.org/Stepping_Into_Templates">Stepping into templates</a> information.</li>
<li>Understanding <a href="http://codex.wordpress.org/The_Loop">“the loop”</a> and various <a href="http://codex.wordpress.org/Template_Tags">WordPress tags</a>.</li>
<li><strong>Knowing when and how to install plugins.</strong> <a href="http://wp-plugins.net/">WP-Plugins.net</a> has many plugins, but doing a Google or delicious search for “WordPress plugin” and then the type of plugin you’re wanting will help you find many others.</li>
<li><strong>Knowing at least a little bit of <a href="http://www.php.net/">PHP</a></strong> if you don’t want to feel so scared by WordPress tags, the loop, plugins and your templates.  There’s some tutorials on <a href="http://w3schools.com/php/">W3Schools</a> which can help.</li>
</ul>
<p><em>Have you found any others which you find essential?</em></p>


<p>Related posts:<ol><li><a href='http://blog.yaoyuan.org/article/978.html' rel='bookmark' title='Permanent Link: Widgetize non-widget WordPress theme'>Widgetize non-widget WordPress theme</a> <small>Consider this &#8211; If you found a WordPress theme that...</small></li>
<li><a href='http://blog.yaoyuan.org/article/980.html' rel='bookmark' title='Permanent Link: WordPress Theme That Mimics Mac OS X Leopard &#8211; Leopress'>WordPress Theme That Mimics Mac OS X Leopard &#8211; Leopress</a> <small>here’s the WordPress theme that gets very close to a...</small></li>
<li><a href='http://blog.yaoyuan.org/article/972.html' rel='bookmark' title='Permanent Link: Execute PHP in WordPress post, page and Widget Sidebar'>Execute PHP in WordPress post, page and Widget Sidebar</a> <small>If you are still struggling on how to insert PHP...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.yaoyuan.org/article/970.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
