<?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>haohtml&#039;s blog &#187; wordpress</title>
	<atom:link href="http://blog.haohtml.com/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.haohtml.com</link>
	<description>haohtml&#039;s life and works</description>
	<lastBuildDate>Sun, 05 Feb 2012 12:34:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</title>
		<link>http://blog.haohtml.com/archives/11237</link>
		<comments>http://blog.haohtml.com/archives/11237#comments</comments>
		<pubDate>Sat, 03 Sep 2011 13:56:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=11237</guid>
		<description><![CDATA[WordPress 高亮代码的插件，在后台管理界面-插件-添加新插件中搜索 highlighter 就可以找到Syntax Highlighter and Code Prettifier Plugin for WordPress 它可以支持以下的语言： Bash/shell C# C++ CSS Delphi Diff Groovy JavaScript Java Perl PHP Plain Text Python Ruby Scala SQL Visual Basic XML 使用方法： 觉得有点不足的是在可视化模式下不能直接通过按钮添加， 要加入代码时切换到HTML编辑模式下，加入： &#60;pre class="brush:[code-alias]"&#62; //..your code &#60;/pre&#62; ========================= HTML代码: &#60;pre class="brush:[php]"&#62; &#38;lt;?php $sitename = '网页制作技术网'; $url = 'http://www.haohtml.com'; echo $sitename . ':' [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Nginx下WordPress的永久链接实现" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2685&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Nginx下WordPress的永久链接实现</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>WordPress 高亮代码的插件，在后台管理界面-插件-添加新插件中搜索 highlighter 就可以找到Syntax Highlighter and Code Prettifier Plugin for WordPress<br />
它可以支持以下的语言：</p>
<ul>
<li>Bash/shell</li>
<li>C#</li>
<li>C++</li>
<li>CSS</li>
<li>Delphi</li>
<li>Diff</li>
<li>Groovy</li>
<li>JavaScript</li>
<li>Java</li>
<li>Perl</li>
<li>PHP</li>
<li>Plain Text</li>
<li>Python</li>
<li>Ruby</li>
<li>Scala</li>
<li>SQL</li>
<li>Visual Basic</li>
<li>XML</li>
</ul>
<p>使用方法：<br />
觉得有点不足的是在可视化模式下不能直接通过按钮添加，<br />
要加入代码时切换到HTML编辑模式下，加入：</p>
<p>&lt;pre class="brush:[code-alias]"&gt;</p>
<p>//..your code</p>
<p>&lt;/pre&gt;</p>
<p>=========================</p>
<p>HTML代码:</p>
<blockquote>
<pre>&lt;pre class="brush:[php]"&gt;
&amp;lt;?php
$sitename = '网页制作技术网';
$url = 'http://www.haohtml.com';
echo $sitename . ':' . $url;
?&amp;gt;
&lt;/pre&gt;</pre>
</blockquote>
<p><span id="more-11237"></span>PHP效果：</p>
<pre class="brush:[php]">&lt;?php
$sitename = '网页制作技术网';
$url = 'http://www.haohtml.com';
echo $sitename . ':' . $url;
?&gt;</pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Nginx下WordPress的永久链接实现" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2685&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Nginx下WordPress的永久链接实现</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/11237/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Super Image Plugin</title>
		<link>http://blog.haohtml.com/archives/8264</link>
		<comments>http://blog.haohtml.com/archives/8264#comments</comments>
		<pubDate>Wed, 30 Mar 2011 03:26:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=8264</guid>
		<description><![CDATA[介绍 本插件能够实现 WordPress 上传图片自动增加水印 可以添加图片水印和文字水印两种类型 可以对已经存在的图片进行批处理添加水印 可以对文章内容中的外部引用图片自动下载并添加水印 另外： 本插件具有图片备份功能，即在图片添加前对图片进行备份，可以随时恢复到没有添加水印前的状态 添加了具有在线管理图片的功能，能够批量删除已经存在的图片 文字水印和图片水印可以进行位置精确操作 可以根据图片大小设置判断是否给图片添加水印 &#160; 简单安装 注解：本安装只能实现博客内容中包括的图片添加水印，即只有博客内容中的 &#60;img src=”"&#62;标签引用的图片才会被添加水印，如果你上传了图片但是博客中使用了缩略图，那么只有缩略图添加水印！ 下载zip文件，解压后把文件夹放入 wp-content/plugins 目录，然后在 Plugins 页面激活该插件。 在 Setting-&#62;Super Image Plugin -&#62; ContentImageDown 菜单下的两个设置均设置为 Yes。 高级安装 注解：按照本方法安装能够实现上传图片源文件和缩略图均添加水印。 首先按照简单安装，第一步操作完毕然后进行如下操作： 打开/wordpress/wp-admin/includes/media.php查找（大约第108行） // Save the data $id = wp_insert_attachment($attachment, $file, $post_parent); 在这段代码上面添加如下代码： // INSERT HERE!!! if (function_exists("IM_mark")) { IM_mark($file,$op="overwrite"); } 如果你要在你上传的图片缩略图和中型图片添加水印请进行如下操作，要求版本Wordpress v2.5.1，打开/wordpress/wp-includes/media.php查找如下代码（大约第230行） imagedestroy( $newimage ); [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<h2>介绍</h2>
<ul>
<li>本插件能够实现 WordPress 上传图片自动增加水印</li>
<li>可以添加图片水印和文字水印两种类型</li>
<li>可以对已经存在的图片进行批处理添加水印</li>
<li>可以对文章内容中的外部引用图片自动下载并添加水印</li>
</ul>
<p>另外：</p>
<ul>
<li>本插件具有图片备份功能，即在图片添加前对图片进行备份，可以随时恢复到没有添加水印前的状态</li>
<li>添加了具有在线管理图片的功能，能够批量删除已经存在的图片</li>
<li>文字水印和图片水印可以进行位置精确操作</li>
<li>可以根据图片大小设置判断是否给图片添加水印</li>
</ul>
<p>&nbsp;</p>
<h2><a name="toc-2"></a>简单安装</h2>
<p>注解：本安装只能实现博客内容中包括的图片添加水印，即只有博客内容中的 &lt;img src=”"&gt;标签引用的图片才会被添加水印，如果你上传了图片但是博客中使用了缩略图，那么只有缩略图添加水印！<span id="more-8264"></span></p>
<ul>
<li>下载zip文件，解压后把文件夹放入 <code>wp-content/plugins</code> 目录，然后在 Plugins 页面激活该插件。</li>
<li>在 <code>Setting-&gt;Super Image Plugin -&gt; ContentImageDown</code> 菜单下的两个设置均设置为 Yes。</li>
</ul>
<h2><a name="toc-3"></a>高级安装</h2>
<p>注解：按照本方法安装能够实现上传图片源文件和缩略图均添加水印。</p>
<p>首先按照<strong>简单安装</strong>，第一步操作完毕然后进行如下操作：</p>
<p>打开/wordpress/wp-admin/includes/media.php查找（大约第108行）</p>
<pre> // Save the data
$id = wp_insert_attachment($attachment, $file, $post_parent);</pre>
<p>在这段代码上面添加如下代码：</p>
<pre>// INSERT HERE!!!
if (function_exists("IM_mark"))
{
IM_mark($file,$op="overwrite");
}</pre>
<p>如果你要在你上传的图片缩略图和中型图片添加水印请进行如下操作，要求版本Wordpress v2.5.1，打开/wordpress/wp-includes/media.php查找如下代码（大约第230行）</p>
<pre>imagedestroy( $newimage );</pre>
<p>在这段代码上面添加如下代码：</p>
<pre>// INSERT HERE!!!
if (function_exists("IM_mark"))
{
IM_mark($destfilename,$op="overwrite");
}</pre>
<h2><a name="toc-4"></a>注意</h2>
<ul>
<li>安装完毕后替换mark.png为你自己的水印图片</li>
<li>fonts目录中的字体你可以自己替换，使用windows的ttf字体都可以</li>
<li>如果你使用文字水印而且使用中文，请选择字体chinese.ttf ，否会出现乱码</li>
</ul>
<p>插件作者：<a href="http://www.pkphp.com/" target="_blank">askie</a><br />
插件下载：<a href="http://wordpress.org/extend/plugins/super-image-plugin/" target="_blank">Super Image Plugin</a></p>
<p>插件下载地址:<a href="http://www.pkphp.com/2011/02/12/askie-all-wordpress-plugins/">http://www.pkphp.com/2011/02/12/askie-all-wordpress-plugins/</a></p>
<p>&nbsp;</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/8264/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>6个最佳房地产 WordPress 主题</title>
		<link>http://blog.haohtml.com/archives/6752</link>
		<comments>http://blog.haohtml.com/archives/6752#comments</comments>
		<pubDate>Mon, 22 Nov 2010 13:19:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=6752</guid>
		<description><![CDATA[WordPress 并不是一个简单的博客程序，它能干的事情非常多。如果你是一个地产中介，想通过互联网出售房子，那么你也可以通过 WordPress 来实现，是的，选择一个适合房地产的 WordPress 主题，就会让你事半功倍，并且现在网络上有非常多的和房地产相关的 WordPress 主题，并且还集成了房地产相关的功能（如位置，价格，大小，几房几厅，经纪人，代理等）。所以今天就给大家介绍下5个非常不错的房地产相关的 WordPress 主题。 本文翻译自 14 Real Estate WordPress Themes，原文有 14 个房地产相关的 WordPress 主题，这里节选其中最好的 6 个。 1. Estate (by Woothemes) Estate 是一个非常强大的，但是管理非常方便的适合房地产中介 WordPress 主题，这个主题使用了 WordPress 3.0 开始的自定义日志类型和自定义分类模式这些高级功能，使得在 WordPress 后台能够有个真正的“房地产”的功能，并且灵活的页面模板高级搜索功能，以及集成了 Google 地图，灵活的房地产图片管理，你会发现这款主题是非常值得取用的。 Estate 详细介绍 2. Real Estate Theme (from templatic) Real Estate Theme 是有史以来最好的房地产相关的 WordPress 主题，它拥有让你创建房地产网站的所有功能，并且该主题设计非常典雅，结构和布局非常专业。 Real Estate Theme 详细介绍 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PJBlog及LBS 到 WordPress 的新版数据转换程序" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F301&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PJBlog及LBS 到 WordPress 的新版数据转换程序</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>WordPress 并不是一个简单的博客程序，它能干的事情非常多。如果你是一个地产中介，想通过互联网出售房子，那么你也可以通过  WordPress 来实现，是的，选择一个适合房地产的 WordPress 主题，就会让你事半功倍，并且现在网络上有非常多的和房地产相关的  WordPress  主题，并且还集成了房地产相关的功能（如位置，价格，大小，几房几厅，经纪人，代理等）。所以今天就给大家介绍下5个非常不错的房地产相关的  WordPress 主题。</p>
<p>本文翻译自 <a title="Permalink to 14 Real Estate WordPress Themes" rel="bookmark" href="http://theme10.com/best-real-estate-wordpress-themes/" target="_blank">14   Real Estate WordPress Themes</a>，原文有 14 个房地产相关的 WordPress 主题，这里节选其中最好的 6 个。<span id="more-6752"></span></p>
<h2><a name="toc-1"></a>1. Estate <small>(by <a href="http://www.woothemes.com/amember/go.php?r=1023&amp;i=l1" target="_blank">Woothemes</a>)</small></h2>
<p><a href="http://www.woothemes.com/amember/go.php?r=1023&amp;i=l80" target="_blank">Estate </a> 是一个非常强大的，但是管理非常方便的适合房地产中介 WordPress 主题，这个主题使用了 WordPress 3.0  开始的自定义日志类型和自定义分类模式这些高级功能，使得在 WordPress  后台能够有个真正的“房地产”的功能，并且灵活的页面模板高级搜索功能，以及集成了 Google  地图，灵活的房地产图片管理，你会发现这款主题是非常值得取用的。</p>
<p><a href="http://www.woothemes.com/amember/go.php?r=1023&amp;i=l80" target="_blank"><img src="http://theme10.com/wp-content/uploads/theme10/woothemes-estate.jpg" alt="Woothemes Estate" /></a><br />
<a href="http://www.woothemes.com/amember/go.php?r=1023&amp;i=l80" target="_blank">Estate 详细介绍</a></p>
<h2><a name="toc-2"></a>2. Real Estate Theme <small>(from <a href="http://templatic.com/members/go.php?r=6153&amp;i=l0" target="_blank">templatic</a>)</small></h2>
<p><a href="http://templatic.com/members/go.php?r=6153&amp;i=l35" target="_blank">Real Estate Theme</a> 是有史以来最好的房地产相关的 WordPress 主题，它拥有让你创建房地产网站的所有功能，并且该主题设计非常典雅，结构和布局非常专业。</p>
<p><a href="http://templatic.com/members/go.php?r=6153&amp;i=l35" target="_blank"><img src="http://fairyfish.net/wp-content/plugins/all-in-one/images/grey.gif" alt="Real Estate Theme " /></a><br />
<a href="http://templatic.com/members/go.php?r=6153&amp;i=l35" target="_blank">Real Estate Theme 详细介绍</a></p>
<h2><a name="toc-3"></a>3. AgentPress Theme <small>(from <a href="https://www.e-junkie.com/ecom/gb.php?cl=10214&amp;c=ib&amp;aff=30098">StudioPress.</a>)</small></h2>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=643385&amp;c=ib&amp;aff=30098&amp;cl=10214">AgentPress theme</a> 是那些想在互联网上进行营销，打败竞争对手的房地产代理的最佳选择，它有专业的设计和经过了全面的优化。</p>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=643385&amp;c=ib&amp;aff=30098&amp;cl=10214"><img src="http://theme10.com/wp-content/uploads/theme10/agentpress.jpg" alt="Real Estate Theme " /></a><br />
<a href="https://www.e-junkie.com/ecom/gb.php?ii=643385&amp;c=ib&amp;aff=30098&amp;cl=10214">AgentPress theme  详细介绍</a></p>
<h2><a name="toc-4"></a>4. Main Street Real Estate <small>(from <a href="https://www.e-junkie.com/ecom/gb.php?cl=48418&amp;c=ib&amp;aff=30098">Gorilla Themes)</a></small></h2>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=589678&amp;c=ib&amp;aff=30098&amp;cl=48418">Main Street</a> 是一个房地产相关的主题，这个主题让你非常容易添加，修改，删除房产信息，并且它还提供 8 种颜色以及非常专业的布局。</p>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=589678&amp;c=ib&amp;aff=30098&amp;cl=48418"><img src="http://theme10.com/wp-content/uploads/theme10/mainstreet.jpg" alt="Mainstreet Real Estate Theme " /></a><br />
<a href="https://www.e-junkie.com/ecom/gb.php?ii=589678&amp;c=ib&amp;aff=30098&amp;cl=48418">Main Street  详细介绍</a></p>
<h2><a name="toc-5"></a>5. deCondo <small>(from <a href="https://www.e-junkie.com/ecom/gb.php?cl=66253&amp;c=ib&amp;aff=30098">ThemeShift</a>)</small></h2>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=597286&amp;c=ib&amp;aff=30098&amp;cl=66253">deCondo</a> 是一个简洁典雅的 WordPress 房地产主题，搜索界面，多代理支持等许多功能让你非常容易建立你自己的房地产网站。</p>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=261509&amp;c=ib&amp;aff=30098&amp;cl=66253"><img src="http://theme10.com/wp-content/uploads/theme10/decasa.jpg" alt="deCasa" /></a><br />
<a href="https://www.e-junkie.com/ecom/gb.php?ii=597286&amp;c=ib&amp;aff=30098&amp;cl=66253">deCondo  详细介绍</a></p>
<h2><a name="toc-6"></a>6. Elegant Real Estate</h2>
<p><a href="http://themeforest.net/item/elegant-real-estate/74277?ref=denishua" target="_blank">Elegant Real Estate</a> 这个 WordPress 主题是专门为房地产网站而建的，它有房地产过滤功能，图片幻灯片，以及让你定制主题的后台管理选项。</p>
<p><a href="http://themeforest.net/item/elegant-real-estate/74277?ref=denishua" target="_blank"><img src="http://fairyfish.net/wp-content/plugins/all-in-one/images/grey.gif" alt="Broker Real Estate Theme " /></a><br />
<a href="http://themeforest.net/item/elegant-real-estate/74277?ref=denishua" target="_blank">Elegant Real Estate  详细介绍</a></p>
<p>当然这些主题都是英文版，中文情况下可能会有一些不适应的情况，如果你想制作一款针对中文市场的房地产 WordPress 主题，那么你也可以<a href="http://wpjam.com/contact" target="_blank">联系我们</a>。</p>
<p>本文翻译自 <a title="Permalink to 14 Real Estate WordPress Themes" rel="bookmark" href="http://theme10.com/best-real-estate-wordpress-themes/" target="_blank">14   Real Estate WordPress Themes</a>，原文有 14 个房地产相关的 WordPress 主题，这里节选其中最好的 6 个。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PJBlog及LBS 到 WordPress 的新版数据转换程序" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F301&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PJBlog及LBS 到 WordPress 的新版数据转换程序</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/6752/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx常用Rewrite(伪静态规则)</title>
		<link>http://blog.haohtml.com/archives/5634</link>
		<comments>http://blog.haohtml.com/archives/5634#comments</comments>
		<pubDate>Thu, 09 Sep 2010 02:09:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[服务器类]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[ecshop]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[phpcms]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[sablog]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=5634</guid>
		<description><![CDATA[信现在大部分用Linux VPS的朋友都在使用这个迅速传播的Nginx，今天就整理一下最常见的PHP程序的Rewrite(伪静态规则)。 WordPress： location / { index index.html index.php; if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } } PHPCMS： location / { ###以下为PHPCMS 伪静态化rewrite规则 rewrite ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&#38;page=$3; rewrite ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$2&#38;page=$3; rewrite ^(.*)show-([0-9]+)\.html$ $1/show.php?specialid=$2; ####以下为PHPWind 伪静态化rewrite规则 rewrite ^(.*)-htm-(.*)$ $1.php?$2 last; rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="nginx rewrite规则和参考" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5631&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx rewrite规则和参考</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="nginx中stub_status模块的功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6915&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4023762.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx中stub_status模块的功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="apache htaccess 转换成 nginx rewrite rule" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F1224&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">apache htaccess 转换成 nginx rewrite rule</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="nginx下UCH和DZ的rewrite规则" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2303&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx下UCH和DZ的rewrite规则</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>信现在大部分用Linux VPS的朋友都在使用这个迅速传播的<a href="http://nginx.me/" target="_blank">Nginx</a>，今天就整理一下最常见的PHP程序的Rewrite(伪静态规则)。</p>
<p>WordPress：</p>
<p>location / {<br />
index index.html index.php;<br />
if (-f $request_filename/index.html){<br />
rewrite (.*) $1/index.html break;<br />
}<br />
if (-f $request_filename/index.php){<br />
rewrite (.*) $1/index.php;<br />
}<br />
if (!-f $request_filename){<br />
rewrite (.*) /index.php;<br />
}<br />
}</p>
<p><span id="more-5634"></span>PHPCMS：</p>
<p>location / {<br />
###以下为PHPCMS 伪静态化rewrite规则<br />
rewrite ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&amp;page=$3;<br />
rewrite ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$2&amp;page=$3;<br />
rewrite ^(.*)show-([0-9]+)\.html$ $1/show.php?specialid=$2;</p>
<p>####以下为PHPWind 伪静态化rewrite规则<br />
rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;<br />
rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last;<br />
}</p>
<p>ECSHOP：</p>
<p>if (!-e $request_filename)<br />
{<br />
rewrite "^/index\.html" /index.php last;<br />
rewrite "^/category$" /index.php last;<br />
rewrite "^/feed-c([0-9]+)\.xml$” /feed.php?cat=$1 last;<br />
rewrite “^/feed-b([0-9]+)\.xml$” /feed.php?brand=$1 last;<br />
rewrite “^/feed\.xml$” /feed.php last;<br />
rewrite “^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /category.php?id=$1&amp;brand=$2&amp;price_min=$3&amp;price_max=$4&amp;filter_attr=$5&amp;page=$6&amp;sort=$7&amp;order=$8 last;<br />
rewrite “^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$” /category.php?id=$1&amp;brand=$2&amp;price_min=$3&amp;price_max=$4&amp;filter_attr=$5 last;<br />
rewrite “^/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /category.php?id=$1&amp;brand=$2&amp;page=$3&amp;sort=$4&amp;order=$5 last;<br />
rewrite “^/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$” /category.php?id=$1&amp;brand=$2&amp;page=$3 last;<br />
rewrite “^/category-([0-9]+)-b([0-9]+)(.*)\.html$” /category.php?id=$1&amp;brand=$2 last;<br />
rewrite “^/category-([0-9]+)(.*)\.html$” /category.php?id=$1 last;<br />
rewrite “^/goods-([0-9]+)(.*)\.html” /goods.php?id=$1 last;<br />
rewrite “^/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /article_cat.php?id=$1&amp;page=$2&amp;sort=$3&amp;order=$4 last;<br />
rewrite “^/article_cat-([0-9]+)-([0-9]+)(.*)\.html$” /article_cat.php?id=$1&amp;page=$2 last;<br />
rewrite “^/article_cat-([0-9]+)(.*)\.html$” /article_cat.php?id=$1 last;<br />
rewrite “^/article-([0-9]+)(.*)\.html$” /article.php?id=$1 last;<br />
rewrite “^/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html” /brand.php?id=$1&amp;cat=$2&amp;page=$3&amp;sort=$4&amp;order=$5 last;<br />
rewrite “^/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html” /brand.php?id=$1&amp;cat=$2&amp;page=$3 last;<br />
rewrite “^/brand-([0-9]+)-c([0-9]+)(.*)\.html” /brand.php?id=$1&amp;cat=$2 last;<br />
rewrite “^/brand-([0-9]+)(.*)\.html” /brand.php?id=$1 last;<br />
rewrite “^/tag-(.*)\.html” /search.php?keywords=$1 last;<br />
rewrite “^/snatch-([0-9]+)\.html$” /snatch.php?id=$1 last;<br />
rewrite “^/group_buy-([0-9]+)\.html$” /group_buy.php?act=view&amp;id=$1 last;<br />
rewrite “^/auction-([0-9]+)\.html$” /auction.php?act=view&amp;id=$1 last;<br />
rewrite “^/exchange-id([0-9]+)(.*)\.html$” /exchange.php?id=$1&amp;act=view last;<br />
rewrite “^/exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /exchange.php?cat_id=$1&amp;integral_min=$2&amp;integral_max=$3&amp;page=$4&amp;sort=$5&amp;order=$6 last;<br />
rewrite ^/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /exchange.php?cat_id=$1&amp;page=$2&amp;sort=$3&amp;order=$4 last;<br />
rewrite “^/exchange-([0-9]+)-([0-9]+)(.*)\.html$” /exchange.php?cat_id=$1&amp;page=$2 last;<br />
rewrite “^/exchange-([0-9]+)(.*)\.html$” /exchange.php?cat_id=$1 last;<br />
}</p>
<p>SHOPEX:</p>
<p>location / {<br />
if (!-e $request_filename) {<br />
rewrite ^/(.+\.(html|xml|json|htm|php|jsp|asp|shtml))$ /index.php?$1 last;<br />
}<br />
}</p>
<p>SaBlog 2.0：(感谢<a href="http://blog.is36.cn/" target="_blank">追寻36[正冰]博客</a>提供)</p>
<p># 只带月份的归档<br />
rewrite "^/date/([0-9]{6})/?([0-9]+)?/?$" /index.php?action=article&amp;setdate=$1&amp;page=$2 last;<br />
# 无分类翻页<br />
rewrite ^/page/([0-9]+)?/?$ /index.php?action=article&amp;page=$1 last;<br />
# 分类<br />
rewrite ^/category/([0-9]+)/?([0-9]+)?/?$ /index.php?action=article&amp;cid=$1&amp;page=$2 last;<br />
rewrite ^/category/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&amp;curl=$1&amp;page=$2 last;<br />
# 归档、高级搜索<br />
rewrite ^/(archives|search|article|links)/?$ /index.php?action=$1 last;<br />
# 全部评论、标签列表、引用列表 带分页<br />
rewrite ^/(comments|tagslist|trackbacks|article)/?([0-9]+)?/?$ /index.php?action=$1&amp;page=$2 last;<br />
# tags<br />
rewrite ^/tag/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&amp;item=$1&amp;page=$2 last;<br />
# 文章<br />
rewrite ^/archives/([0-9]+)/?([0-9]+)?/?$ /index.php?action=show&amp;id=$1&amp;page=$2 last;<br />
# RSS rewrite ^/rss/([0-9]+)?/?$ /rss.php?cid=$1 last;<br />
rewrite ^/rss/([^/]+)/?$ /rss.php?url=$1 last;<br />
# 用户 rewrite ^/uid/([0-9]+)/?([0-9]+)?/?$ /index.php?action=article&amp;uid=$1&amp;page=$2 last;<br />
rewrite ^/user/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&amp;user=$1&amp;page=$2 last;<br />
# 地图文件<br />
rewrite sitemap.xml sitemap.php last;<br />
# 自定义链接<br />
rewrite ^(.*)/([0-9a-zA-Z\-\_]+)/?([0-9]+)?/?$ $1/index.php?action=show&amp;alias=$2&amp;page=$3 last;</p>
<p>Discuz 7：</p>
<p>rewrite ^/archiver/((fid|tid)-[\w\-]+\.html)$ /archiver/index.php?$1 last;<br />
rewrite ^/forum-([0-9]+)-([0-9]+)\.html$ /forumdisplay.php?fid=$1&amp;page=$2 last;<br />
rewrite ^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /viewthread.php?tid=$1&amp;extra=page\%3D$3&amp;page=$2 last;<br />
rewrite ^/space-(username|uid)-(.+)\.html$ /space.php?$1=$2 last;<br />
rewrite ^/tag-(.+)\.html$ /tag.php?name=$1 last;</p>
<p>Typecho：</p>
<p>location / {<br />
index index.html index.php;<br />
if (-f $request_filename/index.html){<br />
rewrite (.*) $1/index.html break;<br />
}<br />
if (-f $request_filename/index.php){<br />
rewrite (.*) $1/index.php;<br />
}<br />
if (!-f $request_filename){<br />
rewrite (.*) /index.php;<br />
}<br />
}</p>
<p>今天暂时整理这些，以后不定期更新。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="nginx rewrite规则和参考" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5631&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx rewrite规则和参考</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="nginx中stub_status模块的功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6915&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4023762.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx中stub_status模块的功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="apache htaccess 转换成 nginx rewrite rule" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F1224&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">apache htaccess 转换成 nginx rewrite rule</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="nginx下UCH和DZ的rewrite规则" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2303&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx下UCH和DZ的rewrite规则</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/5634/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP:模板手册</title>
		<link>http://blog.haohtml.com/archives/3140</link>
		<comments>http://blog.haohtml.com/archives/3140#comments</comments>
		<pubDate>Wed, 31 Mar 2010 04:52:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=3140</guid>
		<description><![CDATA[WordPress基本模板文件

访问者访问博客时，wordpress首先就会去找你模板目录里的这个文件：home.php，如果没有，就用index.php这个模板文件来显 示首页。

如果访问者点击你博客里名为（abc）的这个分类，url会连接到：http://yourwp/archives/category/abc，如 果这个分类的ID是6的话，wordpress首先就会去找这个模板文件：category-6.php，并用它来显示这个分类，如果category- 6.php不存在，wordpress就会去找category.php，如果也不存在，就会去找archive.php，如果还不存在，最终就会使用 index.php来显示这个分类。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F3140">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F3140">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F3140">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F3140">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<h3>WordPress基本模板文件</h3>
<p>访问者访问博客时，wordpress首先就会去找你模板目录里的这个文件：home.php，如果没有，就用index.php这个模板文件来显 示首页。</p>
<p>如果访问者点击你博客里名为（abc）的这个分类，url会连接到：http://yourwp/archives/category/abc，如   果这个分类的ID是6的话，wordpress首先就会去找这个模板文件：category-6.php，并用它来显示这个分类，如果category-  6.php不存在，wordpress就会去找category.php，如果也不存在，就会去找archive.php，如果还不存在，最终就会使用  index.php来显示这个分类。</p>
<p>在一位国外bloger那里看到的一张图可以很好的解释WordPress的Themes的工作层次机制？<span id="more-3140"></span></p>
<p>home.php （显示首页）<br />
index.php （最基本、必不可少的文件，用来显示任何内容）<br />
single.php （显示单篇日志 ）<br />
页面名称.php （显示指定名称的页面）<br />
page.php （显示页面）<br />
分类ID.php （显示指定ID的分类）<br />
category.php （显示分类）<br />
archive.php （显示某一条件下的归档）<br />
archives.php （显示所有归档）<br />
author.php （显示作者资料）<br />
date.php （显示按日期归档的页）<br />
search.php （显示搜索页）<br />
searchform.php （显示搜索表单，与search.php不同的是不会用来直接处理用户的请求，而是在网页内被调用来显示表单元素 ）<br />
404.php （显示错误页）<br />
attachment.php （显示附件）<br />
comments.php （显示评论与表单元素）<br />
comments-popup.php （显示弹出窗口式评论）<br />
links.php （显示友情链接）<br />
sidebar.php （显示侧边栏）<br />
header.php （页眉）<br />
footer.php （页脚）<br />
functions.php  （功能、参数等配置文件，用来协助在后台对模板进行设置，也有部分插件需要此文件的支持。虽然也涉及输出显示部分，但和上面那些只要会CSS/XHTML 就可以编写的文件不一样，他更需要PHP编程技术）</p>
<h3>基本条件判断Tag</h3>
<ul>
<li><code><span>is_home()</span></code> : 是否为主页</li>
<li><code><span>is_single()</span></code> : 当前是否是一个具体文章全部内容页(Post)</li>
<li><code><span>is_page()</span></code> : 是否为内容页(Page)</li>
<li><code><span>is_category()</span></code> : 是否为Category/Archive页</li>
<li><code><span>is_tag()</span></code> : 是否为Tag存档页</li>
<li><code><span>is_date()</span></code> : 是否为指定日期存档页</li>
<li><code><span>is_year()</span></code> : 是否为指定年份存档页</li>
<li><code><span>is_month()</span></code> : 是否为指定月份存档页</li>
<li><code><span>is_day()</span></code> : 是否为指定日存档页</li>
<li><code><span>is_time()</span></code> : 是否为指定时间存档页</li>
<li><code><span>is_archive()</span></code> : 是否为存档页</li>
<li><code><span>is_search()</span></code> : 是否为搜索结果页</li>
<li><code><span>is_404()</span></code> : 是否为 “HTTP 404: Not Found” 错误页</li>
<li><code><span>is_paged()</span></code> : 主页/Category/Archive页是否以多页显示</li>
</ul>
<h3>Header部分常用到的PHP函数</h3>
<ul>
<li><strong>&lt;?php bloginfo(’name’); ?&gt; : 博客名称(Title)</strong></li>
<li><strong>&lt;?php bloginfo(’stylesheet_url’); ?&gt; :  CSS文件路径</strong></li>
<li><strong>&lt;?php bloginfo(’pingback_url’); ?&gt; : PingBack  Url</strong></li>
<li><strong>&lt;?php bloginfo(’template_url’); ?&gt; : 模板文件路径</strong></li>
<li><strong>&lt;?php bloginfo(’version’); ?&gt; : WordPress版本</strong></li>
<li><strong>&lt;?php bloginfo(’atom_url’); ?&gt; : Atom Url</strong></li>
<li><strong>&lt;?php bloginfo(’rss2_url’); ?&gt; : RSS 2.o Url</strong></li>
<li><strong>&lt;?php bloginfo(’url’); ?&gt; : 博客 Url</strong></li>
<li><strong>&lt;?php bloginfo(’html_type’); ?&gt; : 博客网页Html类型</strong></li>
<li><strong>&lt;?php bloginfo(’charset’); ?&gt; : 博客网页编码</strong></li>
<li><strong>&lt;?php bloginfo(’description’); ?&gt; : 博客描述</strong></li>
<li><strong>&lt;?php wp_title(); ?&gt; : 特定内容页(Post/Page)的标题</strong></li>
</ul>
<h3>模板常用的PHP函数及命令</h3>
<ul>
<li><strong>&lt;?php get_header(); ?&gt;</strong> : 调用Header模板</li>
<li><strong>&lt;?php get_sidebar(); ?&gt;</strong> : 调用Sidebar模板</li>
<li><strong>&lt;?php get_footer(); ?&gt;</strong> : 调用Footer模板</li>
<li><strong>&lt;?php the_content(); ?&gt;</strong> : 显示内容(Post/Page)</li>
<li><strong>&lt;?php if(have_posts()) : ?&gt;</strong> : 检查是否存在Post/Page</li>
<li><strong>&lt;?php while(have_posts()) : the_post(); ?&gt;</strong> :  如果存在Post/Page则予以显示</li>
<li><strong>&lt;?php endwhile; ?&gt;</strong> : While 结束</li>
<li><strong>&lt;?php endif; ?&gt;</strong> : If 结束</li>
<li><strong>&lt;?php the_time(’字符串’) ?&gt;</strong> :  显示时间，时间格式由“字符串”参数决定，具体参考<a href="http://php.net/date">PHP 手册</a></li>
<li><strong>&lt;?php comments_popup_link(); ?&gt;</strong> :  正文中的留言链接。如果使用 comments_popup_script() ，则留言会在新窗口中打开，反之，则在当前窗口打开</li>
<li><strong>&lt;?php the_title(); ?&gt;</strong> : 内容页(Post/Page)标题</li>
<li><strong>&lt;?php the_permalink() ?&gt;</strong> : 内容页(Post/Page) Url</li>
<li><strong>&lt;?php the_category(’, ‘) ?&gt;</strong> :  特定内容页(Post/Page)所属Category</li>
<li><strong>&lt;?php the_author(); ?&gt;</strong> : 作者</li>
<li><strong>&lt;?php the_ID(); ?&gt;</strong> : 特定内容页(Post/Page) ID</li>
<li><strong>&lt;?php edit_post_link(); ?&gt;</strong> :  如果用户已登录并具有权限，显示编辑链接</li>
<li><strong>&lt;?php get_links_list(); ?&gt;</strong> : 显示Blogroll中的链接</li>
<li><strong>&lt;?php comments_template(); ?&gt;</strong> : 调用留言/回复模板</li>
<li><strong>&lt;?php wp_list_pages(); ?&gt;</strong> : 显示Page列表</li>
<li><strong>&lt;?php wp_list_categories(); ?&gt;</strong> :  显示Categories列表</li>
<li><strong>&lt;?php next_post_link(’ %link ‘); ?&gt;</strong> : 下一篇文章链接</li>
<li><strong>&lt;?php previous_post_link(’%link’); ?&gt;</strong> :  上一篇文章链接</li>
<li><strong>&lt;?php get_calendar(); ?&gt;</strong> : 日历</li>
<li><strong>&lt;?php wp_get_archives() ?&gt;</strong> : 显示内容存档</li>
<li><strong>&lt;?php posts_nav_link(); ?&gt;</strong> : 导航，显示上一篇/下一篇文章链接</li>
<li><strong>&lt;?php include(TEMPLATEPATH . ‘/文件名’); ?&gt;</strong> :  嵌入其他文件，可为定制的模板或其他类型文件</li>
</ul>
<h3>与模板相关的其他函数</h3>
<ul>
<li><strong>&lt;?php _e(’Message’); ?&gt;</strong> : 输出相应信息</li>
<li><strong>&lt;?php wp_register(); ?&gt;</strong> : 显示注册链接</li>
<li><strong>&lt;?php wp_loginout(); ?&gt; </strong>: 显示登录/注销链接</li>
<li><strong>&lt;!–next page–&gt;</strong> : 将当前内容分页</li>
<li><strong>&lt;!–more–&gt;</strong> : 将当前内容截断，以不在主页/目录页显示全部内容</li>
<li><strong>&lt;?php timer_stop(1); ?&gt;</strong> : 网页加载时间(秒)</li>
<li><strong>&lt;?php echo get_num_queries(); ?&gt;</strong> : 网页加载查询量</li>
</ul>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F3140">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F3140">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F3140">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F3140">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/3140/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx下WordPress的永久链接实现</title>
		<link>http://blog.haohtml.com/archives/2685</link>
		<comments>http://blog.haohtml.com/archives/2685#comments</comments>
		<pubDate>Thu, 10 Dec 2009 01:48:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[服务器类]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/index.php/archives/2685</guid>
		<description><![CDATA[经过多番测试，终于在nginx下实现了rewrite的功能，WrodPress的永久链接终于生效了。 其实也是很简单的方法，修改nginx.conf文件，加入以下内容： location / { if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } } 重启nginx就可以了。 #killall nginx #nginx<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="nginx源代码分析" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6283&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2685">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4026128.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx源代码分析</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Nginx虚拟主机防Webshell完美版(图)" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2306&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2685">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4022380.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Nginx虚拟主机防Webshell完美版(图)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用Nginx轻松实现开源负载均衡──9 月20日在ChinaUnix技术沙龙上的演讲PPT[原创]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F3213&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2685">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4027562.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用Nginx轻松实现开源负载均衡──9 月20日在ChinaUnix技术沙龙上的演讲PPT[原创]</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="重启nginx服务的简单命令" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2690&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2685">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">重启nginx服务的简单命令</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><!--     	.dump{} 	 --><script type="text/javascript">// <![CDATA[
// <![CDATA[</p>
<p>    	//TODO 域名
    	if (location.hash) {
	    	document.domain=location.hash.substr(1);
	    }</p>
<p>	    //parent.qZEditor.callback();
	   function init(){
	   		//获取编辑器面板ID
		    var pid = frameElement.panelID;</p>
<p>		    //获取编辑器面板对象
		    var panel = parent.QZFL.editor.editPanel.get(pid);</p>
<p>		    panel["html"]._enableEditMode();
	   }</p>
<p>// ]]&gt;</script></p>
<p>经过多番测试，终于在nginx下实现了<span>rewrite</span>的功能，WrodPress的永久<span>链接</span>终于生效了。</p>
<p>其实也是很简单的方法，修改nginx.conf文件，加入以下内容：</p>
<p><code>location  / {<br />
if (-f $request_filename/index.html){<br />
rewrite (.*) $1/index.html  break;<br />
}<br />
if (-f $request_filename/index.php){<br />
rewrite (.*)  $1/index.php;<br />
}<br />
if (!-f $request_filename){<br />
rewrite (.*)  /index.php;<br />
}<br />
}<br />
</code></p>
<p>重启nginx就可以了。</p>
<p>#killall nginx</p>
<p>#nginx</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="nginx源代码分析" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6283&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2685">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4026128.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx源代码分析</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Nginx虚拟主机防Webshell完美版(图)" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2306&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2685">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4022380.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Nginx虚拟主机防Webshell完美版(图)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用Nginx轻松实现开源负载均衡──9 月20日在ChinaUnix技术沙龙上的演讲PPT[原创]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F3213&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2685">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4027562.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用Nginx轻松实现开源负载均衡──9 月20日在ChinaUnix技术沙龙上的演讲PPT[原创]</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="重启nginx服务的简单命令" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2690&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2685">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">重启nginx服务的简单命令</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/2685/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress自动保存远程图片</title>
		<link>http://blog.haohtml.com/archives/415</link>
		<comments>http://blog.haohtml.com/archives/415#comments</comments>
		<pubDate>Thu, 25 Sep 2008 11:36:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://haohtml.com/wp/?p=415</guid>
		<description><![CDATA[给WordPress编辑器增加“自动保存远程图片”功能的方法：

自动保存远程图片修改方法如下:

1、在wp-admin/edit-form-advanced.php 第167行<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PJBlog及LBS 到 WordPress 的新版数据转换程序" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F301&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PJBlog及LBS 到 WordPress 的新版数据转换程序</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>此文章从网络上收集,本人未曾进行测试,不保证一定可以使用!</p>
<p>给WordPress编辑器增加“自动保存远程图片”功能的方法：</p>
<p>自动保存远程图片修改方法如下:</p>
<p>1、在wp-admin/edit-form-advanced.php 第167行<br />
<code></code><br />
后面加增加<br />
<code>Save pic:</p>
<input name="savepic" size="20" type="checkbox" value="checked" /></code><br />
2、修改 wp-admin/post.php，将第7行的<br />
<code>wp_reset_vars(array('action', 'safe_mode', 'withcomments', 'posts', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder'));<br />
</code><br />
改为<br />
<code>wp_reset_vars(array('action', 'safe_mode', 'withcomments', 'posts', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder', 'savepic')); </code><br />
3、在wp-admin/admin-functions.php 的开头增加<br />
<code>function open($file,$type=''){<br />
global $fromurl,$referer;<br />
$cachename=$file;<br />
if($type){<br />
$file=$fromurl.'/'.$type.'/'.$file;<br />
}else{<br />
$file=$fromurl.$file;<br />
}<br />
if($open=file($file)){<br />
$count=count($open);<br />
for($i=0;$i&lt;$count;$i++){<br />
$theget.=$open[$i];<br />
}<br />
}else{<br />
die('请求过多，超时，请刷新');<br />
}<br />
return $theget;<br />
} </code><br />
<span style="font-family: Verdana;">再在<br />
</span><code>$_POST['post_content'] = $_POST['content'];<br />
</code><br />
<span style="font-family: Verdana;">的后面添加以下代码：<br />
注意，上面的代码有两个地方有，要在最后那个的后面加<br />
</span><code>if($_POST['savepic']=="checked"){<br />
// begin to save pic;<br />
$img_array = array();<br />
$content1 = stripslashes($_POST['post_content']);<br />
if (get_magic_quotes_gpc()) $content1 = stripslashes($content1);<br />
//echo $content1;//文章内容嘿嘿开始处理了<br />
preg_match_all("/(src|SRC)=\"(http:\/\/(.+).(gif|jpg|jpeg|bmp|png))/isU",$content1,$img_array);//正则开始匹配所有的图片并放入数据<br />
$img_array = array_unique(dhtmlspecialchars($img_array[2])); </code><br />
<span style="font-family: Verdana;">完毕。</span></p>
<p>function cut($file,$from,$end){</p>
<p>$message=explode($from,$file);<br />
$message=explode($end,$message[1]);<br />
return $message[0];<br />
}<br />
function dhtmlspecialchars($string) {<br />
if(is_array($string)) {<br />
foreach($string as $key =&gt; $val) {<br />
$string[$key] = dhtmlspecialchars($val);<br />
}<br />
} else {<br />
$string = str_replace(’&amp;', ‘&amp;’, $string);<br />
$string = str_replace(’”‘, ‘"’, $string);<br />
$string = str_replace(’&lt;', '&lt;', $string);<br />
$string = str_replace('&gt;‘, ‘&gt;’, $string);<br />
$string = preg_replace(’/&amp;(#\d;)/’, ‘&amp;\1′, $string);<br />
}<br />
return $string;<br />
}<br />
function random($length) {<br />
$hash = ”;<br />
$chars = ‘ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz’;<br />
$max = strlen($chars) - 1;<br />
mt_srand((double)microtime() * 1000000);<br />
for($i = 0; $i &lt; $length; $i++) {<br />
$hash .= $chars[mt_rand(0, $max)];<br />
}<br />
return $hash;<br />
}</p>
<p>function mkdirs($dir)<br />
{<br />
if(!is_dir($dir))<br />
{<br />
mkdirs(dirname($dir));<br />
mkdir($dir);<br />
}<br />
return ;<br />
}</p>
<p>print_r($img_array);<br />
set_time_limit(0);</p>
<p>foreach ($img_array as $key =&gt; $value) {<br />
$get_file = file_get_contents($value);//开始获取图片了哦<br />
$filetime = time();<br />
$filepath = "../wp-content/uploads/pic2/".date("Y",$filetime)."/".date("m",$filetime)."/";//图片保存的路径目录<br />
!is_dir($filepath) ? mkdirs($filepath) : null;<br />
$filename = date("YmdHis",$filetime).random(1).'.'.substr($value,-3,3);<br />
$fp = @fopen($filepath.$filename,"w");<br />
@fwrite($fp,$get_file);<br />
fclose($fp);//完工，哈<br />
$content1 = preg_replace("/".addcslashes($value,"/")."/isU", "/wp-content/uploads/pic2/".date("Y",$filetime)."/".date("m",$filetime)."/".$filename, $content1); //顺便替换一下文章里面的图片地址</p>
<p>}</p>
<p>$_POST['post_content'] = $content1;</p>
<p>// end save pic;<br />
}</p>
<p>现在，你再发表文章时，提交按钮旁边多了个选项</p>
<p>选中“save pic”，再点“发表”，即可保存远程图片了。</p>
<p>总结一下，要修改的文件有：</p>
<p>edit-form-advanced.php<br />
post.php<br />
admin-functions.php</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PJBlog及LBS 到 WordPress 的新版数据转换程序" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F301&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PJBlog及LBS 到 WordPress 的新版数据转换程序</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/415/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PJBlog及LBS 到 WordPress 的新版数据转换程序</title>
		<link>http://blog.haohtml.com/archives/301</link>
		<comments>http://blog.haohtml.com/archives/301#comments</comments>
		<pubDate>Sat, 13 Sep 2008 16:54:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[pjblog]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://haohtml.com/wp/?p=301</guid>
		<description><![CDATA[11月20日更新：加入了时间格式处理，保证在各种环境中获取的数据文本中的时间格式皆为 WP 的时间格式，以不至于转换数据造成时间丢失。 

---------------------------------------------------------------- 

挤时间做了个不同于以前那个的新版转换程序，这次采用的是 WordPress 自有备份格式做为媒介，并且这次将两个博客的转换代码整合在一起，通过对应的按钮分别导出。

使用方法如下：

将 LBS 或 PJBlog 的数据库改名为 blog.mdb
将 asp2wp.asp 以及 blog.mdb 上传到同一 ASP 空间目录下
运行程序根据需求点击相应的按钮获取 xml 格式的导出数据
进入已安装好的 WordPress 后台依次打开“管理”->“导入”->“WordPress”，根据提示导入之前获取的　xml 格式数据文件<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F301">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F301">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F301">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F301">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<div></div>
<p><span class="Apple-style-span" style="word-spacing: 0px; text-transform: none; color: #222222; text-indent: 0px; font-family: Verdana; white-space: normal; letter-spacing: normal; border-collapse: separate; text-align: left; webkit-text-size-adjust: auto; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-stroke-width: 0;"></p>
<p style="margin: 20px auto; padding: 0px;"><strong style="margin: 0px; padding: 0px;">11月20日更新：</strong>加入了时间格式处理，保证在各种环境中获取的数据文本中的时间格式皆为 WP 的时间格式，以不至于转换数据造成时间丢失。 </p>
<p style="margin: 20px auto; padding: 0px;">---------------------------------------------------------------- </p>
<p style="margin: 20px auto; padding: 0px;">挤时间做了个不同于以前那个的新版转换程序，这次采用的是 WordPress 自有备份格式做为媒介，并且这次将两个博客的转换代码整合在一起，通过对应的按钮分别导出。</p>
<p style="margin: 20px auto; padding: 0px;">使用方法如下：</p>
<ol style="margin: 0px 0px 0px 48px; padding: 0px;">
<li style="margin: 0px; padding: 0px;">将 LBS 或 PJBlog 的数据库改名为 blog.mdb</li>
<li style="margin: 0px; padding: 0px;">将 asp2wp.asp 以及 blog.mdb 上传到同一 ASP 空间目录下</li>
<li style="margin: 0px; padding: 0px;">运行程序根据需求点击相应的按钮获取 xml 格式的导出数据</li>
<li style="margin: 0px; padding: 0px;">进入已安装好的 WordPress 后台依次打开“管理”-&gt;“导入”-&gt;“WordPress”，根据提示导入之前获取的　xml 格式数据文件</li>
</ol>
<p style="margin: 20px auto; padding: 0px;">提示：如果数据文件比较大，可以使用压缩包内所提供的 XML 分割软件分割成多个小尺寸数据文件依次导入。</p>
<p style="margin: 20px auto; padding: 0px;">OK，废话完了，给<a style="margin: 0px; color: #222222; text-decoration: none; padding: 0px;" href="http://www.voidpage.com/download/other/asp2wp.zip"><span style="margin: 0px; color: #3366ff; padding: 0px;">下载</span></a>。如果有什么问题或者建议请反馈给我，谢谢。</p>
<p> </p>
<p> </p>
<p></span></p>
<p style="margin: 20px auto; padding: 0px;">个人测试可以,但tag无法导入,请使用者注意这一点。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F301">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F301">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F301">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F301">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/301/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress忘记密码解决办法</title>
		<link>http://blog.haohtml.com/archives/305</link>
		<comments>http://blog.haohtml.com/archives/305#comments</comments>
		<pubDate>Sat, 13 Sep 2008 16:37:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://haohtml.com/wp/?p=305</guid>
		<description><![CDATA[WorePress安装后都是自动给出密码的，我一直是自动登陆，所以一个月后居然把密码忘记了。WP使用的是MD5保存密码，所以密码不可逆。想到后台可以使用数据库，可以通过数据库找回密码，登陆phpmyadmin，然后如图，登陆后第一步是选择数据库.一般虚拟主机都带有phpmyadmin.<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PJBlog及LBS 到 WordPress 的新版数据转换程序" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F301&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PJBlog及LBS 到 WordPress 的新版数据转换程序</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p class="storycontent">WorePress安装后都是自动给出密码的，我一直是自动登陆，所以一个月后居然把密码忘记了。WP使用的是MD5保存密码，所以密码不可逆。想到后台可以使用数据库，可以通过数据库找回密码，登陆phpmyadmin，然后如图，登陆后第一步是选择数据库.一般虚拟主机都带有phpmyadmin.</p>
<p class="storycontent"><img title="wordpress忘记密码" src="http://www.nnsg.cn/blogimage/zzr141.gif" alt=" " width="406" height="178" /></p>
<p><img title="wordpress忘记密码" src="http://www.nnsg.cn/blogimage/zzr142.gif" alt=" " width="406" height="178" /></p>
<p><img title="wordpress忘记密码" src="http://www.nnsg.cn/blogimage/zzr143.gif" alt=" " width="406" height="178" /></p>
<p>修改MD5密码为：”5d41402abc4b2a76b9719d911017c592″<br />
然后回到WordPress登陆页面，使用密码”hello” 登陆。</p>
<p>当然，还有其他的一些方法，我把觉得不错的方法也摘录下来以供参考。</p>
<p class="post-content"><strong>1. 通过PHP文件修改Wordpress密码</strong></p>
<p class="post-content">新建一个pwd.php文件,并在其中加入:</p>
<p class="post-content"><span style="color: #008000;">echo md5(’<span style="color: #ff0000;">你的密码</span>’);</span></p>
<p class="post-content">上传到主机根目录下，执行http://你的域名/pwd.php,然后连到你的数据库执行.</p>
<p class="post-content"><span style="color: #008000;">update wp_users set user_pass=’<span style="color: #ff0000;">执行pwd.php显示的字符串</span>’ where user_login=’<span style="color: #ff0000;">admin</span>’;</span></p>
<p class="post-content">OK，现在可以用自己设定的密码进入管理员帐户了。</p>
<p class="post-content">2.<strong>通过 password-resetter 文件找回密码</strong>下载: <a title="password-resetter" href="http://www.info-life.cn/wp-content/password-resetter.zip"><span style="color: #222222;">password-resetter</span></a></p>
<p> </p>
<p class="post-content"><strong>使用方法</strong>:</p>
<div class="post-content">
<ol>
<li>将password-resetter.zip解压；</li>
<li>上传password-resetter.php到WordPress根目录 (注意: 这不是WordPress插件! )</li>
<li>运行<span style="color: #008000;">http://你的域名/password-resetter.php</span></li>
<li>在Set admin password:后面输入你要重置的管理员密码！然后点提交查询内容就可以了</li>
<li>记得找回密码后, 删除服务器上的password-resetter.php （不然会被他人利用)</li>
</ol>
</div>
<p>如果你还有其他不错的方法，请告诉我，我会继续完善本文。Thank you!</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PJBlog及LBS 到 WordPress 的新版数据转换程序" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F301&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PJBlog及LBS 到 WordPress 的新版数据转换程序</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/305/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

