<?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>Boss Thinking &#187; 外掛</title>
	<atom:link href="http://blog.bossyang.com/tag/%e5%a4%96%e6%8e%9b/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bossyang.com</link>
	<description>photo, technology &#38; life</description>
	<lastBuildDate>Sat, 04 Feb 2012 01:44:04 +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>WP佈景主題Atahualpa中使用WP-PostRatings</title>
		<link>http://blog.bossyang.com/atahualpa_wp-postratings.html</link>
		<comments>http://blog.bossyang.com/atahualpa_wp-postratings.html#comments</comments>
		<pubDate>Wed, 24 Feb 2010 02:45:30 +0000</pubDate>
		<dc:creator>Boss Yang</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[atahualpa]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[ratings]]></category>
		<category><![CDATA[外掛]]></category>
		<category><![CDATA[評價]]></category>

		<guid isPermaLink="false">http://blog.bossyang.com/?p=321</guid>
		<description><![CDATA[討論如何在WordPress佈景主題Atahualpa 3中設定WP-PostRatings外掛。 <a href="http://blog.bossyang.com/atahualpa_wp-postratings.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-thumbnail wp-image-322" title="wp-plugin-compatibility-block" src="http://blog.bossyang.com/wp-content/uploads/2010/02/wp-plugin-compatibility-block-150x150.png" alt="WP plugin Compatibility" width="150" height="150" />常常看見一般部落格文章都有星等評價，於是找了<a href="http://wordpress.org/extend/plugins/profile/gamerz">Lester &#8216;GaMerZ&#8217; Chan</a>貢獻的<a title="WordPress Plugin &gt; WP-PostRatings" href="http://wordpress.org/extend/plugins/wp-postratings/" target="_blank">WP-PostRatings</a>外掛，安裝與啟用都很簡單，不需要另外說明，重灌狂人也寫了相當詳細的<a title="WP-PostRatings 文章投票、星等評價外掛（WordPress 網站專用）" href="http://briian.com/?p=5941" target="_blank">教學文件</a>，麻煩的是配置與設定，往往都需要去更動佈景主題的檔案，而且是要寫php程式碼，不是很友善，要是換了佈景主題是不是又要改一遍呢？</p>
<p>這類的技術文件永遠寫不完，因為佈景主題設計方式不同，介面語系也可能不同，再加上外掛版本會演進，WordPress主程式也會更新，你看到『不來恩』文章的畫面很可能與你不同，至少跟我的就不一樣，概念大致相通，但臭蟲隨時都可能出現，盡管WordPress提供了相容性的資訊，不過很難第一時間更新，只有你自己試了才知道^^&#8221;，目前外掛版本1.50與目前WP版本2.9.2，從右圖看來就知道資料不足，無法判斷相容性！</p>
<p><span id="more-321"></span></p>
<p>使用Atahualpa 3佈景主體的好處是，選項配置已經支援WP-PostRatings，只要將<span style="color: #0000ff;">%wp-postratings%</span>字串填入想要的配置參數內即可。</p>
<h3>步驟</h3>
<ol>
<li>刪除 &#8220;<span style="color: #ff6600;">Ratings Vote Text:</span>&#8221; 中的&lt;br /&gt;%RATINGS_TEXT% 字串<br />
<a href="http://blog.bossyang.com/wp-content/uploads/2010/02/wp-postratings-admin-block.png"><img class="size-full wp-image-333 alignnone" title="wp-postratings-admin-block" src="http://blog.bossyang.com/wp-content/uploads/2010/02/wp-postratings-admin-block.png" alt="WP-PostRatings Admin Block" width="147" height="139" /></a><a href="http://blog.bossyang.com/wp-content/uploads/2010/02/ratings_template_vote_text_area.png"><img class="alignnone size-thumbnail wp-image-337" title="Ratings Template - Vote Text" src="http://blog.bossyang.com/wp-content/uploads/2010/02/ratings_template_vote_text_area-150x150.png" alt="Ratings Template - Vote Text" width="150" height="150" /></a><a href="http://blog.bossyang.com/wp-content/uploads/2010/02/ratings_template_vote_text_area.png"> </a></li>
<li>刪除 &#8220;Ratings Nont:&#8221; 中的&lt;br /&gt;%RATINGS_TEXT% 字串<br />
<a href="http://blog.bossyang.com/wp-content/uploads/2010/02/ratings_template_ratings_none.png"><img class="size-thumbnail wp-image-335 alignnone" title="Ratings Template - Ratings None" src="http://blog.bossyang.com/wp-content/uploads/2010/02/ratings_template_ratings_none-150x150.png" alt="Ratings Template - Ratings None" width="150" height="150" /></a></li>
<li>變更 Page/Post Info Items 選項<br />
<a href="http://blog.bossyang.com/wp-content/uploads/2010/02/atahualpa3_Edit_Post_Info_Items.png"><img class="alignnone size-thumbnail wp-image-340" title="Atahualpa Theme Options - Edit Post Info Items" src="http://blog.bossyang.com/wp-content/uploads/2010/02/atahualpa3_Edit_Post_Info_Items-150x150.png" alt="Atahualpa Theme Options - Edit Post Info Items" width="150" height="150" /></a><a href="http://blog.bossyang.com/wp-content/uploads/2010/02/atahualpa3_Post_Info_Items_BYLINE.png"><img class="size-thumbnail wp-image-329 alignnone" title="atahualpa3_Post_Info_Items_BYLINE" src="http://blog.bossyang.com/wp-content/uploads/2010/02/atahualpa3_Post_Info_Items_BYLINE-150x150.png" alt="atahualpa 3 &gt; Post Info Items / BYLINE" width="150" height="150" /></a></li>
<li>點擊 &#8220;Save Changes&#8221;</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.bossyang.com/atahualpa_wp-postratings.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[外掛] Syntax Highlighting</title>
		<link>http://blog.bossyang.com/syntax-highlighting.html</link>
		<comments>http://blog.bossyang.com/syntax-highlighting.html#comments</comments>
		<pubDate>Thu, 11 Feb 2010 03:55:06 +0000</pubDate>
		<dc:creator>Boss Yang</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[外掛]]></category>

		<guid isPermaLink="false">http://blog.bossyang.com/?p=189</guid>
		<description><![CDATA[WP-Syntax &#38; CodeColorer 多數的程式語法格式化插件都是基於GeSHi專案延伸而來，WP-Syntax也不例外，之前編寫Wiki文件時就已經習慣這樣的格式化功能，程式人的部落格站台裡沒有這樣的套件還挺困擾的呢！老實說有些語言格式化預設樣式並不是很討喜，偏偏我不太有美感，也懶得去改CSS，理想是能顯示出 TextMate IR_Black theme 風格，另一套 CodeColorer也很類似，算是WP-Syntax的加強版，標籤額外控制參數較多。不過兩者似乎不能並存，暫時先用CodeColorer看看。目前遇到的問題是，預覽完程式碼縮排會不見！可能是Visual/HTML編輯模式交替使用，解析器自動將某些字元轉換之故。 使用rails測試： &#60;h1&#62;Change My Password&#60;/h1&#62; &#60;%# :user is the name of the model and @user is the actual object being edited. %&#62; &#60;% form_for @user, :url =&#62; password_reset_path, :method =&#62; :put do &#8230; <a href="http://blog.bossyang.com/syntax-highlighting.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>WP-Syntax &amp; CodeColorer</h3>
<p>多數的程式語法格式化插件都是基於<a href="http://qbnz.com/highlighter/">GeSHi</a>專案延伸而來，<a title="WordPress &gt; WP-Syntax plugin" href="http://wordpress.org/extend/plugins/wp-syntax/" target="_blank">WP-Syntax</a>也不例外，之前編寫Wiki文件時就已經習慣這樣的格式化功能，程式人的部落格站台裡沒有這樣的套件還挺困擾的呢！老實說有些語言格式化預設樣式並不是很討喜，偏偏我不太有美感，也懶得去改CSS，理想是能顯示出 <a title="The last TextMate theme you'll ever need" href="http://blog.infinitered.com/entries/show/2" target="_blank">TextMate IR_Black theme</a> 風格，另一套 <a title="WordPress &gt; CodeColorer plugin" href="http://wordpress.org/extend/plugins/codecolorer/" target="_blank">CodeColorer</a>也很類似，算是WP-Syntax的加強版，標籤額外控制參數較多。不過兩者似乎不能並存，暫時先用CodeColorer看看。目前遇到的問題是，<span style="color: #ff0000;">預覽完程式碼縮排會不見</span>！可能是Visual/HTML編輯模式交替使用，解析器自動將某些字元轉換之故。</p>
<p>使用rails測試：</p>
<div class="codecolorer-container rails twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="rails codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;h1&gt;Change My Password&lt;/h1&gt;<br />
<span style="color:#006600; font-weight:bold;">&lt;%</span><span style="color:#008000; font-style:italic;"># :user is the name of the model and @user is the actual object being edited. %&gt;</span> <br />
<span style="color:#006600; font-weight:bold;">&lt;%</span> <span style="color:#5A0A0A; font-weight:bold;">form_for</span> <span style="color:#0066ff; font-weight:bold;">@user</span>, <span style="color:#ff3333; font-weight:bold;">:url</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> password_reset_path, <span style="color:#ff3333; font-weight:bold;">:method</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:put</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>f<span style="color:#006600; font-weight:bold;">|</span> <span style="color:#006600; font-weight:bold;">%&gt;</span><br />
&nbsp; <span style="color:#006600; font-weight:bold;">&lt;%</span>= f.<span style="color:#9900CC;">error_messages</span> <span style="color:#006600; font-weight:bold;">%&gt;</span><br />
&nbsp; <span style="color:#006600; font-weight:bold;">&lt;%</span>= f.<span style="color:#9900CC;">label</span> <span style="color:#ff3333; font-weight:bold;">:password</span> <span style="color:#006600; font-weight:bold;">%&gt;</span>&lt;br /&gt;<br />
&nbsp; <span style="color:#006600; font-weight:bold;">&lt;%</span>= f.<span style="color:#5A0A0A; font-weight:bold;">password_field</span> <span style="color:#ff3333; font-weight:bold;">:password</span> <span style="color:#006600; font-weight:bold;">%&gt;</span>&lt;br /&gt;<br />
&nbsp; &lt;br /&gt;<br />
&nbsp; <span style="color:#006600; font-weight:bold;">&lt;%</span>= f.<span style="color:#9900CC;">label</span> <span style="color:#ff3333; font-weight:bold;">:password_confirmation</span> <span style="color:#006600; font-weight:bold;">%&gt;</span>&lt;br /&gt;<br />
&nbsp; <span style="color:#006600; font-weight:bold;">&lt;%</span>= f.<span style="color:#5A0A0A; font-weight:bold;">password_field</span> <span style="color:#ff3333; font-weight:bold;">:password_confirmation</span> <span style="color:#006600; font-weight:bold;">%&gt;</span>&lt;br /&gt;<br />
&nbsp; &lt;br /&gt;<br />
&nbsp; <span style="color:#006600; font-weight:bold;">&lt;%</span>= f.<span style="color:#9900CC;">submit</span> <span style="color:#996600;">&quot;Update my password and log me in&quot;</span> <span style="color:#006600; font-weight:bold;">%&gt;</span><br />
<span style="color:#006600; font-weight:bold;">&lt;%</span> <span style="color:#9966CC; font-weight:bold;">end</span> <span style="color:#006600; font-weight:bold;">%&gt;</span></div></div>
<p><span id="more-189"></span><br />
使用ruby測試，使用blackboard樣式，去掉水平捲軸，加上行號，設定寬度480，奇怪的是在Firefox中上下會多出黑色框，作者的網站卻不會出現，不知道是樣式問題還是？</p>
<div class="codecolorer-container ruby blackboard" style="border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#9966CC; font-weight:bold;">class</span> Notifier <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">ActionMailer::Base</span><br />
&nbsp; default_url_options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:host</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#996600;">&quot;bossyang.com&quot;</span><br />
<br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">def</span> password_reset_instructions<span style="color:#006600; font-weight:bold;">&#40;</span>user<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; subject <span style="color:#996600;">&quot;Password Reset Instructions&quot;</span><br />
&nbsp; &nbsp; from <span style="color:#996600;">&quot;CupCake Inc. Notifier&quot;</span><br />
&nbsp; &nbsp; recipients user.<span style="color:#9900CC;">email</span><br />
&nbsp; &nbsp; sent_on <span style="color:#CC00FF; font-weight:bold;">Time</span>.<span style="color:#9900CC;">now</span><br />
&nbsp; &nbsp; body <span style="color:#ff3333; font-weight:bold;">:edit_password_reset_url</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> edit_password_reset_url<span style="color:#006600; font-weight:bold;">&#40;</span>user.<span style="color:#9900CC;">perishable_token</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
<span style="color:#9966CC; font-weight:bold;">end</span></div></td></tr></tbody></table></div>
<h3>WP-Termial</h3>
<p>如果要表現命令列語法呢？mismone提供了<a title="WordPress &gt; WP-Terminal plugin" href="http://wordpress.org/extend/plugins/wp-terminal/" target="_blank">WP-Terminal</a>插件。用法很簡單，但有時候不想顯示提示字元，也不知道怎樣關掉？</p>

<div class="wp-terminal">user@computer:$ ls -a<br/></div>

<p>命令多行範例：</p>

<div class="wp-terminal">user@computer:$ script/plugin install  	 git://github.com/aeden/activewarehouse.git<br/><br/>gem install activewarehouse<br/><br/>gem install gemsonrails<br/><br/>rake gems:link GEM=activewarehouse<br/></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.bossyang.com/syntax-highlighting.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NextGEN Gallery plugin</title>
		<link>http://blog.bossyang.com/nextgen-gallery-plugin.html</link>
		<comments>http://blog.bossyang.com/nextgen-gallery-plugin.html#comments</comments>
		<pubDate>Wed, 20 Jan 2010 02:49:58 +0000</pubDate>
		<dc:creator>Boss Yang</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[外掛]]></category>
		<category><![CDATA[相簿]]></category>

		<guid isPermaLink="false">http://blog.bossyang.com/?p=52</guid>
		<description><![CDATA[現在的部落格文章除了圖文並茂，分享相簿也是很常見的功能。Willis說使用Flickr有容量限制，既然都自己買主機服務了，應該可以突破這個限制，只不過預設wordpress沒有相簿功能，得依賴外掛。看了好幾套，覺得nextgen-gallery還不錯，就研究看看吧。 花一點時間就可以上手，值得推薦。目前為止的缺憾就是受限於PHP檔案上傳大小與可用記憶體限制，必須將來源檔全部resize，實在麻煩呀！ installation 安裝上沒有多大問題，WP的外掛安裝很方便，應該不用多作描述。 Concept 一開始比較不容易理解的是ablum與gallery的差異，中文翻成相本與相簿實在很難知道差異，gallery可解釋成美術館, 藝廊, 照相館等等，就好比iPhoto裡的『事件』，概念也類似素材庫，是一切照片上傳的開始，album解釋成相簿沒多大問題，通常是針對特定主題或人物，挑選特定的照片集合而成。例如，『女兒的成長相簿』，可能擷取自『2009/4 台中醫院誕生』，『 2009/5 坐月子』等事件照片。 watermark nggallery提供浮水印功能。由於還沒有自己專屬的浮水印，因此使用文字內容當作浮水印，再讓程式將效果套用到相片內，就好像蓋章一樣，但請小心，這直接改變你上傳的檔案。如果事後變更了圖樣或是文字，重新套用可就不妙了。Oops~我就不小心套用兩次，左下角與右下角都出現watermark &#62;&#8221;&#60; slideshow 幻燈片秀必須搭配JW Image Rotator flash元件。3.18版，轉場似乎都會出現jwplayer字樣遮罩，我試著換成較早一版3.17就沒有這個問題。 用在商業網站的效果也不錯，Austin Cake Ball 上面令人垂涎的巧克力球幻燈片，就是使用這個flash元件。 Meta &#38; Tag 每張圖片都可以寫metadata，照片多的時候，編寫起來會有點煩。另外nggallery也支援標籤，方便事後作搜尋集合。 Sidebar Widget 這個側邊小元件可以隨機顯示相簿內的照片，預設是四張。設定項目相當精細，除了可修改顯示數量，還可以設定使用哪些gallery相片。]]></description>
			<content:encoded><![CDATA[<p>現在的部落格文章除了圖文並茂，分享相簿也是很常見的功能。<a title="Willis Blog" href="http://blog.whomesite.org" target="_blank">Willis</a>說使用Flickr有容量限制，既然都自己買主機服務了，應該可以突破這個限制，只不過預設wordpress沒有相簿功能，得依賴外掛。看了好幾套，覺得nextgen-gallery還不錯，就研究看看吧。</p>
<p>花一點時間就可以上手，值得推薦。目前為止的缺憾就是受限於PHP檔案上傳大小與可用記憶體限制，必須將來源檔全部resize，實在麻煩呀！
<a href="http://blog.bossyang.com/wp-content/gallery/nextgen/nggallery_sever_settings_0.png" title="" class="shutterset_singlepic7" >
	<img class="ngg-singlepic ngg-right" src="http://blog.bossyang.com/wp-content/gallery/cache/7_watermark_320x240_nggallery_sever_settings_0.png" alt="nggallery_sever_settings_0" title="nggallery_sever_settings_0" />
</a>
</p>
<h3>installation</h3>
<p>安裝上沒有多大問題，WP的外掛安裝很方便，應該不用多作描述。</p>
<h3>Concept</h3>
<p>一開始比較不容易理解的是<strong><span style="color: #0000ff;"><em>ablum</em></span></strong>與<strong><span style="color: #0000ff;"><em>gallery</em></span></strong>的差異，中文翻成相本與相簿實在很難知道差異，gallery可解釋成美術館, 藝廊, 照相館等等，就好比<a title="iPhoto" href="http://www.apple.com/tw/ilife/iphoto/" target="_blank">iPhoto</a>裡的『事件』，概念也類似素材庫，是一切照片上傳的開始，album解釋成相簿沒多大問題，通常是針對特定主題或人物，挑選特定的照片集合而成。例如，『女兒的成長相簿』，可能擷取自『2009/4 台中醫院誕生』，『 2009/5 坐月子』等事件照片。</p>
<p><span id="more-52"></span></p>
<h3>watermark</h3>
<p>nggallery提供浮水印功能。由於還沒有自己專屬的浮水印，因此使用文字內容當作浮水印，再讓程式將效果套用到相片內，就好像蓋章一樣，但請小心，這直接改變你上傳的檔案。如果事後變更了圖樣或是文字，重新套用可就不妙了。Oops~我就不小心套用兩次，左下角與右下角都出現watermark &gt;&#8221;&lt;</p>
<h3>slideshow</h3>
<p>幻燈片秀必須搭配<a href="http://www.jeroenwijering.com/?item=JW_Image_Rotator">JW Image Rotator</a> flash元件。3.18版，轉場似乎都會出現<strong><span style="color: #ff6600;">jwplayer</span></strong>字樣遮罩，我試著換成較早一版3.17就沒有這個問題。
<a href="http://blog.bossyang.com/wp-content/gallery/nextgen/jwplayer_madrid3.png" title="" class="shutterset_singlepic5" >
	<img class="ngg-singlepic ngg-right" src="http://blog.bossyang.com/wp-content/gallery/cache/5__320x240_jwplayer_madrid3.png" alt="jwplayer_madrid3" title="jwplayer_madrid3" />
</a>
</p>
<p>用在商業網站的效果也不錯，<a title="Austin Cake Ball" href="http://www.austincakeball.com/" target="_blank">Austin Cake Ball</a> 上面令人垂涎的巧克力球幻燈片，就是使用這個flash元件。</p>
<h3>Meta &amp; Tag</h3>
<p>每張圖片都可以寫metadata，照片多的時候，編寫起來會有點煩。另外nggallery也支援標籤，方便事後作搜尋集合。</p>
<h3>Sidebar Widget</h3>
<p>這個側邊小元件可以隨機顯示相簿內的照片，預設是四張。設定項目相當精細，除了可修改顯示數量，還可以設定使用哪些gallery相片。
<a href="http://blog.bossyang.com/wp-content/gallery/nextgen/nextgen_widget_config.png" title="" class="shutterset_singlepic4" >
	<img class="ngg-singlepic ngg-right" src="http://blog.bossyang.com/wp-content/gallery/cache/4__320x240_nextgen_widget_config.png" alt="nextgen_widget_config" title="nextgen_widget_config" />
</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bossyang.com/nextgen-gallery-plugin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

