<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>蓝色的华 &#187; plugin</title>
	<atom:link href="http://bluehua.org/tag/plugin/feed" rel="self" type="application/rss+xml" />
	<link>http://bluehua.org</link>
	<description>分享所学,backup一切~</description>
	<lastBuildDate>Wed, 23 Nov 2011 08:43:10 +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>wordpress的插件机制用于产品js代码的解耦</title>
		<link>http://bluehua.org/2009/12/22/751.html</link>
		<comments>http://bluehua.org/2009/12/22/751.html#comments</comments>
		<pubDate>Tue, 22 Dec 2009 13:43:26 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[web dev]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=751</guid>
		<description><![CDATA[由于半路出家，设计模式几乎没有接触，一直为产品代码的耦合头疼，前两天忽然想到，wordpress区区数行代码便实现了强大的插件接口，何不借鉴一下呢，于是便有了下面的假想代码(不了解wordpress插件机制的同学可以先了解一下)： /* * 以一个相册浏览的产品为例 * 该应用可以实现无刷新的图片浏览，附加功能:新用户引导，图片评论，对图片处理的第三方应用，圈人 */ //产品引导开始 addAction&#40;'photo_browser_init',function&#40;&#41; &#123; guideManager.init&#40;&#41;; &#125;&#41;; addAction&#40;'photo_load_sucess',function&#40;photo&#41; &#123; guideManager.step&#40;3, photo&#41;; &#125;&#41;; addAction&#40;'photo_change',function&#40;photo&#41; &#123; guideManager.step&#40;4&#41;; &#125;&#41;; //产品引导结束 &#160; //管理员ui开始 addAction&#40;'photo_browser_init',function&#40;&#41; &#123; if &#40; !currentUser.isAdmin &#41; return; ...... &#125;&#41;; //管理员ui结束 &#160; //相册圈人开始 addAction&#40;'photo_browser_init', function&#40;&#41; &#123; photo_tag.init&#40;&#41;; &#125;&#41;; addAction&#40;'photo_load&#124;photo_change', function&#40;photo&#41; &#123; photo_tag.update&#40;photo&#41;; &#125;&#41;; //相册圈人结束 &#160; //相片app addAction&#40;'photo_browser_init',function&#40;photo&#41; &#123; photo_apps.init&#40;photo&#41;; &#125;&#41;; addAction&#40;'photo_load&#124;photo_change',function&#40;photo&#41; &#123; [...]]]></description>
			<content:encoded><![CDATA[<p>由于半路出家，设计模式几乎没有接触，一直为产品代码的耦合头疼，前两天忽然想到，wordpress区区数行代码便实现了强大的插件接口，何不借鉴一下呢，于是便有了下面的假想代码(<a href="http://www.google.cn/search?hl=zh-CN&amp;q=wordpress+%E6%8F%92%E4%BB%B6%E6%9C%BA%E5%88%B6&amp;sourceid=navclient-ff&amp;rlz=1B6_____zh-CNCN346CN346&amp;ie=UTF-8" target="_blank">不了解wordpress插件机制的同学可以先了解一下</a>)：</p>

<div class="wp_syntax"><div class="code overflow"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">/*
* 以一个相册浏览的产品为例
* 该应用可以实现无刷新的图片浏览，附加功能:新用户引导，图片评论，对图片处理的第三方应用，圈人
*/</span>
<span style="color: #006600; font-style: italic;">//产品引导开始</span>
addAction<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'photo_browser_init'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
     guideManager.<span style="color: #660066;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
addAction<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'photo_load_sucess'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>photo<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    guideManager.<span style="color: #660066;">step</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">3</span><span style="color: #339933;">,</span> photo<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
addAction<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'photo_change'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>photo<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    guideManager.<span style="color: #660066;">step</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">//产品引导结束</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//管理员ui开始</span>
addAction<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'photo_browser_init'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>currentUser.<span style="color: #660066;">isAdmin</span> <span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span>
    ......
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">//管理员ui结束</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//相册圈人开始</span>
addAction<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'photo_browser_init'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    photo_tag.<span style="color: #660066;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
addAction<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'photo_load|photo_change'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>photo<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    photo_tag.<span style="color: #660066;">update</span><span style="color: #009900;">&#40;</span>photo<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">//相册圈人结束</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//相片app</span>
addAction<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'photo_browser_init'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>photo<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    photo_apps.<span style="color: #660066;">init</span><span style="color: #009900;">&#40;</span>photo<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
addAction<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'photo_load|photo_change'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>photo<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    photo_apps.<span style="color: #660066;">update</span><span style="color: #009900;">&#40;</span>photo<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">//相片app结束</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//相片评论开始</span>
addAction<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'photo_browser_init'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>photo<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    photo_comment.<span style="color: #660066;">init</span><span style="color: #009900;">&#40;</span>photo<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
addAction<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'photo_load|photo_change'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>photo<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    photo_comment.<span style="color: #660066;">update</span><span style="color: #009900;">&#40;</span>photo<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">//相片评论结束</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//相片浏览核心功能开始</span>
<span style="color: #003366; font-weight: bold;">var</span> photo_browser <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>...<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
photo_browser.<span style="color: #660066;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">//相片浏览核心功能结束</span></pre></div></div>

<p>其实跟自定义事件有点类似，但是比自定义事件更强大：</p>
<ul>
<li> 自定义依赖于对象，对脚本的加载顺序会有要求，而wordpress里的addFilter和addAction可以完美解决这个缺点。</li>
<li> filter可以实现数据过滤，而自定义事件不能</li>
</ul>
<p>经过解耦之后的产品更方便多人协作开发，代码块清晰，有效避免svn冲突，还有种种其他好处。。</p>
<p>仅仅是个想法，未经实践，实践ing~</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2009/12/22/751.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DNS Flusher 2.0.3 在ubuntu下不能用了</title>
		<link>http://bluehua.org/2009/09/28/599.html</link>
		<comments>http://bluehua.org/2009/09/28/599.html#comments</comments>
		<pubDate>Mon, 28 Sep 2009 08:04:17 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[web dev]]></category>
		<category><![CDATA[dnsflusher]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=599</guid>
		<description><![CDATA[升级了一下版本,竟然不能用了,查了一下,原来是文件名大小写的问题&#8230; 插件目录的chrome.manifest overlay chrome://browser/content/browser.xul chrome://dnsFlusher/content/dnsFlusher.xul &#160; #这里应当改成 #overlay chrome://browser/content/browser.xul chrome://dnsFlusher/content/dnsflusher.xul &#160; overlay chrome://navigator/content/navigator.xul chrome://dnsFlusher/content/dnsFlusher.xul &#160; #应当改成 #overlay chrome://navigator/content/navigator.xul chrome://dnsFlusher/content/dnsflusher.xul &#160; content dnsFlusher chrome/content/dnsFlusher/ &#160; skin dnsFlusher classic/1.0 chrome/skin/classic/dnsFlusher/ 修改之后重启firefox就可以了 作者肯定是用win系统,文件名不区分大小写,所以不会有问题,其他linux,mac就会找不到文件了..]]></description>
			<content:encoded><![CDATA[<p>升级了一下版本,竟然不能用了,查了一下,原来是文件名大小写的问题&#8230;<br />
插件目录的chrome.manifest</p>

<div class="wp_syntax"><div class="code overflow"><pre class="text" style="font-family:monospace;">overlay	chrome://browser/content/browser.xul		chrome://dnsFlusher/content/dnsFlusher.xul
&nbsp;
#这里应当改成
#overlay	chrome://browser/content/browser.xul		chrome://dnsFlusher/content/dnsflusher.xul
&nbsp;
overlay	chrome://navigator/content/navigator.xul	chrome://dnsFlusher/content/dnsFlusher.xul
&nbsp;
#应当改成
#overlay	chrome://navigator/content/navigator.xul	chrome://dnsFlusher/content/dnsflusher.xul
&nbsp;
content	dnsFlusher									chrome/content/dnsFlusher/
&nbsp;
skin	dnsFlusher		classic/1.0					chrome/skin/classic/dnsFlusher/</pre></div></div>

<p>修改之后重启firefox就可以了<br />
<img class="xemotion" src="http://bluehua.org/wp-content/plugins/x-emotions/emotions/msn/bofu2_08.gif" border="0" alt="" />作者肯定是用win系统,文件名不区分大小写,所以不会有问题,其他linux,mac就会找不到文件了..</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2009/09/28/599.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WP-Syntax + ZeroClipboard增强版</title>
		<link>http://bluehua.org/2009/08/25/402.html</link>
		<comments>http://bluehua.org/2009/08/25/402.html#comments</comments>
		<pubDate>Tue, 25 Aug 2009 00:22:37 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[soft]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=402</guid>
		<description><![CDATA[上次发过一个增强版本,但是使用的复制脚本在flash升级到10版之后就失效了. 这次同样也是修改的0.9版的wp-syntax,跟上一个修改版本不同的就是 删除了存在漏洞的test目录 使用wp内置函数判断是否输出工具栏,使用url rewrite不会出问题 代码复制使用ZeroClipboard,可以兼容所有主流浏览器 效果: &#60;html&#62; &#60;script&#62; alert&#40;'ooxx~'&#41;; &#60;/script&#62; &#60;/html&#62; 使用方法跟上一个版本一样 &#60;pre lang=”javascript” line=”1&#8243; run=”1&#8243;&#62; 把第三个参数设为1即可显示run Code的按钮. 下载点这里:wp-syntax-plus.zip 留言里有个叫whisperer 的同学问我用的啥插件,俺才想起来发一下,一大早起来发我也真不容易]]></description>
			<content:encoded><![CDATA[<p><a href="http://bluehua.org/2008/08/30/52.html" target="_self">上次发过一个增强版本</a>,但是使用的复制脚本在flash升级到10版之后就失效了.</p>
<p>这次同样也是修改的0.9版的wp-syntax,跟上一个修改版本不同的就是</p>
<ul>
<li>删除了存在漏洞的test目录</li>
<li>使用wp内置函数判断是否输出工具栏,使用url rewrite不会出问题</li>
<li>代码复制使用<a href="http://code.google.com/p/zeroclipboard/" target="_blank">ZeroClipboard</a>,可以兼容所有主流浏览器</li>
</ul>
<p>效果:</p>

<div class="wp_syntax"><div class="code overflow"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ooxx~'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></div></div>

<p>使用方法跟上一个版本一样</p>
<p>&lt;pre lang=”javascript” line=”1&#8243; run=”1&#8243;&gt;</p>
<p>把第三个参数设为1即可显示run Code的按钮.</p>
<p>下载点这里:<a href="../wp-content/uploads/2009/08/wp-syntax-plus.zip">wp-syntax-plus.zip</a></p>
<p>留言里有个叫<span><cite></cite></span><a rel="external nofollow" href="http://bluehua.org/2009/07/31/355.html/comment-page-1#comment-3488">whisperer</a> 的同学问我用的啥插件,俺才想起来发一下,一大早起来发我也真不容易<img class="xemotion" src="http://bluehua.org/wp-content/plugins/x-emotions/emotions/msn/bofu2_23.gif" border="0" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2009/08/25/402.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress plugin:搜索引擎关键词高亮</title>
		<link>http://bluehua.org/2009/07/22/333.html</link>
		<comments>http://bluehua.org/2009/07/22/333.html#comments</comments>
		<pubDate>Wed, 22 Jul 2009 15:14:30 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=333</guid>
		<description><![CDATA[下载地址更新 2009.11.8 http://wordpress.org/extend/plugins/keywords-highlight-tool/ &#8212;&#8212;&#8212;- 由于blog的访客多来自搜索引擎,所以关键词高亮会大大的增强访客的浏览体验,帮助访客快速定位感兴趣的内容. 类似插件已有很多,但俺绝不是再造普通的轮子,一定要用浏览器兼容性最好的插件,没有就自己搞.. 现存插件的实现方式有两种,一种用php在后端实现,另一种用js在前端实现. php实现高亮,浏览器兼容性最好,但是有两个问题: 1.效率问题,不如用js实现,将压力分到前端; 2.不支持cache类插件,当然这个问题可以通过hack cache插件解决,但是不可取. js实现高亮: 比较理想的实现方法,搜到一篇文章叫也谈Wordpress关键词高亮 里面讲到用js高亮关键词,但是中文gb转码使用了vbscript,所以仅支持ie浏览器 于是用自己的想法简单实现了一下这个功能, 点击搜索测试 第一个结果就应该是了 screenshot: 跟上面提到插件的主要不同点: 改进了高亮的实现方法,仅替换元素的text节点,防止造成元素事件失效 判断如果不是外链过来的访客将不加载高亮的js脚本 百度链接过来,中文gb转码时使用php后台转码,兼容所有主流浏览器 目前仅添加了对google,yahoo,baidu三个搜索引擎的支持,如果想支持更多,自行修改highlight.js即可 插件下载点这里]]></description>
			<content:encoded><![CDATA[<p>下载地址更新 2009.11.8<br />
<a href="http://wordpress.org/extend/plugins/keywords-highlight-tool/">http://wordpress.org/extend/plugins/keywords-highlight-tool/</a><br />
&#8212;&#8212;&#8212;-<br />
由于blog的访客多来自搜索引擎,所以关键词高亮会大大的增强访客的浏览体验,帮助访客快速定位感兴趣的内容.</p>
<p>类似插件已有很多,但俺绝不是再造普通的轮子,一定要用浏览器兼容性最好的插件,没有就自己搞..</p>
<p>现存插件的实现方式有两种,一种用php在后端实现,另一种用js在前端实现.</p>
<p>php实现高亮,浏览器兼容性最好,但是有两个问题:</p>
<p>1.效率问题,不如用js实现,将压力分到前端; 2.不支持cache类插件,当然这个问题可以通过hack cache插件解决,但是不可取.</p>
<p>js实现高亮:</p>
<p>比较理想的实现方法,搜到一篇文章叫<a href="http://www.jefflei.com/post/1041.html" target="_blank">也谈Wordpress关键词高亮</a> 里面讲到用js高亮关键词,但是中文gb转码使用了vbscript,所以仅支持ie浏览器</p>
<p>于是用自己的想法简单实现了一下这个功能, <a href="http://www.google.cn/search?hl=zh-CN&amp;rlz=1B3GGGL_zh-CNCN330CN331&amp;newwindow=1&amp;q=ajax+document+write+%E6%9D%8E%E5%AE%81+%E5%86%85%E8%81%94%E8%84%9A%E6%9C%AC+%E8%84%9A%E6%9C%AC&amp;btnG=Google+%E6%90%9C%E7%B4%A2" target="_blank">点击搜索测试</a> 第一个结果就应该是了<img class="xemotion" src="http://bluehua.org/wp-content/plugins/x-emotions/emotions/char/icon_lol.gif" border="0" alt="" /></p>
<p>screenshot:</p>
<p><a href="http://bluehua.org/wp-content/uploads/2009/07/2009-7-21-21-48-56.png"><img class="alignnone size-full wp-image-336" title="2009-7-21-21-48-56" src="http://bluehua.org/wp-content/uploads/2009/07/2009-7-21-21-48-56.png" alt="2009-7-21-21-48-56" width="565" height="518" /></a></p>
<p>跟上面提到插件的主要不同点:</p>
<ul>
<li>改进了高亮的实现方法,仅替换元素的text节点,防止造成元素事件失效</li>
<li>判断如果不是外链过来的访客将不加载高亮的js脚本</li>
<li>百度链接过来,中文gb转码时使用php后台转码,兼容所有主流浏览器</li>
</ul>
<p>目前仅添加了对google,yahoo,baidu三个搜索引擎的支持,如果想支持更多,自行修改highlight.js即可</p>
<p><a href="http://sites.google.com/site/sharemyidea09/wordpress-keywords-highlight-tool" target="_blank">插件下载点这里</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2009/07/22/333.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>偶的又一wp插件:超级表情</title>
		<link>http://bluehua.org/2008/11/09/106.html</link>
		<comments>http://bluehua.org/2008/11/09/106.html#comments</comments>
		<pubDate>Sun, 09 Nov 2008 08:33:42 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=106</guid>
		<description><![CDATA[10.16 2011更新，兼容至wordpress 3.2.1，修正标签不能切换 下载x-emotions_0_1_4 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; 8.29 2009 更新一下,没想到还有同学在下载这个东西哈哈~ 最近加了一套柏夫表情,发现图片大小不一样会有错位的问题,修正一下 效果就看我现在用的就好了~ 下载:x-emotions_0_1_3 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; 回复andy同学:如何自定义框的高度 请下载下面的样式文件 style.css 用记事本打开此文件 #xemotion_dialog_wraper&#123; width:100%; height:400px;/*把这个高度改成想要的高度*/ position:absolute; text-align:left; &#125; 然后传到插件的img目录覆盖原文件即可 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; 原来俺的emotion 一直都是拼错的,少了个c &#8212;&#8212;&#8212;&#8212;&#62;emoticons &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 有同学反映评论页没有生效,请确定一下评论框textarea元素的id是否为&#8217;comment&#8217;,是否安装了其他评论编辑插件 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 更新到0.1.2 修正Maria同学提交的bug 为什么除了第一次，以后再用表情的分类都是乱码？ 页面里没有指明编码方式,修正了~ 下载:x-emotions_0_1_2 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- 更新一下:修正了 伊迭 同学反映的两个bug\ 出现Fatal error: require_once() [function.require]: Failed opening required ‘../../../wp-load.php’ (include_path=’.:/usr/local/php5/lib/php’) in ……dialog_for_comment.php on line 69 在你这显示正常，在我那就掉位了…显示不全 几个浏览器都试遍了，就Opera好点…. [...]]]></description>
			<content:encoded><![CDATA[<p>10.16 2011更新，兼容至wordpress 3.2.1，修正标签不能切换</p>
<p>下载<a href='http://bluehua.org/wp-content/uploads/2008/11/x-emotions_0_1_41.zip'>x-emotions_0_1_4</a><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
8.29 2009<br />
更新一下,没想到还有同学在下载这个东西哈哈~<br />
最近加了一套柏夫表情,发现图片大小不一样会有错位的问题,修正一下<br />
效果就看我现在用的就好了~</p>
<p>下载:<a href='http://bluehua.org/wp-content/uploads/2008/11/x-emotions_0_1_3.zip'>x-emotions_0_1_3</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>回复andy同学:如何自定义框的高度</p>
<p>请下载下面的样式文件</p>
<p><a href="http://bluehua.org/wp-content/uploads/2008/11/style.css">style.css</a></p>
<p>用记事本打开此文件</p>

<div class="wp_syntax"><div class="code overflow"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#xemotion_dialog_wraper</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">400px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/*把这个高度改成想要的高度*/</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>然后传到插件的img目录覆盖原文件即可<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>原来俺的emotion 一直都是拼错的<img class="xemotion" src="http://bluehua.org/wp-content/plugins/x-emotions/emotions/daola/dora_jianzha.png" border="0" alt="" />,少了个c<br />
&#8212;&#8212;&#8212;&#8212;&gt;emoticons<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>有同学反映评论页没有生效,请确定一下评论框textarea元素的id是否为&#8217;comment&#8217;,是否安装了其他评论编辑插件</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>更新到0.1.2</p>
<p>修正Maria同学提交的bug</p>
<ul>
<li>为什么除了第一次，以后再用表情的分类都是乱码？</li>
</ul>
<p><img class="xemotion" src="http://bluehua.org/wp-content/plugins/x-emotions/emotions/daola/dora_jianzha.png" border="0" alt="" />页面里没有指明编码方式,修正了~</p>
<p>下载:<a href="http://bluehua.org/wp-content/uploads/2008/11/x-emotions_0_1_2.rar">x-emotions_0_1_2</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>更新一下:修正了<span class="comment_author"> <cite><a rel="external nofollow" href="http://www.yidie.org/">伊迭</a></cite></span> 同学反映的两个bug\</p>
<ul>
<li>出现Fatal error: require_once() [function.require]: Failed opening required ‘../../../wp-load.php’ (include_path=’.:/usr/local/php5/lib/php’) in ……dialog_for_comment.php on line 69</li>
<li>在你这显示正常，在我那就掉位了…显示不全<br />
几个浏览器都试遍了，就Opera好点….</li>
</ul>
<p>0.1.1版本:<a href="http://bluehua.org/wp-content/uploads/2008/11/x-emotions_0_1_11.rar">x-emotions_0_1_1</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>周末很无聊，写日志很无聊，额，于是写了一个插件：x-emotions</p>
<p><img class="xemotion" src="http://bluehua.org/wp-content/plugins/x-emotions/emotions/maomao/11.gif" border="0" alt="" />，啊哈哈哈哈，想贴就贴～</p>
<p>下载：　<a href="http://bluehua.org/wp-content/uploads/2008/11/x-emotions_0_1.rar">x-emotions_0_1</a></p>
<p>此插件最大的优点就是：可以添加多套表情，只要在表情目录新建一文件夹把新表情传到目录即可</p>
<p>安装时注意：里面的emotions文件夹的权限最好为777，cache文件要写到此目录</p>
<p>使用说明：</p>
<p>添加新表情：在插件的emotions目录新建一个目录（英文）然后把表情图片传到此目录，如果需要给此套新表情起个名字，则把名字写到一个utf-8编码的名为name.txt的文本文件里，并把此文件传到对应的表情目录．</p>
<p><strong><span style="color: #000000;">注意</span></strong>：添加新表情之后必须删除emotions目录下的名字为&#8217;cache_for_editor.php&#8217;和&#8217;cache_for_comment.php&#8217;两个缓存文件，重建缓存之后才能看到新传的表情</p>
<p>自定义变量：</p>
<p>x-emotions.php 里的</p>
<p>$blue_emotions_enable_in_comments = true</p>
<p>//是否在留言启用此插件，默认为true，启用</p>
<p>screenshot</p>
<p>－－－－－－－－－－－－－－－－－－－－－－－－－</p>
<p>在编辑器使用</p>
<p><a href="http://bluehua.org/wp-content/uploads/2008/11/snag-0043.png"><img class="alignnone size-medium wp-image-107" title="snag-0043" src="http://bluehua.org/wp-content/uploads/2008/11/snag-0043-300x104.png" alt="" width="300" height="104" /></a></p>
<p>在编辑器使用时的对话框</p>
<p><a href="http://bluehua.org/wp-content/uploads/2008/11/snag-0042.png"><img class="alignnone size-medium wp-image-110" title="snag-0042" src="http://bluehua.org/wp-content/uploads/2008/11/snag-0042-300x253.png" alt="" width="300" height="253" /></a></p>
<p>在留言使用</p>
<p><a href="http://bluehua.org/wp-content/uploads/2008/11/snag-0040.png"><img class="alignnone size-medium wp-image-108" title="snag-0040" src="http://bluehua.org/wp-content/uploads/2008/11/snag-0040-249x300.png" alt="" width="249" height="300" /></a></p>
<p>在留言使用时的界面</p>
<p><a href="http://bluehua.org/wp-content/uploads/2008/11/snag-0041.png"><img class="alignnone size-medium wp-image-109" title="snag-0041" src="http://bluehua.org/wp-content/uploads/2008/11/snag-0041-300x124.png" alt="" width="300" height="124" /></a></p>
<p><a href="http://bluehua.org/wp-content/uploads/2008/11/snag-0040.png"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2008/11/09/106.html/feed</wfw:commentRss>
		<slash:comments>85</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.450 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-05 02:10:34 -->

