<?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>知易行难,知行合一 (Walk the Talk) &#187; wordpress</title>
	<atom:link href="http://blog.alwayst.info/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.alwayst.info</link>
	<description>Blocked in China since Jan 6, 2011</description>
	<lastBuildDate>Mon, 12 Dec 2011 07:07:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>How to Embed Videoes in WordPress</title>
		<link>http://blog.alwayst.info/how-to-embed-videoes-in-wordpress</link>
		<comments>http://blog.alwayst.info/how-to-embed-videoes-in-wordpress#comments</comments>
		<pubDate>Sun, 06 Nov 2011 02:02:28 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[study_note]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=1602</guid>
		<description><![CDATA[As usual, this supposed to be an easy task, just copy the embed codes and all should work out fine. But in wordpress it didn&#8217;t&#8230; it turns out to be a bug or an error or anything you name it. Once you copy the embed codes into the HTML mode and switch to the normal [...]]]></description>
			<content:encoded><![CDATA[<p>As usual, this supposed to be an easy task, just copy the embed codes and all should work out fine. But in wordpress it didn&#8217;t&#8230; it turns out to be a bug or an error or anything you name it. Once you copy the embed codes into the HTML mode and switch to the normal edit mode, the codes simply disappeared. So it really a painful experience for me if I want embed any videos in my post, it seems that wordpress only accept certain kind of the embed codes. I resort to Google and found an easy way to fix the problem, though I don&#8217;t know exactly why it worked.</p>
<p>Find your theme&#8217;s<em><strong> function.php</strong></em> file. It usually located in <em>your wordpress fold/themes/your theme/function.php</em> or you can find it in your wordpress board, <em>Appearance&#8211;Edit&#8211;function.php</em>. Copy the following codes into this file, make sure to put  them in the right place, <strong>do not</strong> insert them to some functions.</p>
<blockquote><p><code>function mytheme_tinymce_config( $init ) {<br />
$valid_iframe = 'iframe[id|class|title|style|align|frameborder|height|longdesc|marginheight|marginwidth|name|scrolling|src|width]';<br />
if ( isset( $init['extended_valid_elements'] ) ) {<br />
$init['extended_valid_elements'] .= ',' . $valid_iframe;<br />
} else {<br />
$init['extended_valid_elements'] = $valid_iframe;<br />
}<br />
return $init;<br />
}<br />
add_filter('tiny_mce_before_init', 'mytheme_tinymce_config');<br />
</code></p></blockquote>
<p>Now, everything should be O.K.</p>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress" title="几个关于WordPress里留言回复的邮件通知的问题 2010.10.11">几个关于WordPress里留言回复的邮件通知的问题</a>(8)</li>
<li><a href="http://blog.alwayst.info/how-to-delete-wordpress-post-revisions" title="How to Delete WordPress Post Revisions  2010.01.12">How to Delete WordPress Post Revisions </a>(2)</li>
<li><a href="http://blog.alwayst.info/wordpress-upgrade-to-2-9-after-an-issue-of" title="WordPress升级到2.9后的一个问题 2009.12.29">WordPress升级到2.9后的一个问题</a>(0)</li>
<li><a href="http://blog.alwayst.info/%e5%85%b3%e4%ba%8egodaddy%e4%b8%8a%e6%9e%b6%e8%ae%bewordpress%e9%82%a3%e7%82%b9%e4%ba%8b" title="关于Godaddy上架设Wordpress那点事 2009.08.25">关于Godaddy上架设Wordpress那点事</a>(0)</li>
</ul><h3>Recent Comments</h3><ul></ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2011. |
<a href="http://blog.alwayst.info/how-to-embed-videoes-in-wordpress">Permalink</a> |
<a href="http://blog.alwayst.info/how-to-embed-videoes-in-wordpress#comments">No comment</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/wordpress" rel="tag">wordpress</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/how-to-embed-videoes-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>几个关于WordPress里留言回复的邮件通知的问题</title>
		<link>http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress</link>
		<comments>http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress#comments</comments>
		<pubDate>Sun, 10 Oct 2010 16:24:23 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=1287</guid>
		<description><![CDATA[在WordPress里对留言的回复通过email告知对方是一种很好的交互方式，既让信息即使传达又加强用户间的互动。但这个功能我一直没能成功启用过，这个周末想到了这个问题于是折腾了一下。 首先找对方法，我从一开始就死盯着Comment Reply Notification这个插件，而我的主题用的是iNove 1.4.6，不管怎么样，看上去在这个主题下Comment Reply Notification这个插件无效。真是背，这个问题上浪费了n个小时。 然后我找了另一个插件Mail To Commenter，简单配置一下就能用了，但是这个插件要求严格的回复格式，要么是&#8217;@+user+blank&#8216;，要么&#8217;@+user+:&#8216;，但我测试下来用户体验并不太好，简单的说，当你点了“回复”之后，鼠标的定位不准，这样会造成格式错误，就无法通过邮件回复对方了。具体如下图： Chrome: From Drop Box Firefox: From Drop Box IE下的情况和Firefox相同，所以我怀疑是代码本身有问题，看了一下还真是。点击“回复”之后触发一个js，该文件在我的博客空间是位于WordPress所在目录下&#8230;/wp-content/themes/inove/js/comment.js ，大家可以做个参考，应该也在差不多的位置。文件开头一看就看出了毛病： function() { function reply(authorId, commentId, commentBox) { var author = MGJS.$(authorId).innerHTML; var insertStr = &#8216;&#60;a href=&#8221;#&#8217; + commentId + &#8216;&#8221;&#62;@\n&#8216; + author.replace(/\t&#124;\n&#124;\r\n/g, &#8220;&#8221;) + &#8216; &#8216;; appendReply(insertStr, commentBox); } 关键就是在代码的红字加粗部分，在插入&#8217;@+user+blank&#8217;后又换行一次，删除后Firefox和IE下点击“回复”，鼠标就定位在了&#8217;@+user+blank&#8217;之后，功能一切正常。但Chrome下无论我怎么改，鼠标始终定位在最开始，浑然不理代码。我也不懂什么原因，想想难道是因为Chrome解释js和别人不一样？有牛人能指正就不生感激了。 总得来说这样也就基本够用了，但肯定也不完善，把格式钉死成&#8217;@+user+blank&#8217;或者&#8217;@+user+:&#8217; 当然不好，有人就是喜欢@user后打回车怎么办呢？不过我对php和js都不精通，只能暂时维持这个样子了。 接下来又发生胸闷的事，测试时，有留言被回复确实是会给被回复者发信，但邮件打头是(Unknown sender) ，这当然也是个不能接受的结果。查了一下碰到的人不多，本来想通过代码解决，mail函数也找不到，放弃了。根据这篇文章，下载了wp [...]]]></description>
			<content:encoded><![CDATA[<p>在WordPress里对留言的回复通过email告知对方是一种很好的交互方式，既让信息即使传达又加强用户间的互动。但这个功能我一直没能成功启用过，这个周末想到了这个问题于是折腾了一下。</p>
<p>首先找对方法，我从一开始就死盯着Comment Reply Notification这个插件，而我的主题用的是iNove 1.4.6，不管怎么样，看上去在这个主题下Comment Reply Notification这个插件无效。真是背，这个问题上浪费了n个小时。</p>
<p>然后我找了另一个插件Mail To Commenter，简单配置一下就能用了，但是这个插件要求严格的回复格式，要么是&#8217;<strong>@+user+blank</strong>&#8216;，要么&#8217;<strong>@+user+:</strong>&#8216;，但我测试下来用户体验并不太好，简单的说，当你点了“回复”之后，鼠标的定位不准，这样会造成格式错误，就无法通过邮件回复对方了。具体如下图：</p>
<p><strong>Chrome:</strong></p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/Hbmwfx53PQ-WmDlp9K-GXI5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh6.ggpht.com/_L1J-lJWR4To/TLHoBbIHy4I/AAAAAAAAOKs/IEfhrg6RUO0/s512/chrome_focus.jpg" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p><strong>Firefox:</strong></p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/v66wOYYHfhLTzdAAK4L-ro5cUep5FgZF5MX5xHo4ie4?feat=embedwebsite"><img src="http://lh6.ggpht.com/_L1J-lJWR4To/TLHoBnSO6OI/AAAAAAAAOKw/shcUbiWlvZM/s512/firefox_focus.jpg" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<p>IE下的情况和Firefox相同，所以我怀疑是代码本身有问题，看了一下还真是。点击“回复”之后触发一个js，该文件在我的博客空间是位于WordPress所在目录下&#8230;<code>/wp-content/themes/inove/js/comment.js</code> ，大家可以做个参考，应该也在差不多的位置。文件开头一看就看出了毛病：</p>
<blockquote><p>function() {</p>
<p>function reply(authorId, commentId, commentBox) {<br />
var author = MGJS.$(authorId).innerHTML;<br />
var insertStr = &#8216;&lt;a href=&#8221;#&#8217; + commentId + &#8216;&#8221;&gt;@<strong><span style="color: #ff0000;">\n</span></strong>&#8216; + author.replace(/\t|\n|\r\n/g, &#8220;&#8221;) + &#8216; &#8216;;</p>
<p>appendReply(insertStr, commentBox);<br />
}</p></blockquote>
<p>关键就是在代码的红字加粗部分，在插入&#8217;@+user+blank&#8217;后又<strong>换行一次</strong>，删除后Firefox和IE下点击“回复”，鼠标就定位在了&#8217;@+user+blank&#8217;之后，功能一切正常。但Chrome下无论我怎么改，鼠标始终定位在最开始，浑然不理代码。我也不懂什么原因，想想难道是因为Chrome解释js和别人不一样？有牛人能指正就不生感激了。</p>
<p>总得来说这样也就基本够用了，但肯定也不完善，把格式钉死成&#8217;@+user+blank&#8217;或者&#8217;@+user+:&#8217; 当然不好，有人就是喜欢@user后打回车怎么办呢？不过我对php和js都不精通，只能暂时维持这个样子了。</p>
<p>接下来又发生胸闷的事，测试时，有留言被回复确实是会给被回复者发信，但邮件打头是<strong>(Unknown sender) </strong>，这当然也是个不能接受的结果。查了一下碰到的人不多，本来想通过代码解决，mail函数也找不到，放弃了。根据<a href="http://www.shoutmeloud.com/unknown-sender-issue-wordpress.html" target="_blank">这篇文章</a>，下载了<a href="http://wordpress.org/extend/plugins/wp-mailfrom/" target="_blank">wp mail from</a>解决。测试一下也成功了，至此终于马马虎虎地搞定了留言回复的邮件通知功能，虽然写下来好像没什么实质内容，但其实经历了无数试错，太痛苦了。。。而且一个问题的解决伴随的是无数新问题的产生，我发现我代码一长就看不懂，个人域名邮箱也完全不会配，WordPress果然是个催人不断折腾的好工具啊，下次有心得了再来写。</p>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/how-to-delete-wordpress-post-revisions" title="How to Delete WordPress Post Revisions  2010.01.12">How to Delete WordPress Post Revisions </a>(2)</li>
<li><a href="http://blog.alwayst.info/how-to-embed-videoes-in-wordpress" title="How to Embed Videoes in WordPress  2011.11.6">How to Embed Videoes in WordPress </a>(0)</li>
<li><a href="http://blog.alwayst.info/how-to-change-the-hints-settings-of-pentadactyl" title="How to change the hints settings of Pentadactyl 2011.08.25">How to change the hints settings of Pentadactyl</a>(0)</li>
<li><a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox" title="Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox 2011.08.22">Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox</a>(0)</li>
<li><a href="http://blog.alwayst.info/fix-the-problem-which-ubuntu-cannot-root-itself" title="Fix the Problem which Ubuntu Cannot Root Itself 2010.10.17">Fix the Problem which Ubuntu Cannot Root Itself</a>(1)</li>
<li><a href="http://blog.alwayst.info/some-ubuntu-tips" title="Some Ubuntu Tips 2010.10.16">Some Ubuntu Tips</a>(4)</li>
<li><a href="http://blog.alwayst.info/wordpress-upgrade-to-2-9-after-an-issue-of" title="WordPress升级到2.9后的一个问题 2009.12.29">WordPress升级到2.9后的一个问题</a>(0)</li>
<li><a href="http://blog.alwayst.info/html%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%a0%bc%e9%97%ae%e9%a2%98" title="HTML中的表格问题 2009.09.14">HTML中的表格问题</a>(4)</li>
<li><a href="http://blog.alwayst.info/%e4%b8%80%e4%b8%aa%e8%a7%a3%e5%86%b3%e4%b8%8d%e4%ba%86%e7%9a%84%e7%ae%80%e5%8d%95%e9%97%ae%e9%a2%98" title="一个解决不了的简单问题 2009.09.12">一个解决不了的简单问题</a>(5)</li>
<li><a href="http://blog.alwayst.info/%e5%85%b3%e4%ba%8egodaddy%e4%b8%8a%e6%9e%b6%e8%ae%bewordpress%e9%82%a3%e7%82%b9%e4%ba%8b" title="关于Godaddy上架设Wordpress那点事 2009.08.25">关于Godaddy上架设Wordpress那点事</a>(0)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://blog.alwayst.info" >T</a> : <a class="comment_content" href="http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress#comment-801" title="View the entire comment by T" >@浩子 我ubuntu下的chrome和windows下的chrome都有这个毛病，我的chrome...</a></li>
<li><a class="commentor" href="http://haozer.com/" >浩子</a> : <a class="comment_content" href="http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress#comment-800" title="View the entire comment by 浩子" >@T  Mail To Commenter ， 我没有问题哦</a></li>
<li><a class="commentor" href="http://blog.alwayst.info" >T</a> : <a class="comment_content" href="http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress#comment-799" title="View the entire comment by T" >@浩子 你说哪一个？Comment Reply Notification 还是 Mail To Co...</a></li>
<li><a class="commentor" href="http://haozer.com/" >浩子</a> : <a class="comment_content" href="http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress#comment-798" title="View the entire comment by 浩子" >我用这个插件怎么没有问题呢？？？</a></li>
<li><a class="commentor" href="http://blog.alwayst.info" >T</a> : <a class="comment_content" href="http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress#comment-794" title="View the entire comment by T" >@依云 呵呵，受教了。</a></li>
</ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2010. |
<a href="http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress">Permalink</a> |
<a href="http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress#comments">8 comments</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/code" rel="tag">code</a>, <a href="http://blog.alwayst.info/tag/wordpress" rel="tag">wordpress</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How to Delete WordPress Post Revisions</title>
		<link>http://blog.alwayst.info/how-to-delete-wordpress-post-revisions</link>
		<comments>http://blog.alwayst.info/how-to-delete-wordpress-post-revisions#comments</comments>
		<pubDate>Tue, 12 Jan 2010 07:33:32 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=1018</guid>
		<description><![CDATA[Just take a note, maybe I will use it someday. My memeries do not always serve me, tha&#8217;s so sad, -_-!! As we all know WordPress saves your drafts automatically, that leaves a lot of revisions as backups on the server. It&#8217;s good, who wouldn&#8217;t  piss off if he typed for a long time and [...]]]></description>
			<content:encoded><![CDATA[<p>Just take a note, maybe I will use it someday. My memeries do not always serve me, tha&#8217;s so sad, -_-!!</p>
<p>As we all know WordPress saves your drafts automatically, that leaves a lot of revisions as backups on the server. It&#8217;s good, who wouldn&#8217;t  piss off if he typed for a long time and encountered some accidents like computer shut down for no reason. But on the other hand, when my articles posted, in most of the cases, I don&#8217;t need these revisions any more. Leaves them on the server as redundancy is useless and I guess they are adverse to the server&#8217;s performance. O.K., then things get really simple: KILL THEM ALL!</p>
<p>Try to access your WordPress database through some tools like phpMyAdmin(that&#8217;s the only tool I familiar with&#8230;), follow the steps below:</p>
<blockquote>
<ol>
<li> Your database</li>
<li>SQL</li>
<li>type the following codes<strong></strong><strong><code><br />
DELETE FROM wp_posts WHERE post_type = "revision";</code></strong></li>
<li>then press the button “Go”</li>
</ol>
</blockquote>
<p>Job Done.</p>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress" title="几个关于WordPress里留言回复的邮件通知的问题 2010.10.11">几个关于WordPress里留言回复的邮件通知的问题</a>(8)</li>
<li><a href="http://blog.alwayst.info/how-to-embed-videoes-in-wordpress" title="How to Embed Videoes in WordPress  2011.11.6">How to Embed Videoes in WordPress </a>(0)</li>
<li><a href="http://blog.alwayst.info/how-to-change-the-hints-settings-of-pentadactyl" title="How to change the hints settings of Pentadactyl 2011.08.25">How to change the hints settings of Pentadactyl</a>(0)</li>
<li><a href="http://blog.alwayst.info/set-ssl-google-as-the-default-search-engine-when-using-pentadactyl-in-firefox" title="Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox 2011.08.22">Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox</a>(0)</li>
<li><a href="http://blog.alwayst.info/fix-the-problem-which-ubuntu-cannot-root-itself" title="Fix the Problem which Ubuntu Cannot Root Itself 2010.10.17">Fix the Problem which Ubuntu Cannot Root Itself</a>(1)</li>
<li><a href="http://blog.alwayst.info/some-ubuntu-tips" title="Some Ubuntu Tips 2010.10.16">Some Ubuntu Tips</a>(4)</li>
<li><a href="http://blog.alwayst.info/wordpress-upgrade-to-2-9-after-an-issue-of" title="WordPress升级到2.9后的一个问题 2009.12.29">WordPress升级到2.9后的一个问题</a>(0)</li>
<li><a href="http://blog.alwayst.info/html%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%a0%bc%e9%97%ae%e9%a2%98" title="HTML中的表格问题 2009.09.14">HTML中的表格问题</a>(4)</li>
<li><a href="http://blog.alwayst.info/%e4%b8%80%e4%b8%aa%e8%a7%a3%e5%86%b3%e4%b8%8d%e4%ba%86%e7%9a%84%e7%ae%80%e5%8d%95%e9%97%ae%e9%a2%98" title="一个解决不了的简单问题 2009.09.12">一个解决不了的简单问题</a>(5)</li>
<li><a href="http://blog.alwayst.info/%e5%85%b3%e4%ba%8egodaddy%e4%b8%8a%e6%9e%b6%e8%ae%bewordpress%e9%82%a3%e7%82%b9%e4%ba%8b" title="关于Godaddy上架设Wordpress那点事 2009.08.25">关于Godaddy上架设Wordpress那点事</a>(0)</li>
</ul><h3>Recent Comments</h3><ul><li><a class="commentor" href="http://blog.alwayst.info" >T</a> : <a class="comment_content" href="http://blog.alwayst.info/how-to-delete-wordpress-post-revisions#comment-466" title="View the entire comment by T" >@G字头老大  
插件当然也是个办法~ 不过一般能少用就少用，随便删除点东西，我觉得还是用命令比较...</a></li>
<li><a class="commentor" href="http://gnrsu.cn" >G字头老大</a> : <a class="comment_content" href="http://blog.alwayst.info/how-to-delete-wordpress-post-revisions#comment-465" title="View the entire comment by G字头老大" >为什么不用“Delete Revision plugin”呢？</a></li>
</ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2010. |
<a href="http://blog.alwayst.info/how-to-delete-wordpress-post-revisions">Permalink</a> |
<a href="http://blog.alwayst.info/how-to-delete-wordpress-post-revisions#comments">2 comments</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/code" rel="tag">code</a>, <a href="http://blog.alwayst.info/tag/wordpress" rel="tag">wordpress</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/how-to-delete-wordpress-post-revisions/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress升级到2.9后的一个问题</title>
		<link>http://blog.alwayst.info/wordpress-upgrade-to-2-9-after-an-issue-of</link>
		<comments>http://blog.alwayst.info/wordpress-upgrade-to-2-9-after-an-issue-of#comments</comments>
		<pubDate>Tue, 29 Dec 2009 03:24:21 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[study_note]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=989</guid>
		<description><![CDATA[WordPress升级到2.9后莫名其妙地发现首页google reader shared items显示不正常，而后台控制板里也出现相同问题，都出现了如下的错误提示： Warning: curl_setopt() [function.curl-setopt]: CURLPROTO_FILE cannot be activated when in safe_mode or an open_basedir is set in &#8230; 当时立马去google，发现很多人在报同样的问题但没什么解决方案，有的说是插件问题，停用再重启就好了，我也没这个精力去搞，首页停了google reader shared items的插件就没管了，想想等这官方的升级就应该可以解决了。今天又查查 了，官方好像依然没啥反应，但wordpress论坛又有大神出没，感谢eric.fournier提供的解决方案（具体参考这里，eric.fournier大神在13楼）: 编辑文件 /wp-includes/http.php 找到第1300行，将 if ( defined( 'CURLOPT_TIMEOUT_MS' ) ) { $timeout_ms = (int) ceil( 1000 * $r['timeout'] ); curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT_MS, $timeout_ms ); curl_setopt( $handle, CURLOPT_TIMEOUT_MS, $timeout_ms ); } [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress升级到2.9后莫名其妙地发现首页google reader shared items显示不正常，而后台控制板里也出现相同问题，都出现了如下的错误提示：</p>
<blockquote><p>Warning: curl_setopt() [function.curl-setopt]: CURLPROTO_FILE cannot be activated when in safe_mode or an open_basedir is set in &#8230;</p></blockquote>
<p>当时立马去google，发现很多人在报同样的问题但没什么解决方案，有的说是插件问题，停用再重启就好了，我也没这个精力去搞，首页停了google reader shared items的插件就没管了，想想等这官方的升级就应该可以解决了。今天又查查 了，官方好像依然没啥反应，但wordpress论坛又有大神出没，感谢eric.fournier提供的解决方案（具体参考<a href="http://wordpress.org/support/topic/343008" target="_blank">这里</a>，eric.fournier大神在13楼）:<br />
<strong> 编辑文件 /wp-includes/http.php 找到第1300行，将</strong></p>
<blockquote><p><code>if ( defined( 'CURLOPT_TIMEOUT_MS' ) ) {<br />
$timeout_ms = (int) ceil( 1000 * $r['timeout'] );<br />
curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT_MS, $timeout_ms );<br />
curl_setopt( $handle, CURLOPT_TIMEOUT_MS, $timeout_ms );<br />
} else {<br />
$timeout = (int) ceil( $r['timeout'] );<br />
curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, $timeout );<br />
curl_setopt( $handle, CURLOPT_TIMEOUT, $timeout );<br />
}</code></p></blockquote>
<p><strong> 替换为</strong></p>
<blockquote><p><code>if ( defined( 'CURLOPT_TIMEOUT_MS' ) ) {<br />
// EDF - The option doesn't work with safe mode or when open_basedir is set. More<br />
// research is probably necessary however this seems to fix the problems I was<br />
// seeing in the "WordPress Development Blog" section of the Dashboard.<br />
if ( !ini_get('safe_mode') &amp;&amp; !ini_get('open_basedir') ) {<br />
$timeout_ms = (int) ceil( 1000 * $r['timeout'] );<br />
curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT_MS, $timeout_ms );<br />
curl_setopt( $handle, CURLOPT_TIMEOUT_MS, $timeout_ms );<br />
}<br />
} else {<br />
$timeout = (int) ceil( $r['timeout'] );<br />
curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, $timeout );<br />
curl_setopt( $handle, CURLOPT_TIMEOUT, $timeout );<br />
}</code></p></blockquote>
<p><strong>O.K.，圆满解决。</strong></p>
<hr /><strong><span style="color: #ff0000;">update:</span></strong> 插件（Recommended Reading: Google Reader Shared）依然有问题，每次配置完以后是好的，首页一刷新，设置就丢了，比较奇怪。看了看官方论坛，放出了<a href="http://wordpress.org/extend/plugins/wordpress-beta-tester/" target="_blank">wordpress 2.9 beta1</a>，装上以后对我的问题仍然没有解决。期待后续的正式版能解决。</p>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/how-to-embed-videoes-in-wordpress" title="How to Embed Videoes in WordPress  2011.11.6">How to Embed Videoes in WordPress </a>(0)</li>
<li><a href="http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress" title="几个关于WordPress里留言回复的邮件通知的问题 2010.10.11">几个关于WordPress里留言回复的邮件通知的问题</a>(8)</li>
<li><a href="http://blog.alwayst.info/how-to-delete-wordpress-post-revisions" title="How to Delete WordPress Post Revisions  2010.01.12">How to Delete WordPress Post Revisions </a>(2)</li>
<li><a href="http://blog.alwayst.info/%e5%85%b3%e4%ba%8egodaddy%e4%b8%8a%e6%9e%b6%e8%ae%bewordpress%e9%82%a3%e7%82%b9%e4%ba%8b" title="关于Godaddy上架设Wordpress那点事 2009.08.25">关于Godaddy上架设Wordpress那点事</a>(0)</li>
</ul><h3>Recent Comments</h3><ul></ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2009. |
<a href="http://blog.alwayst.info/wordpress-upgrade-to-2-9-after-an-issue-of">Permalink</a> |
<a href="http://blog.alwayst.info/wordpress-upgrade-to-2-9-after-an-issue-of#comments">No comment</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/troubleshooting" rel="tag">troubleshooting</a>, <a href="http://blog.alwayst.info/tag/wordpress" rel="tag">wordpress</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/wordpress-upgrade-to-2-9-after-an-issue-of/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关于Godaddy上架设WordPress那点事</title>
		<link>http://blog.alwayst.info/%e5%85%b3%e4%ba%8egodaddy%e4%b8%8a%e6%9e%b6%e8%ae%bewordpress%e9%82%a3%e7%82%b9%e4%ba%8b</link>
		<comments>http://blog.alwayst.info/%e5%85%b3%e4%ba%8egodaddy%e4%b8%8a%e6%9e%b6%e8%ae%bewordpress%e9%82%a3%e7%82%b9%e4%ba%8b#comments</comments>
		<pubDate>Mon, 24 Aug 2009 18:19:01 +0000</pubDate>
		<dc:creator>T</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[study_note]]></category>
		<category><![CDATA[心情文章]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.alwayst.info/?p=486</guid>
		<description><![CDATA[图床在picasa，不能翻墙的朋友就掠过，略过吧。 遭遇三个问题： 问题描述：遭遇error，名为“Cannot modify header information&#8230;”。 解决办法：将wp-config.php从主机上下载下来，用记事本等文本编辑器打开，再另存一遍，注意编码用ANSI。 问题描述：Godaddy上架设Wordpress，那么wp-config.php里的MySQL主机名可就不是&#8221;localhost&#8221;了。（我梦游的主机上就是localhost，不知道是哪个主机比较另类。。？）那么MySQL主机名在哪里呢？ 解决办法：说大不清楚，还是看图说话吧。 From Drop From Drop Box From Drop Box From Drop Box From Drop Box From Drop Box From Drop Box 问题描述：关于域名重定位，比如希望打开http://xxx.net自动转到http://xxx.net/blog 解决办法：暂无。指标不治本的方法，是在http://xxx.net的首页里添加一句&#8221;&#60;meta http-equiv=&#8221;refresh&#8221; content=&#8221;0.1;url=http://xxx.net/blog&#8221;&#62;&#8220;，但这样访问者仍能看到http://xxx.net的预设页面，不是很爽。求解！ Related PostsHow to Embed Videoes in WordPress (0) 几个关于WordPress里留言回复的邮件通知的问题(8) How to Delete WordPress Post Revisions (2) WordPress升级到2.9后的一个问题(0) PayPal退款(0) 赞一下Godaddy(4) Recent Comments © [...]]]></description>
			<content:encoded><![CDATA[<p>图床在picasa，不能翻墙的朋友就掠过，略过吧。</p>
<p>遭遇三个问题：</p>
<ol>
<li><strong>问题描述：</strong>遭遇error，名为“Cannot modify header information&#8230;”。<br />
<span style="color: #ff0000;"><strong>解决办法：</strong></span>将wp-config.php从主机上下载下来，用记事本等文本编辑器打开，再另存一遍，<strong>注意编码用ANSI</strong>。</li>
<li><strong>问题描述：</strong>Godaddy上架设Wordpress，那么wp-config.php里的MySQL主机名可就不是&#8221;localhost&#8221;了。（我梦游的主机上就是localhost，不知道是哪个主机比较另类。。？）那么MySQL主机名在哪里呢？<br />
<span style="color: #ff0000;"><strong>解决办法：</strong></span>说大不清楚，还是看图说话吧。</li>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/zN6XHeZWkzNaez8JsRwX7g?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite"><img title="登录godaddy账户→Manage Account" src="http://lh5.ggpht.com/_L1J-lJWR4To/SpLLpbu1Q7I/AAAAAAAAKs4/hCoJWtzlvjQ/s576/godaddy_mysql_hostname1.JPG" alt="" width="576" height="512" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop</a></td>
</tr>
</tbody>
</table>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/s5eVF7M7CmFhK1nby8T9Yg?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite"><img title="Database→MySQL" src="http://lh3.ggpht.com/_L1J-lJWR4To/SpLLrJSMptI/AAAAAAAAKtA/_kI-n6BJGEs/s576/godaddy_mysql_hostname2.JPG" alt="" width="576" height="424" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<table style="height: 171px;" border="0" width="586">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/EvHG0wKPQEbH_sfFjYgOpA?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite"><img title="Manage via phpMyAdmin" src="http://lh3.ggpht.com/_L1J-lJWR4To/SpLLr8dhm3I/AAAAAAAAKtE/4LUcW8rBygo/s576/godaddy_mysql_hostname3.JPG" alt="" width="576" height="141" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/b8QwsiLO4N47pqNrtXhXnA?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite"><img title="Log in. Username和Password就看你wp-config.php里的设定了" src="http://lh3.ggpht.com/_L1J-lJWR4To/SpLLsIx47-I/AAAAAAAAKtQ/-IBx15lpoTM/s576/godaddy_mysql_hostname4.JPG" alt="" width="398" height="360" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/AFyRwWKjXCPWjlZfp_zt9A?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite"><img title="红框部分即是自行设定的用户名和密码" src="http://lh5.ggpht.com/_L1J-lJWR4To/SpLLtuW4FQI/AAAAAAAAKtc/s7u3upF4uKU/s576/godaddy_mysql_hostname6.JPG" alt="" width="566" height="576" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/1C4FqEeRjiCx8V8xjfSFVA?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite"><img title="红框部分即是我们需要的MySQL主机名（好辛苦...）" src="http://lh6.ggpht.com/_L1J-lJWR4To/SpLLs-JcYxI/AAAAAAAAKtY/ZO21iXr8N_Q/s576/godaddy_mysql_hostname5.JPG" alt="" width="576" height="438" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/dN3IaFJQeflGTumbFfNB6g?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite"><img title="将MySQL主机名填入红框处就大功告成了" src="http://lh5.ggpht.com/_L1J-lJWR4To/SpLLupw4PuI/AAAAAAAAKtg/9WBM5Epvgd0/s576/godaddy_mysql_hostname7.JPG" alt="" width="543" height="576" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/zlc821024/DropBox?authkey=Gv1sRgCNWKqoLZtKCbFw&amp;feat=embedwebsite">Drop Box</a></td>
</tr>
</tbody>
</table>
<li><strong>问题描述：</strong>关于域名重定位，比如希望打开http://xxx.net自动转到http://xxx.net/blog<br />
<span style="color: #ff0000;"><strong>解决办法：</strong></span><strong>暂无</strong>。指标不治本的方法，是在http://xxx.net的首页里添加一句&#8221;<strong>&lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;0.1;url=http://xxx.net/blog&#8221;&gt;</strong>&#8220;，但这样访问者仍能看到http://xxx.net的预设页面，不是很爽。<strong><span style="color: #ff0000;">求解！</span></strong></li>
</ol>
<h3>Related Posts</h3><ul><li><a href="http://blog.alwayst.info/how-to-embed-videoes-in-wordpress" title="How to Embed Videoes in WordPress  2011.11.6">How to Embed Videoes in WordPress </a>(0)</li>
<li><a href="http://blog.alwayst.info/some_problems_about_comment_reply_notification_in_wordpress" title="几个关于WordPress里留言回复的邮件通知的问题 2010.10.11">几个关于WordPress里留言回复的邮件通知的问题</a>(8)</li>
<li><a href="http://blog.alwayst.info/how-to-delete-wordpress-post-revisions" title="How to Delete WordPress Post Revisions  2010.01.12">How to Delete WordPress Post Revisions </a>(2)</li>
<li><a href="http://blog.alwayst.info/wordpress-upgrade-to-2-9-after-an-issue-of" title="WordPress升级到2.9后的一个问题 2009.12.29">WordPress升级到2.9后的一个问题</a>(0)</li>
<li><a href="http://blog.alwayst.info/paypal%e9%80%80%e6%ac%be" title="PayPal退款 2009.08.29">PayPal退款</a>(0)</li>
<li><a href="http://blog.alwayst.info/%e8%b5%9e%e4%b8%80%e4%b8%8bgodaddy" title="赞一下Godaddy 2009.08.25">赞一下Godaddy</a>(4)</li>
</ul><h3>Recent Comments</h3><ul></ul><hr />
<p><small>© T for <a href="http://blog.alwayst.info">知易行难,知行合一 (Walk the Talk)</a>, 2009. |
<a href="http://blog.alwayst.info/%e5%85%b3%e4%ba%8egodaddy%e4%b8%8a%e6%9e%b6%e8%ae%bewordpress%e9%82%a3%e7%82%b9%e4%ba%8b">Permalink</a> |
<a href="http://blog.alwayst.info/%e5%85%b3%e4%ba%8egodaddy%e4%b8%8a%e6%9e%b6%e8%ae%bewordpress%e9%82%a3%e7%82%b9%e4%ba%8b#comments">No comment</a> 
<br/>
Post tags: <a href="http://blog.alwayst.info/tag/godaddy" rel="tag">godaddy</a>, <a href="http://blog.alwayst.info/tag/mysql" rel="tag">mysql</a>, <a href="http://blog.alwayst.info/tag/wordpress" rel="tag">wordpress</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alwayst.info/%e5%85%b3%e4%ba%8egodaddy%e4%b8%8a%e6%9e%b6%e8%ae%bewordpress%e9%82%a3%e7%82%b9%e4%ba%8b/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

