<?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>haojii &#187; WordPress</title>
	<atom:link href="http://www.haojii.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.haojii.com</link>
	<description>一个专注于技术的IT男</description>
	<lastBuildDate>Thu, 19 Apr 2012 07:58:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Flickr Manager插件与主题Mystique不兼容</title>
		<link>http://www.haojii.com/2010/11/flickr-manager-plugin-not-compatible-with-theme-mystique/</link>
		<comments>http://www.haojii.com/2010/11/flickr-manager-plugin-not-compatible-with-theme-mystique/#comments</comments>
		<pubDate>Sat, 20 Nov 2010 08:40:04 +0000</pubDate>
		<dc:creator>Jacky</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.haojii.com/?p=442</guid>
		<description><![CDATA[在Mystique主题下加载Flickr Manager插件的时候，发现jQuery $对象变成undefined状态。 disable该插件后，$对象恢复活力，具体不兼容的code没深入研究，猜想是加载顺序问题。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F01%2Fper-post-css%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fflickr-manager-plugin-not-compatible-with-theme-mystique%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">为wordpress博客文章设置单独的CSS</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fcolorful-tag-cloud%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fflickr-manager-plugin-not-compatible-with-theme-mystique%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">WordPress彩色的标签云</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2009%2F12%2Fsite-seo-1%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fflickr-manager-plugin-not-compatible-with-theme-mystique%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">对haojii.com稍稍SEO了一下</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fswitched-to-a-new-virtual-host%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fflickr-manager-plugin-not-compatible-with-theme-mystique%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">网站更新换了个虚拟主机</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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>在Mystique主题下加载Flickr Manager插件的时候，发现jQuery $对象变成undefined状态。</p>
<p>disable该插件后，$对象恢复活力，具体不兼容的code没深入研究，猜想是加载顺序问题。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F01%2Fper-post-css%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fflickr-manager-plugin-not-compatible-with-theme-mystique%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">为wordpress博客文章设置单独的CSS</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fcolorful-tag-cloud%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fflickr-manager-plugin-not-compatible-with-theme-mystique%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">WordPress彩色的标签云</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2009%2F12%2Fsite-seo-1%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fflickr-manager-plugin-not-compatible-with-theme-mystique%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">对haojii.com稍稍SEO了一下</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fswitched-to-a-new-virtual-host%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fflickr-manager-plugin-not-compatible-with-theme-mystique%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">网站更新换了个虚拟主机</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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://www.haojii.com/2010/11/flickr-manager-plugin-not-compatible-with-theme-mystique/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress彩色的标签云</title>
		<link>http://www.haojii.com/2010/02/colorful-tag-cloud/</link>
		<comments>http://www.haojii.com/2010/02/colorful-tag-cloud/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 06:56:22 +0000</pubDate>
		<dc:creator>Jacky</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[tag]]></category>

		<guid isPermaLink="false">http://www.haojii.com/?p=207</guid>
		<description><![CDATA[自己写simpleblog程序的时候做过一个彩色的标签云，所以想自己写一个用到wordpress里面，后来发现网上这样的代码很多，就找了段现成的。 修改了mystique主题的widgets模板文件 ~/wp-content/themes/mystique/lib/widgets.php 可以看到重点是wordpress的这个方法add_filter(&#8216;wp_tag_cloud&#8217;, &#8216;colorCloud&#8217;, 1)，我没做过wordpress开发，对这个不熟啦， 但是联想了一下Servlet的filter机制，对这个函数的理解也八九不离十啦，能用了。 mystique主题的中文翻译有问题，下载了个poedit修改了一下zh_CN.po文件，这个工具蛮方便的，能自动生成mo文件，自己更新一下主题下的mo文件就行了 ~/wp-content/themes/mystique/lang/ zh_CN.mo zh_CN.po<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fswitched-to-a-new-virtual-host%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fcolorful-tag-cloud%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">网站更新换了个虚拟主机</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F01%2Fper-post-css%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fcolorful-tag-cloud%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">为wordpress博客文章设置单独的CSS</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fflickr-manager-plugin-not-compatible-with-theme-mystique%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fcolorful-tag-cloud%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Flickr Manager插件与主题Mystique不兼容</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F04%2Feverything-about-css-text-break%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fcolorful-tag-cloud%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">CSS文字折行与省略号</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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>自己写simpleblog程序的时候做过一个彩色的标签云，所以想自己写一个用到wordpress里面，后来发现网上这样的代码很多，就找了段现成的。<br />
修改了mystique主题的widgets模板文件 ~/wp-content/themes/mystique/lib/widgets.php<br />
可以看到重点是wordpress的这个方法add_filter(&#8216;wp_tag_cloud&#8217;, &#8216;colorCloud&#8217;, 1)，我没做过wordpress开发，对这个不熟啦，<br />
但是联想了一下Servlet的filter机制，对这个函数的理解也八九不离十啦，能用了。</p>
<pre class="brush: php; title: ; notranslate">
&lt;div class=&quot;tag-cloud&quot;&gt;
&lt;!--Colorful tag cloud --&gt;
&lt;?php
function colorCloud($text) {
$text = preg_replace_callback('|&lt;a (.+?)&gt;|i', 'colorCloudCallback', $text);
return $text;
}
function colorCloudCallback($matches) {
$text = $matches[1];
$color = dechex(rand(0,16777215));
$pattern = '/style=(\'|\&quot;)(.*)(\'|\&quot;)/i';
$text = preg_replace($pattern, &quot;style=\&quot;color:#{$color};$2;\&quot;&quot;, $text);
return &quot;&lt;a $text&gt;&quot;;
}
add_filter('wp_tag_cloud', 'colorCloud', 1);

?&gt;
&lt;!--end --&gt;
&lt;?php wp_tag_cloud(apply_filters('widget_tag_cloud_args', array())); ?&gt;

&lt;/div&gt;
</pre>
<p>mystique主题的中文翻译有问题，下载了个<a href="http://www.poedit.net">poedit</a>修改了一下zh_CN.po文件，这个工具蛮方便的，能自动生成mo文件，自己更新一下主题下的mo文件就行了<br />
~/wp-content/themes/mystique/lang/<br />
zh_CN.mo<br />
zh_CN.po</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fswitched-to-a-new-virtual-host%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fcolorful-tag-cloud%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">网站更新换了个虚拟主机</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F01%2Fper-post-css%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fcolorful-tag-cloud%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">为wordpress博客文章设置单独的CSS</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fflickr-manager-plugin-not-compatible-with-theme-mystique%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fcolorful-tag-cloud%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Flickr Manager插件与主题Mystique不兼容</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F07%2Fshanghai-apple-store-opening%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fcolorful-tag-cloud%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">惭愧，我也做了一回痴情的苹果粉丝</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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://www.haojii.com/2010/02/colorful-tag-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

