<?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>老豆豉的网络空间 &#187; WordPress</title>
	<atom:link href="http://laodouchi.com/archives/tag/wp%e7%9b%b8%e5%85%b3/feed" rel="self" type="application/rss+xml" />
	<link>http://laodouchi.com</link>
	<description>杂七杂八乱扯，就是没有政事</description>
	<lastBuildDate>Tue, 27 Jul 2010 02:01:59 +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>本站主题更新</title>
		<link>http://laodouchi.com/archives/1333</link>
		<comments>http://laodouchi.com/archives/1333#comments</comments>
		<pubDate>Tue, 09 Jun 2009 14:49:37 +0000</pubDate>
		<dc:creator>老豆豉</dc:creator>
				<category><![CDATA[站务公告]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://laodouchi.com/archives/1333</guid>
		<description><![CDATA[新主题采用Shades of Blue，并做了适当的修改，主要是index页面、字体、侧边栏内容以及footer页面的调整，此主题底色为喜欢的蓝色，页面内容结构组织合理，尤其是footer页面，由4个小的Widgets组成，可直接通过后台主题部分的widgets功能进行自定义。本次主题更换，除了采用新主题的组织结构，变化最大的就是Index页面，通过WordPrsss后台自带的Front page displays功能，将默认显示Your latest posts调整为显示A static page，这样调整会给整个主页以清新、简洁的效果，不知道大家是否认同。调整方法如下： 你可以选择显示一个Page，也可以选择显示一个Post，推荐使用Page，因为Page本身是支持Template的,方便你进行内容的定义，而不会影响其他的Page和Post。修改过程中遇到一个小难题与大家分享： 由于采用了Google自定义搜索，并将搜索结果集成到站内，所以需要定义一个显示搜索结果的Page，index页面也定义了一个标题为“欢迎光临本站”的Page，这两个Page不能在导航栏显示，如何做到呢？Google到如下方法，采用wp_list_pages函数的exclude参数可以进行剔除不显示的Page，如本站导航栏的定义代码为：&#60;?php wp_list_pages(&#8216;title_li=&#38;depth=4&#38;sort_column=menu_order&#38;exclude=1072,333&#8242;); ?&#62;，其中1072、333为这两个Page的ID号。 对于此次改版及主题的更换，自己心里没有底，不知道是否符合大家的口味，365hopelogo的变化都有不小的争议，何况这主题的翻天覆地呢？说起Logo，对于目前这款主题，唯一的缺憾就是一个logo了，不知哪位童鞋善于设计又自告奋勇，免费为偶设计一款与本站风格一致的漂亮主题呢，请留言给我，不胜感激。 update: 1、根据江东的意见,twitter的调用耗时，将twitter放在导航栏中，只是加了链接。 2、原来twitter的位置内容改为“精品排行”，侧边栏只保留最新文章，显示最近更新的15篇博文，我想这样的调整也和365hope首页显示最后更新的意见不谋而合吧。 相关文章：2009年04月29日 -- WordPress默认主题（Default theme）的960px版本 (31)2008年10月9日 -- 再次更换主题 (2)2008年09月27日 -- 更换新主题Devart (1)2009年02月19日 -- 又一次更换主题 (0)2009年02月16日 -- WordPress 2.7.1 and K2 1.0-RC7 (0)]]></description>
			<content:encoded><![CDATA[<p>新主题采用<a href="http://www.briangardner.com/themes/shades">Shades of Blue</a>，并做了适当的修改，主要是index页面、字体、侧边栏内容以及footer页面的调整，此主题底色为喜欢的蓝色，页面内容结构组织合理，尤其是footer页面，由4个小的Widgets组成，可直接通过后台主题部分的widgets功能进行自定义。本次主题更换，除了采用新主题的组织结构，变化最大的就是Index页面，通过WordPrsss后台自带的Front page displays功能，将默认显示Your latest posts调整为显示A static page，这样调整会给整个主页以清新、简洁的效果，不知道大家是否认同。调整方法如下：</p>
<p><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="image" src="http://laodouchi.com/wp-content/upload/ad9e90883d18_140F3/image.png" border="0" alt="image" width="520" height="220" /></p>
<p>你可以选择显示一个Page，也可以选择显示一个Post，推荐使用Page，因为Page本身是支持Template的,方便你进行内容的定义，而不会影响其他的Page和Post。修改过程中遇到一个小难题与大家分享：</p>
<p>由于采用了Google自定义搜索，并将搜索结果集成到站内，所以需要定义一个显示搜索结果的Page，index页面也定义了一个标题为“欢迎光临本站”的Page，这两个Page不能在导航栏显示，如何做到呢？Google到如下方法，采用wp_list_pages函数的exclude参数可以进行剔除不显示的Page，如本站导航栏的定义代码为：&lt;?php wp_list_pages(&#8216;title_li=&amp;depth=4&amp;sort_column=menu_order&amp;exclude=1072,333&#8242;); ?&gt;，其中1072、333为这两个Page的ID号。</p>
<p>对于此次改版及主题的更换，自己心里没有底，不知道是否符合大家的口味，<a href="http://365hope.com/" target="_blank">365hope</a>logo的变化都有不小的争议，何况这主题的翻天覆地呢？说起Logo，对于目前这款主题，唯一的缺憾就是一个logo了，不知哪位童鞋善于设计又自告奋勇，免费为偶设计一款与本站风格一致的漂亮主题呢，请留言给我，不胜感激。</p>
<p>update:</p>
<p>1、根据<a href="http://www.storyday.com" target="_blank">江东</a>的意见,twitter的调用耗时，将twitter放在导航栏中，只是加了链接。</p>
<p>2、原来twitter的位置内容改为“精品排行”，侧边栏只保留最新文章，显示最近更新的15篇博文，我想这样的调整也和<a href="http://365hope。com">365hope</a>首页显示最后更新的意见不谋而合吧。</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li>2009年04月29日 -- <a href="http://laodouchi.com/archives/1075" title="WordPress默认主题（Default theme）的960px版本">WordPress默认主题（Default theme）的960px版本</a> (31)</li><li>2008年10月9日 -- <a href="http://laodouchi.com/archives/548" title="再次更换主题">再次更换主题</a> (2)</li><li>2008年09月27日 -- <a href="http://laodouchi.com/archives/425" title="更换新主题Devart">更换新主题Devart</a> (1)</li><li>2009年02月19日 -- <a href="http://laodouchi.com/archives/868" title="又一次更换主题">又一次更换主题</a> (0)</li><li>2009年02月16日 -- <a href="http://laodouchi.com/archives/831" title="WordPress 2.7.1 and K2 1.0-RC7">WordPress 2.7.1 and K2 1.0-RC7</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://laodouchi.com/archives/1333/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>用WLW发布WordPress乱码解决方案(转自新克蘭德)</title>
		<link>http://laodouchi.com/archives/1212</link>
		<comments>http://laodouchi.com/archives/1212#comments</comments>
		<pubDate>Mon, 01 Jun 2009 07:30:21 +0000</pubDate>
		<dc:creator>老豆豉</dc:creator>
				<category><![CDATA[工作相关]]></category>
		<category><![CDATA[站务公告]]></category>
		<category><![CDATA[live writer]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://laodouchi.com/archives/1212</guid>
		<description><![CDATA[换空间之后，用WLW远程发布日志时，出现问题：html标签处理不当(&#60;&#62;&#38;等三个符号显示不出来)，Google了一下原因，才知道是一个处理XML的函式库libxml2出了问题。新克蘭德已经给出了解决办法，按照此办法修改相关页面后，问题解决。把办法转在这里，以后升级WP时备查。 方法简述： 修改下述三个php文件里面的一个function (注意各人文件内容不尽相同) /wp-admin/import/blogger.php &#8212; function parse($xml) /wp-includes/rss.php &#8212; function MagpieRSS ($source) /wp-includes/class-IXR.php &#8212; function parse() 依照下面的方式修改： 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 // /wp-admin/import/blogger.php 913-935 //-----------------------------------------------   &#8230; <a href="http://laodouchi.com/archives/1212">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>换空间之后，用WLW远程发布日志时，出现问题：html标签处理不当(&lt;&gt;&amp;等三个符号显示不出来)，Google了一下原因，才知道是一个处理XML的函式库libxml2出了问题。<a href="http://thinkland.twbbs.org">新克蘭德</a>已经给出了解决办法，按照此办法修改相关页面后，问题解决。把办法转在这里，以后升级WP时备查。</p>
<p>方法简述：</p>
<p>修改下述三个php文件里面的一个function (注意各人文件内容不尽相同)</p>
<ul>
<li>/wp-admin/import/blogger.php &#8212; function parse($xml)</li>
<li>/wp-includes/rss.php &#8212; function MagpieRSS ($source)</li>
<li>/wp-includes/class-IXR.php &#8212; function parse()</li>
</ul>
<p>依照下面的方式修改：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// /wp-admin/import/blogger.php 913-935</span>
<span style="color: #666666; font-style: italic;">//-----------------------------------------------  </span>
                <span style="color: #000000; font-weight: bold;">function</span> parse<span style="color: #009900;">&#40;</span><span style="color: #000088;">$xml</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>   
                <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/global&quot;</span><span style="color: #339933;">&gt;</span>global<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span> <span style="color: #000088;">$app_logging</span><span style="color: #339933;">;</span>
		<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/array_unshift&quot;</span><span style="color: #339933;">&gt;</span>array_unshift<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>ns_contexts<span style="color: #339933;">,</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/array&quot;</span><span style="color: #339933;">&gt;</span>array<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   <span style="color: #000088;">$parser</span> <span style="color: #339933;">=</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_parser_create_ns&quot;</span><span style="color: #339933;">&gt;</span>xml_parser_create_ns<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_set_object&quot;</span><span style="color: #339933;">&gt;</span>xml_set_object<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parser</span><span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_set_element_handler&quot;</span><span style="color: #339933;">&gt;</span>xml_set_element_handler<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parser</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;start_element&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;end_element&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_parser_set_option&quot;</span><span style="color: #339933;">&gt;</span>xml_parser_set_option<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parser</span><span style="color: #339933;">,</span>XML_OPTION_CASE_FOLDING<span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_parser_set_option&quot;</span><span style="color: #339933;">&gt;</span>xml_parser_set_option<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parser</span><span style="color: #339933;">,</span>XML_OPTION_SKIP_WHITE<span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_set_character_data_handler&quot;</span><span style="color: #339933;">&gt;</span>xml_set_character_data_handler<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parser</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;cdata&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_set_default_handler&quot;</span><span style="color: #339933;">&gt;</span>xml_set_default_handler<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parser</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;_default&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_set_start_namespace_decl_handler&quot;</span><span style="color: #339933;">&gt;</span>xml_set_start_namespace_decl_handler<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parser</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;start_ns&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_set_end_namespace_decl_handler&quot;</span><span style="color: #339933;">&gt;</span>xml_set_end_namespace_decl_handler<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parser</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;end_ns&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   <span style="color: #000088;">$contents</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>   <span style="color: #666666; font-style: italic;">//xmllib 2.7.0 -2.7.3 stripping leading angle brackets bug patch</span>
		<span style="color: #000088;">$xml</span> <span style="color: #339933;">=&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/str_replace&quot;</span><span style="color: #339933;">&gt;</span>str_replace<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;amp;lt;&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&amp;amp;#60;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$xml</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$xml</span> <span style="color: #339933;">=&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/str_replace&quot;</span><span style="color: #339933;">&gt;</span>str_replace<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;amp;gt;&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&amp;amp;#62;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$xml</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$xml</span> <span style="color: #339933;">=&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/str_replace&quot;</span><span style="color: #339933;">&gt;</span>str_replace<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&amp;amp;#38;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$xml</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">//end Fix   &lt;a href=&quot;http://www.php.net/xml_parse&quot;&gt;xml_parse&lt;/a&gt;($parser, $xml);   &lt;a href=&quot;http://www.php.net/xml_parser_free&quot;&gt;xml_parser_free&lt;/a&gt;($parser);   return true;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// /wp-includes/rss.php 49-90</span>
<span style="color: #666666; font-style: italic;">//-----------------------------------------------   </span>
               <span style="color: #000000; font-weight: bold;">function</span> MagpieRSS <span style="color: #009900;">&#40;</span><span style="color: #000088;">$source</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
               <span style="color: #666666; font-style: italic;"># if PHP xml isn't compiled in, die
</span>		<span style="color: #666666; font-style: italic;">#
</span>		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/function_exists&quot;</span><span style="color: #339933;">&gt;</span>function_exists<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'xml_parser_create'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
			<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/trigger_error&quot;</span><span style="color: #339933;">&gt;</span>trigger_error<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;Failed to load PHP's XML Extension.http://www.php.net/manual/en/ref.xml.php&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   <span style="color: #000088;">$parser</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_parser_create&quot;</span><span style="color: #339933;">&gt;</span>xml_parser_create<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/is_resource&quot;</span><span style="color: #339933;">&gt;</span>is_resource<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parser</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
			<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/trigger_error&quot;</span><span style="color: #339933;">&gt;</span>trigger_error<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;Failed to create an instance of PHP's XML parser. http://www.php.net/manual/en/ref.xml.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>     <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>parser <span style="color: #339933;">=</span> <span style="color: #000088;">$parser</span><span style="color: #339933;">;</span>   <span style="color: #666666; font-style: italic;"># pass in parser, and a reference to this object
</span>		<span style="color: #666666; font-style: italic;"># setup handlers
</span>		<span style="color: #666666; font-style: italic;">#
</span>		<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_set_object&quot;</span><span style="color: #339933;">&gt;</span>xml_set_object<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>parser<span style="color: #339933;">,</span> <span style="color: #000088;">$this</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_set_element_handler&quot;</span><span style="color: #339933;">&gt;</span>xml_set_element_handler<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>parser<span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'feed_start_element'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'feed_end_element'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_set_character_data_handler&quot;</span><span style="color: #339933;">&gt;</span>xml_set_character_data_handler<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>parser<span style="color: #339933;">,</span> <span style="color: #0000ff;">'feed_cdata'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   <span style="color: #666666; font-style: italic;">//xmllib 2.7.0 -2.7.3 stripping leading angle brackets bug patch</span>
		<span style="color: #000088;">$source</span> <span style="color: #339933;">=&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/str_replace&quot;</span><span style="color: #339933;">&gt;</span>str_replace<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;amp;lt;&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&amp;amp;#60;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$source</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$source</span> <span style="color: #339933;">=&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/str_replace&quot;</span><span style="color: #339933;">&gt;</span>str_replace<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;amp;gt;&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&amp;amp;#62;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$source</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$source</span> <span style="color: #339933;">=&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/str_replace&quot;</span><span style="color: #339933;">&gt;</span>str_replace<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&amp;amp;#38;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$source</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">//end fix   $status = &lt;a href=&quot;http://www.php.net/xml_parse&quot;&gt;xml_parse&lt;/a&gt;( $this-&amp;gt;parser, $source );   if (! $status ) {</span>
			<span style="color: #000088;">$errorcode</span> <span style="color: #339933;">=</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_get_error_code&quot;</span><span style="color: #339933;">&gt;</span>xml_get_error_code<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>parser <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$errorcode</span> <span style="color: #339933;">!=</span> XML_ERROR_NONE <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$xml_error</span> <span style="color: #339933;">=</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_error_string&quot;</span><span style="color: #339933;">&gt;</span>xml_error_string<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$errorcode</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$error_line</span> <span style="color: #339933;">=</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_get_current_line_number&quot;</span><span style="color: #339933;">&gt;</span>xml_get_current_line_number<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>parser<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$error_col</span> <span style="color: #339933;">=</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_get_current_column_number&quot;</span><span style="color: #339933;">&gt;</span>xml_get_current_column_number<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>parser<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$errormsg</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$xml_error</span> at line <span style="color: #006699; font-weight: bold;">$error_line</span>, column <span style="color: #006699; font-weight: bold;">$error_col</span>&quot;</span><span style="color: #339933;">;</span>   <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>error<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$errormsg</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>   <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_parser_free&quot;</span><span style="color: #339933;">&gt;</span>xml_parser_free<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>parser <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>normalize<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// /wp-includes/class-IXR.php 159-185</span>
<span style="color: #666666; font-style: italic;">//-----------------------------------------------   </span>
        <span style="color: #000000; font-weight: bold;">function</span> parse<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #666666; font-style: italic;">// first remove the XML declaration</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>message <span style="color: #339933;">=</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/preg_replace&quot;</span><span style="color: #339933;">&gt;</span>preg_replace<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/&amp;lt;\?xml(.*)?\?'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;gt;/'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>message<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/trim&quot;</span><span style="color: #339933;">&gt;</span>trim<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>message<span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>_parser <span style="color: #339933;">=</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_parser_create&quot;</span><span style="color: #339933;">&gt;</span>xml_parser_create<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #666666; font-style: italic;">// Set XML parser to take the case of tags in to account</span>
        <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_parser_set_option&quot;</span><span style="color: #339933;">&gt;</span>xml_parser_set_option<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>_parser<span style="color: #339933;">,</span> XML_OPTION_CASE_FOLDING<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #666666; font-style: italic;">// Set XML parser callback functions</span>
        <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_set_object&quot;</span><span style="color: #339933;">&gt;</span>xml_set_object<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>_parser<span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_set_element_handler&quot;</span><span style="color: #339933;">&gt;</span>xml_set_element_handler<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>_parser<span style="color: #339933;">,</span> <span style="color: #0000ff;">'tag_open'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'tag_close'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_set_character_data_handler&quot;</span><span style="color: #339933;">&gt;</span>xml_set_character_data_handler<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>_parser<span style="color: #339933;">,</span> <span style="color: #0000ff;">'cdata'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   <span style="color: #666666; font-style: italic;">//xmllib 2.7.0 -2.7.3 stripping leading angle brackets bug patch</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>message <span style="color: #339933;">=&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/str_replace&quot;</span><span style="color: #339933;">&gt;</span>str_replace<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;amp;lt;&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&amp;amp;#60;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>message<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>message <span style="color: #339933;">=&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/str_replace&quot;</span><span style="color: #339933;">&gt;</span>str_replace<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;amp;gt;&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&amp;amp;#62;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>message<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>message <span style="color: #339933;">=&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/str_replace&quot;</span><span style="color: #339933;">&gt;</span>str_replace<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&amp;amp;#38;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>message<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">//end fix   if (!&lt;a href=&quot;http://www.php.net/xml_parse&quot;&gt;xml_parse&lt;/a&gt;($this-&amp;gt;_parser, $this-&amp;gt;message)) {</span>
            <span style="color: #666666; font-style: italic;">/* die(sprintf('XML error: %s at line %d',
                xml_error_string(xml_get_error_code($this-&amp;gt;_parser)),
                xml_get_current_line_number($this-&amp;gt;_parser))); */</span>
            <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.php.net/xml_parser_free&quot;</span><span style="color: #339933;">&gt;</span>xml_parser_free<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>_parser<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #666666; font-style: italic;">// Grab the error messages, if any</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>messageType <span style="color: #339933;">==</span> <span style="color: #0000ff;">'fault'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>faultCode <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>params<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'faultCode'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>faultString <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>params<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'faultString'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li>2009年05月11日 -- <a href="http://laodouchi.com/archives/1093" title="invalid response document returned from XmlRpc server">invalid response document returned from XmlRpc server</a> (5)</li><li>2010年06月25日 -- <a href="http://laodouchi.com/archives/1886" title="Windows Live Wave 4测试版试用">Windows Live Wave 4测试版试用</a> (0)</li><li>2009年06月9日 -- <a href="http://laodouchi.com/archives/1333" title="本站主题更新">本站主题更新</a> (22)</li><li>2009年04月29日 -- <a href="http://laodouchi.com/archives/1075" title="WordPress默认主题（Default theme）的960px版本">WordPress默认主题（Default theme）的960px版本</a> (31)</li><li>2009年02月19日 -- <a href="http://laodouchi.com/archives/868" title="又一次更换主题">又一次更换主题</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://laodouchi.com/archives/1212/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>invalid response document returned from XmlRpc server</title>
		<link>http://laodouchi.com/archives/1093</link>
		<comments>http://laodouchi.com/archives/1093#comments</comments>
		<pubDate>Mon, 11 May 2009 13:31:05 +0000</pubDate>
		<dc:creator>老豆豉</dc:creator>
				<category><![CDATA[工作相关]]></category>
		<category><![CDATA[站务公告]]></category>
		<category><![CDATA[live writer]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://laodouchi.com/archives/1093</guid>
		<description><![CDATA[今天重装系统之后配置live writer，远程发布日志时出现错误提示：invalid response document returned from XmlRpc server，网络搜索问题原因，怀疑是插件兼容性造成的，经过逐一排查，发现是WordPress Thread Comment 1.4.9.4插件引起，将插件禁用后，问题解决。到插件作者站点留言，希望下个版本可以解决这个问题。 相关文章：2009年06月1日 -- 用WLW发布Wordpress乱码解决方案(转自新克蘭德) (0)2010年06月25日 -- Windows Live Wave 4测试版试用 (0)2009年06月9日 -- 本站主题更新 (22)2009年04月29日 -- WordPress默认主题（Default theme）的960px版本 (31)2009年02月19日 -- 又一次更换主题 (0)]]></description>
			<content:encoded><![CDATA[<p>今天重装系统之后配置live writer，远程发布日志时出现错误提示：invalid response document returned from XmlRpc server，网络搜索问题原因，怀疑是插件兼容性造成的，经过逐一排查，发现是WordPress Thread Comment 1.4.9.4插件引起，将插件禁用后，问题解决。到插件作者站点留言，希望下个版本可以解决这个问题。</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li>2009年06月1日 -- <a href="http://laodouchi.com/archives/1212" title="用WLW发布Wordpress乱码解决方案(转自新克蘭德)">用WLW发布Wordpress乱码解决方案(转自新克蘭德)</a> (0)</li><li>2010年06月25日 -- <a href="http://laodouchi.com/archives/1886" title="Windows Live Wave 4测试版试用">Windows Live Wave 4测试版试用</a> (0)</li><li>2009年06月9日 -- <a href="http://laodouchi.com/archives/1333" title="本站主题更新">本站主题更新</a> (22)</li><li>2009年04月29日 -- <a href="http://laodouchi.com/archives/1075" title="WordPress默认主题（Default theme）的960px版本">WordPress默认主题（Default theme）的960px版本</a> (31)</li><li>2009年02月19日 -- <a href="http://laodouchi.com/archives/868" title="又一次更换主题">又一次更换主题</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://laodouchi.com/archives/1093/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress默认主题（Default theme）的960px版本</title>
		<link>http://laodouchi.com/archives/1075</link>
		<comments>http://laodouchi.com/archives/1075#comments</comments>
		<pubDate>Wed, 29 Apr 2009 01:22:40 +0000</pubDate>
		<dc:creator>老豆豉</dc:creator>
				<category><![CDATA[工作相关]]></category>
		<category><![CDATA[站务公告]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://laodouchi.com/archives/1075</guid>
		<description><![CDATA[使用主题无数，最后还是觉得WordPress的默认主题够经典，简单而实用,不花哨。更换该主题后，面临最大的问题就是宽度，默认的主题采用760px，在原来800×600或者1024×768分辨率下，这个宽度是合适的，只是随着客户机显示器尺寸的发展，原来的760px就有点小气了。而目前960px宽度已经成为网页设计的主流，于是就有了更换至960px的想法。网络上也有很多default主题的修改版本，但是保持原汁原味的我没有找到，于是就自己动手修改之。修改之后的效果就是本站目前采用的样式，主要调整内容如下： 1、将原来images文件夹下的图片宽度从760px修改为960px。 2、修改images文件夹下的header-img.php文件。 将下面代码     $corners = array(     0 =&#38;gt; array ( 25, 734 ),     1 =&#38;gt; array ( 23, 736 ),     2 =&#38;gt; array ( 22, 737 ),     3 =&#38;gt; array ( 21, 738 ), &#8230; <a href="http://laodouchi.com/archives/1075">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>使用主题无数，最后还是觉得WordPress的默认主题够经典，简单而实用,不花哨。更换该主题后，面临最大的问题就是宽度，默认的主题采用760px，在原来800×600或者1024×768分辨率下，这个宽度是合适的，只是随着客户机显示器尺寸的发展，原来的760px就有点小气了。而目前960px宽度已经成为网页设计的主流，于是就有了更换至960px的想法。网络上也有很多default主题的修改版本，但是保持原汁原味的我没有找到，于是就自己动手修改之。修改之后的效果就是本站目前采用的样式，主要调整内容如下：</p>
<p>1、将原来images文件夹下的图片宽度从760px修改为960px。</p>
<p>2、修改images文件夹下的header-img.php文件。</p>
<p>将下面代码</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">    $corners = array(
    0 =&amp;gt; array ( 25, 734 ),
    1 =&amp;gt; array ( 23, 736 ),
    2 =&amp;gt; array ( 22, 737 ),
    3 =&amp;gt; array ( 21, 738 ),
    4 =&amp;gt; array ( 21, 738 ),
    177 =&amp;gt; array ( 21, 738 ),
    178 =&amp;gt; array ( 21, 738 ),
    179 =&amp;gt; array ( 22, 737 ),
    180 =&amp;gt; array ( 23, 736 ),
    181 =&amp;gt; array ( 25, 734 ),
    );</pre></div></div>

<p>改为：</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">$corners = array(
    0 =&amp;gt; array ( 25, 934 ),
    1 =&amp;gt; array ( 23, 936 ),
    2 =&amp;gt; array ( 22, 937 ),
    3 =&amp;gt; array ( 21, 938 ),
    4 =&amp;gt; array ( 21, 938 ),
    177 =&amp;gt; array ( 21, 938 ),
    178 =&amp;gt; array ( 21, 938 ),
    179 =&amp;gt; array ( 22, 937 ),
    180 =&amp;gt; array ( 23, 936 ),
    181 =&amp;gt; array ( 25, 934 ),
    );</pre></div></div>

<p>将下面代码</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">for ( $i = 0; $i &amp;lt; $h; $i++ ) {
    $x1 = 19;
    $x2 = 740;
    imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white );
}
&nbsp;
// Draw a new color thing
for ( $i = 0; $i &amp;lt; $h; $i++ ) {
    $x1 = 20;
    $x2 = 739;
    $r = ( $r2 - $r1 != 0 ) ? $r1 + ( $r2 - $r1 ) * ( $i / $h ) : $r1;
    $g = ( $g2 - $g1 != 0 ) ? $g1 + ( $g2 - $g1 ) * ( $i / $h ) : $g1;
    $b = ( $b2 - $b1 != 0 ) ? $b1 + ( $b2 - $b1 ) * ( $i / $h ) : $b1;
    $color = imagecolorallocate( $im, $r, $g, $b );
    if ( array_key_exists($i, $corners) ) {
        imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white );
        list ( $x1, $x2 ) = $corners[$i];
    }
    imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $color );
}</pre></div></div>

<p>改为：</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">for ( $i = 0; $i &amp;lt; $h; $i++ ) {
    $x1 = 19;
    $x2 = 940;
    imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white );
}
&nbsp;
// Draw a new color thing
for ( $i = 0; $i &amp;lt; $h; $i++ ) {
    $x1 = 20;
    $x2 = 939;
    $r = ( $r2 - $r1 != 0 ) ? $r1 + ( $r2 - $r1 ) * ( $i / $h ) : $r1;
    $g = ( $g2 - $g1 != 0 ) ? $g1 + ( $g2 - $g1 ) * ( $i / $h ) : $g1;
    $b = ( $b2 - $b1 != 0 ) ? $b1 + ( $b2 - $b1 ) * ( $i / $h ) : $b1;
    $color = imagecolorallocate( $im, $r, $g, $b );
    if ( array_key_exists($i, $corners) ) {
        imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white );
        list ( $x1, $x2 ) = $corners[$i];
    }
    imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $color );
}</pre></div></div>

<p>3、修改style.css，将header、footer宽度改为960px，sidebar宽度为240px,narrowcolumn宽度为600px，widecolumn宽度为600px，并适当添加自己喜欢的中文字体，标题使用微软雅黑、宋体，正文使用宋体，调整合适的字符间距及行距。</p>
<p>4、原来的主题中single页面并不调用sidebar，宽度调整后，建议大家调用。</p>
<p>将下面代码添加到&lt;?php get_footer(); ?&gt;上一行。</p>
<blockquote><p>&lt;?php get_sidebar(); ?&gt;</p></blockquote>
<p>至此，主题已经改为960px宽度，中文字体界面也友好很多，而且保持了default主题的原有风格，如果你喜欢该主题，可以在本站进行下载。</p>
<p><a href="https://www.box.net/shared/ixl2say502">点击下载</a>        <a href="http://laodouchi.com">效果见本站</a></p>
<p>update:</p>
<p>1、将页面默认字体设置为12pt。</p>
<p>2、slidebar字体设置为10pt，slidebar字体改为Vernada。</p>
<p>3、文章宽度改为580px。</p>
<p>4、small、postmeta字体设置为10pt。</p>
<p>5、修正single.php显示错误。</p>
<p>6、header增加导航菜单栏（2009.1.04）</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li>2009年06月9日 -- <a href="http://laodouchi.com/archives/1333" title="本站主题更新">本站主题更新</a> (22)</li><li>2008年10月9日 -- <a href="http://laodouchi.com/archives/548" title="再次更换主题">再次更换主题</a> (2)</li><li>2008年09月27日 -- <a href="http://laodouchi.com/archives/425" title="更换新主题Devart">更换新主题Devart</a> (1)</li><li>2009年02月19日 -- <a href="http://laodouchi.com/archives/868" title="又一次更换主题">又一次更换主题</a> (0)</li><li>2009年02月16日 -- <a href="http://laodouchi.com/archives/831" title="WordPress 2.7.1 and K2 1.0-RC7">WordPress 2.7.1 and K2 1.0-RC7</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://laodouchi.com/archives/1075/feed</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>又一次更换主题</title>
		<link>http://laodouchi.com/archives/868</link>
		<comments>http://laodouchi.com/archives/868#comments</comments>
		<pubDate>Thu, 19 Feb 2009 09:15:40 +0000</pubDate>
		<dc:creator>老豆豉</dc:creator>
				<category><![CDATA[站务公告]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://laodouchi.com/archives/868</guid>
		<description><![CDATA[上次的主题坚持了没有一个月的时间吧，这次更换没有特别的理由，就是日久生厌，本来这个博客就是用来玩的，看到漂亮的主题就按捺不住了。 这次更换的主题是小土豆很早的一款WordPress主题，名字叫Wpdesigner7主题，相信很多人对小土豆以及这款主题都非常熟悉了，就不做介绍了。 其实频繁更换主题确实有很多不好的地方，除了修改主题需要付出一定的时间外，对于网站的SEO也有影响，对于我这个小站来说，SEO无所谓，时间嘛是付出了一些，但是修改主题的过程不也是一个学习的过程吗，虽然已经很熟练了，但是每次修改主题都会发现一些新的问题，都会有所收获，这样就可以了。 主题修改完后在IE7、Chrome下1280×800分辨率测试正常，不知道其他环境下是否有问题，请大家帮忙验证，并留言反馈您的验证信息，感谢。 相关文章：2009年06月9日 -- 本站主题更新 (22)2009年04月29日 -- WordPress默认主题（Default theme）的960px版本 (31)2008年10月9日 -- 再次更换主题 (2)2008年09月27日 -- 更换新主题Devart (1)2009年06月1日 -- 用WLW发布Wordpress乱码解决方案(转自新克蘭德) (0)]]></description>
			<content:encoded><![CDATA[<p>上次的主题坚持了没有一个月的时间吧，这次更换没有特别的理由，就是日久生厌，本来这个博客就是用来玩的，看到漂亮的主题就按捺不住了。</p>
<p>这次更换的主题是<a href="http://www.wpdesigner.com/">小土豆</a>很早的一款WordPress主题，名字叫<a href="http://www.wpdesigner.com/2007/11/14/wpdesigner7-wordpress-theme/">Wpdesigner7主题</a>，相信很多人对<a href="http://www.wpdesigner.com/">小土豆</a>以及这款主题都非常熟悉了，就不做介绍了。</p>
<p>其实频繁更换主题确实有很多不好的地方，除了修改主题需要付出一定的时间外，对于网站的SEO也有影响，对于我这个小站来说，SEO无所谓，时间嘛是付出了一些，但是修改主题的过程不也是一个学习的过程吗，虽然已经很熟练了，但是每次修改主题都会发现一些新的问题，都会有所收获，这样就可以了。</p>
<p>主题修改完后在IE7、Chrome下1280×800分辨率测试正常，不知道其他环境下是否有问题，请大家帮忙验证，并留言反馈您的验证信息，感谢。</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li>2009年06月9日 -- <a href="http://laodouchi.com/archives/1333" title="本站主题更新">本站主题更新</a> (22)</li><li>2009年04月29日 -- <a href="http://laodouchi.com/archives/1075" title="WordPress默认主题（Default theme）的960px版本">WordPress默认主题（Default theme）的960px版本</a> (31)</li><li>2008年10月9日 -- <a href="http://laodouchi.com/archives/548" title="再次更换主题">再次更换主题</a> (2)</li><li>2008年09月27日 -- <a href="http://laodouchi.com/archives/425" title="更换新主题Devart">更换新主题Devart</a> (1)</li><li>2009年06月1日 -- <a href="http://laodouchi.com/archives/1212" title="用WLW发布Wordpress乱码解决方案(转自新克蘭德)">用WLW发布Wordpress乱码解决方案(转自新克蘭德)</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://laodouchi.com/archives/868/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.7.1 and K2 1.0-RC7</title>
		<link>http://laodouchi.com/archives/831</link>
		<comments>http://laodouchi.com/archives/831#comments</comments>
		<pubDate>Mon, 16 Feb 2009 03:43:06 +0000</pubDate>
		<dc:creator>老豆豉</dc:creator>
				<category><![CDATA[转贴精彩]]></category>
		<category><![CDATA[K2]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://laodouchi.com/archives/831</guid>
		<description><![CDATA[There is a bug in K2 1.0-RC7 which causes K2&#8242;s layout to break with WordPress 2.7.1. If you are using or planning to update to WordPress 2.7.1 (which you should if you&#8217;re using WordPress 2.7), you have two options: Download &#8230; <a href="http://laodouchi.com/archives/831">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There is a bug in K2 1.0-RC7 which causes K2&#8242;s layout to break with WordPress 2.7.1. If you are using or planning to update to WordPress 2.7.1 (which you should if you&#8217;re using WordPress 2.7), you have two options:</p>
<ol>
<li>Download the fixed <a href="http://kaytwo.googlecode.com/svn/tags/1.0-RC7/app/includes/info.php">info.php</a> and replace the existing <strong>k2/app/includes/info.php</strong>. </li>
<li>Upgrade to the latest <a href="http://getk2.com/nightly/">K2 nightly</a>. </li>
</ol>
<p> One more thing, there will be a 1.0-RC8 release of K2 and this release will not contain the K2 Sidebar Manager. Work is being done on a K2 Sidebar Manager to Widgets importer.</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li>2009年06月9日 -- <a href="http://laodouchi.com/archives/1333" title="本站主题更新">本站主题更新</a> (22)</li><li>2009年04月29日 -- <a href="http://laodouchi.com/archives/1075" title="WordPress默认主题（Default theme）的960px版本">WordPress默认主题（Default theme）的960px版本</a> (31)</li><li>2008年10月9日 -- <a href="http://laodouchi.com/archives/548" title="再次更换主题">再次更换主题</a> (2)</li><li>2008年09月27日 -- <a href="http://laodouchi.com/archives/425" title="更换新主题Devart">更换新主题Devart</a> (1)</li><li>2009年06月1日 -- <a href="http://laodouchi.com/archives/1212" title="用WLW发布Wordpress乱码解决方案(转自新克蘭德)">用WLW发布Wordpress乱码解决方案(转自新克蘭德)</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://laodouchi.com/archives/831/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>再次更换主题</title>
		<link>http://laodouchi.com/archives/548</link>
		<comments>http://laodouchi.com/archives/548#comments</comments>
		<pubDate>Thu, 09 Oct 2008 07:54:58 +0000</pubDate>
		<dc:creator>老豆豉</dc:creator>
				<category><![CDATA[站务公告]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://zyqlc.cn/archives/548</guid>
		<description><![CDATA[自上次更换主题不足12天，喜新厌旧的毛病又犯了，这次是因为Dropbox。Dropbox是一个提供在线存储与分享web2.0服务。其官方的blog就是采用Blue Zinfandel主题的，也就是我目前用的这一款。 相关文章：2009年06月9日 -- 本站主题更新 (22)2009年04月29日 -- WordPress默认主题（Default theme）的960px版本 (31)2008年09月27日 -- 更换新主题Devart (1)2009年02月19日 -- 又一次更换主题 (0)2009年02月16日 -- WordPress 2.7.1 and K2 1.0-RC7 (0)]]></description>
			<content:encoded><![CDATA[<p>自<a href="http://zyqlc.cn/archives/425" target="_blank">上次更换主题</a>不足12天，喜新厌旧的毛病又犯了，这次是因为<a href="http://www.getdropbox.com/home" target="_blank">Dropbox</a>。<a href="http://www.getdropbox.com/home" target="_blank">Dropbox</a>是一个提供在线存储与分享web2.0服务。其官方的blog就是采用<a href="http://www.briangardner.com/themes/blue-zinfandel-wordpress-theme.htm">Blue Zinfandel</a>主题的，也就是我目前用的这一款。</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li>2009年06月9日 -- <a href="http://laodouchi.com/archives/1333" title="本站主题更新">本站主题更新</a> (22)</li><li>2009年04月29日 -- <a href="http://laodouchi.com/archives/1075" title="WordPress默认主题（Default theme）的960px版本">WordPress默认主题（Default theme）的960px版本</a> (31)</li><li>2008年09月27日 -- <a href="http://laodouchi.com/archives/425" title="更换新主题Devart">更换新主题Devart</a> (1)</li><li>2009年02月19日 -- <a href="http://laodouchi.com/archives/868" title="又一次更换主题">又一次更换主题</a> (0)</li><li>2009年02月16日 -- <a href="http://laodouchi.com/archives/831" title="WordPress 2.7.1 and K2 1.0-RC7">WordPress 2.7.1 and K2 1.0-RC7</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://laodouchi.com/archives/548/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>小站诚招友情链接</title>
		<link>http://laodouchi.com/archives/454</link>
		<comments>http://laodouchi.com/archives/454#comments</comments>
		<pubDate>Sun, 28 Sep 2008 05:22:09 +0000</pubDate>
		<dc:creator>老豆豉</dc:creator>
				<category><![CDATA[站务公告]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[友链]]></category>

		<guid isPermaLink="false">http://zyqlc.cn/archives/454</guid>
		<description><![CDATA[小站重新开张有些日子了，以前的一些友链有些丢掉了，有些已经倒闭了，现重新召集友情链接。 友链要求： 1、独立域名、独立空间的博客站点。 2、内容原创非原创均可。 3、WordPress用户或爱好者优先。 小站采用WordPress搭建，Dreamhost合租空间由PANTAO提供，PR值为2，日IP稳定在300以上。请有意的朋友在此贴下面留言，格式如下： 网站名称： 网站地址： 网站说明： 名额限制在20个以内，先到先得，请大家踊跃参加。 相关文章：2009年06月9日 -- 本站主题更新 (22)2009年06月1日 -- 用WLW发布Wordpress乱码解决方案(转自新克蘭德) (0)2009年05月11日 -- invalid response document returned from XmlRpc server (5)2009年04月29日 -- WordPress默认主题（Default theme）的960px版本 (31)2009年02月19日 -- 又一次更换主题 (0)]]></description>
			<content:encoded><![CDATA[<p>小站重新开张有些日子了，以前的一些友链有些丢掉了，有些已经倒闭了，现重新召集友情链接。</p>
<p>友链要求：</p>
<p>1、独立域名、独立空间的博客站点。</p>
<p>2、内容原创非原创均可。</p>
<p>3、<a href="http://wordpress.org/" target="_blank">WordPress</a>用户或爱好者优先。</p>
<p>小站采用<a href="http://wordpress.org/" target="_blank">WordPress</a>搭建，Dreamhost合租空间由<a href="http://pantao.name" target="_blank">PANTAO</a>提供，PR值为2，日IP稳定在300以上。请有意的朋友在此贴下面留言，格式如下：</p>
<p>网站名称：</p>
<p>网站地址：</p>
<p>网站说明：</p>
<p>名额限制在20个以内，先到先得，请大家踊跃参加。</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li>2009年06月9日 -- <a href="http://laodouchi.com/archives/1333" title="本站主题更新">本站主题更新</a> (22)</li><li>2009年06月1日 -- <a href="http://laodouchi.com/archives/1212" title="用WLW发布Wordpress乱码解决方案(转自新克蘭德)">用WLW发布Wordpress乱码解决方案(转自新克蘭德)</a> (0)</li><li>2009年05月11日 -- <a href="http://laodouchi.com/archives/1093" title="invalid response document returned from XmlRpc server">invalid response document returned from XmlRpc server</a> (5)</li><li>2009年04月29日 -- <a href="http://laodouchi.com/archives/1075" title="WordPress默认主题（Default theme）的960px版本">WordPress默认主题（Default theme）的960px版本</a> (31)</li><li>2009年02月19日 -- <a href="http://laodouchi.com/archives/868" title="又一次更换主题">又一次更换主题</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://laodouchi.com/archives/454/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>更换新主题Devart</title>
		<link>http://laodouchi.com/archives/425</link>
		<comments>http://laodouchi.com/archives/425#comments</comments>
		<pubDate>Sat, 27 Sep 2008 03:53:52 +0000</pubDate>
		<dc:creator>老豆豉</dc:creator>
				<category><![CDATA[站务公告]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[adspress]]></category>
		<category><![CDATA[Devart]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://zyqlc.cn/archives/425</guid>
		<description><![CDATA[以前一直用AdsPress，时间久了，难免会产生视觉疲劳。AdsPress是一个不错的模板，作者是印度的一位web开发者，开发了很多优秀的wordpress主题，比如Blue Weed、Statement等免费主题。AdsPress采用两栏式，黑白配色，预置了AdSense位置与页面，可以方便的插入自己的AdSense代码。 这次更换主题，两栏式依然是我的最爱，看遍了时下比较流行的多款主题，最终确定了Devart，作者是大名鼎鼎的大胡子，整个主题颜色搭配协调、细腻，支持侧边栏、零插件要求。花了个把小时的时间对主题进行了汉化，并插入了AdSense代码，将原来侧边栏的twitter、Google Reader共享内容、Delicious书签内容放到单独的闲言碎语和推荐阅读页面中，以提高整个页面的加载速度。朋友们可以体验一下，新的主题在速度和界面友好上是不是有所改善？ 如果你也喜欢该主题，预览及下载地址在这里。 相关文章：2009年06月9日 -- 本站主题更新 (22)2009年04月29日 -- WordPress默认主题（Default theme）的960px版本 (31)2008年10月9日 -- 再次更换主题 (2)2009年02月19日 -- 又一次更换主题 (0)2009年02月16日 -- WordPress 2.7.1 and K2 1.0-RC7 (0)]]></description>
			<content:encoded><![CDATA[<p>以前一直用<a href="http://www.blogohblog.com/wordpress-theme-adspress/">AdsPress</a>，时间久了，难免会产生视觉疲劳。AdsPress是一个不错的模板，作者是印度的一位web开发者，开发了很多优秀的wordpress主题，比如<a href="http://www.blogohblog.com/wordpress-theme-blue-weed/">Blue Weed</a>、<a href="http://www.blogohblog.com/wordpress-theme-statement/">Statement</a>等免费主题。AdsPress采用两栏式，黑白配色，预置了AdSense位置与页面，可以方便的插入自己的AdSense代码。</p>
<p>这次更换主题，两栏式依然是我的最爱，看遍了时下比较流行的多款主题，最终确定了<a href="http://wordpress.org/extend/themes/devart">Devart</a>，作者是大名鼎鼎的<a href="http://deniart.ru/">大胡子</a>，整个主题颜色搭配协调、细腻，支持侧边栏、零插件要求。花了个把小时的时间对主题进行了汉化，并插入了AdSense代码，将原来侧边栏的twitter、Google Reader共享内容、Delicious书签内容放到单独的<a href="http://zyqlc.cn/twitter">闲言碎语</a>和<a href="http://zyqlc.cn/bookmark">推荐阅读</a>页面中，以提高整个页面的加载速度。朋友们可以体验一下，新的主题在速度和界面友好上是不是有所改善？</p>
<p>如果你也喜欢该主题，预览及下载地址在<a href="http://wordpress.org/extend/themes/devart">这里</a>。</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li>2009年06月9日 -- <a href="http://laodouchi.com/archives/1333" title="本站主题更新">本站主题更新</a> (22)</li><li>2009年04月29日 -- <a href="http://laodouchi.com/archives/1075" title="WordPress默认主题（Default theme）的960px版本">WordPress默认主题（Default theme）的960px版本</a> (31)</li><li>2008年10月9日 -- <a href="http://laodouchi.com/archives/548" title="再次更换主题">再次更换主题</a> (2)</li><li>2009年02月19日 -- <a href="http://laodouchi.com/archives/868" title="又一次更换主题">又一次更换主题</a> (0)</li><li>2009年02月16日 -- <a href="http://laodouchi.com/archives/831" title="WordPress 2.7.1 and K2 1.0-RC7">WordPress 2.7.1 and K2 1.0-RC7</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://laodouchi.com/archives/425/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress程序升级乱码问题解决方法</title>
		<link>http://laodouchi.com/archives/296</link>
		<comments>http://laodouchi.com/archives/296#comments</comments>
		<pubDate>Thu, 18 Sep 2008 05:53:55 +0000</pubDate>
		<dc:creator>老豆豉</dc:creator>
				<category><![CDATA[生活随笔]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[乱码]]></category>

		<guid isPermaLink="false">http://zyqlc.cn/archives/296</guid>
		<description><![CDATA[&#160; 上一次升级时曾经讨论过这个问题，但是在上一次的记录中忽视了最为关键的一步，导致这次升级也出现了不少的麻烦，这次简单记录一下： 程序覆盖后需要作如下操作，日志方可以正常显示： 修改wp-includes目录下wp-db.php文件，在 $dbuser, $dbpassword, $dbname, $dbhost) { $this-&#62;dbh = @mysql_connect($dbhost, $dbuser, $dbpassword);后面添加代码：$this-&#62;query(&#34;SET NAMES &#8216;utf8&#8242;&#34;); 这样就可以正常显示中文字体了，记于此，以备将来之需！ 相关文章：2009年06月9日 -- 本站主题更新 (22)2009年06月1日 -- 用WLW发布Wordpress乱码解决方案(转自新克蘭德) (0)2009年05月11日 -- invalid response document returned from XmlRpc server (5)2009年04月29日 -- WordPress默认主题（Default theme）的960px版本 (31)2009年02月19日 -- 又一次更换主题 (0)]]></description>
			<content:encoded><![CDATA[<p>&#160; 上一次升级时曾经讨论过这个问题，但是在上一次的<a href="http://www.zyqlc.cn/?p=355">记录</a>中忽视了最为关键的一步，导致这次升级也出现了不少的麻烦，这次简单记录一下：</p>
<blockquote><p>程序覆盖后需要作如下操作，日志方可以正常显示：</p>
<p>修改wp-includes目录下wp-db.php文件，在</p>
<p>$dbuser, $dbpassword, $dbname, $dbhost) {     <br />$this-&gt;dbh = @mysql_connect($dbhost, $dbuser, $dbpassword);后面添加代码：$this-&gt;query(&quot;SET NAMES &#8216;utf8&#8242;&quot;);</p>
</blockquote>
<p>这样就可以正常显示中文字体了，记于此，以备将来之需！</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li>2009年06月9日 -- <a href="http://laodouchi.com/archives/1333" title="本站主题更新">本站主题更新</a> (22)</li><li>2009年06月1日 -- <a href="http://laodouchi.com/archives/1212" title="用WLW发布Wordpress乱码解决方案(转自新克蘭德)">用WLW发布Wordpress乱码解决方案(转自新克蘭德)</a> (0)</li><li>2009年05月11日 -- <a href="http://laodouchi.com/archives/1093" title="invalid response document returned from XmlRpc server">invalid response document returned from XmlRpc server</a> (5)</li><li>2009年04月29日 -- <a href="http://laodouchi.com/archives/1075" title="WordPress默认主题（Default theme）的960px版本">WordPress默认主题（Default theme）的960px版本</a> (31)</li><li>2009年02月19日 -- <a href="http://laodouchi.com/archives/868" title="又一次更换主题">又一次更换主题</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://laodouchi.com/archives/296/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
