<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="ja" xmlns="http://www.w3.org/2005/Atom">
    <title>wa - NucleusやFlashなどなど</title>
	<subtitle>ブログツール Nucleus CMS に関する情報や、プラグインの配布など</subtitle>
	<id>http://wa.otesei.com/:1</id>

    <link rel="alternate" type="text/html" href="http://wa.otesei.com/" />
    <link rel="self" type="application/atom+xml" href="http://wa.otesei.com/atom.php" />
    <generator uri="http://nucleuscms.org/">Nucleus CMS v3.3</generator>
    <updated>2008-02-17T07:20:00Z</updated>

    <entry>
 <title type="html"><![CDATA[ルービックキューブプラグイン v0.0.1]]></title>
 <link rel="alternate" type="text/html" href="http://wa.otesei.com/?itemid=467" />
 <author>
  <name>sato</name>
 </author>
 <updated>2008-02-17T07:20:00Z</updated>
 <published>2008-02-17T16:20:00+09:00</published>
 <content type="html"><![CDATA[久々、作ってて楽しかった。<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_biggrin.gif" alt=":-D" class="znsm_img" /><br />
スピードキュービング用ルービックキューブを購入したんだけど、時計で測るのは結構大変なので、計測タイマーをJavaScriptで組んでみました。プラグイン自体は1時間程度でできたんですが、解法図を作るのに丸一日かけてしまいました。（今後のバージョンアップで、グラフ表示や構想機能などを実装できればいいなぁと思ってますが、、たぶんしないな。。）<br />
初めてルービックキューブの面白さを知ってから2年と5ヶ月、「ルービックキューブって意外と頭使わないんだなぁ。」なんて思ってましたが、あまかった。スピード重視すると突然難しくなるみたい。。<br />
あと、計測するとなると緊張して、余計な時間がかかったり、失敗したりする。奥が深いなぁ。<br />
ちなみに、2008.02現在、平均で70秒台です。まだまだ、必要最低限のパターンしか覚えてないので、楽しみはてんこ盛りです。今年の目標値は、40秒台だ！<br />
<br />
<a href="http://wa.otesei.com/NP_znSpeedCubing" title="NP_znSpeedCubing解説ページ">NP_znSpeedCubing解説ページ</a>からダウンロードできます。（この記事で紹介しているver0.0.1が最新版です。）<br />
<br />
<a href="atom.php?imagepopup=plug/znSpeedCubing_admin01.gif&amp;width=374&amp;height=217&amp;imagetext=%E3%82%BF%E3%82%A4%E3%83%9E%E3%83%BC" onclick="window.open(this.href,'imagepopup','status=no,toolbar=no,scrollbars=no,resizable=yes,width=374,height=217');return false;" class="thumbnail"><img src="http://wa.otesei.com/media/thumbnail/plug_znSpeedCubing_admin01.gif" width="200" height="116" alt="タイマー" title="タイマー" /></a><br />
<a href="atom.php?imagepopup=plug/znSpeedCubing_admin.gif&amp;width=1271&amp;height=840&amp;imagetext=%5BOLL%5D%5BPLL%5D" onclick="window.open(this.href,'imagepopup','status=no,toolbar=no,scrollbars=no,resizable=yes,width=1271,height=840');return false;" class="thumbnail"><img src="http://wa.otesei.com/media/thumbnail/plug_znSpeedCubing_admin.gif" width="200" height="132" alt="[OLL][PLL]" title="[OLL][PLL]" /></a>]]></content>
 <id>http://wa.otesei.com/:1:467</id>
</entry><entry>
 <title type="html"><![CDATA[スピードキュービングプラグイン]]></title>
 <link rel="alternate" type="text/html" href="http://wa.otesei.com/?itemid=465" />
 <author>
  <name>sato</name>
 </author>
 <updated>2008-02-17T07:18:27Z</updated>
 <published>2008-02-17T16:18:27+09:00</published>
 <content type="html"><![CDATA[<div><img src="http://wa.otesei.com/znplug/img/NP_znSpeedCubing.gif" alt="znSpeedCubing" style="margin: 0 10px 2px 0; float: left;" />
ルービックキューブのスピード計測と記録を行うプラグイン</div>
最新バージョン（ver0.0.1）の解説です。<h3>解説</h3>
<div class="item_indent"><h5>使い方</h5>

<h6>計測</h6>
アイテム投稿<br />
<img src="http://wa.otesei.com/media/plug/znSpeedCubing_admin01.gif" /><br />
「Speed Timer On」チェックボックスにチェックを入れると、計測モードになります。スペースバーを押すたび「開始」「終了」となり、テキストボックスにタイムが追加されていきます。（Firefoxでは、漢字入力がオンになっていると動作しません。）


<h6>解法表示</h6>
アイテム投稿<br />

<a href="http://wa.otesei.com?imagepopup=plug/znSpeedCubing_admin.gif&amp;width=1271&amp;height=840&amp;imagetext=%5BOLL%5D%5BPLL%5D" onclick="window.open(this.href,'imagepopup','status=no,toolbar=no,scrollbars=no,resizable=yes,width=1271,height=840');return false;" class="thumbnail"><img src="http://wa.otesei.com/media/thumbnail/plug_znSpeedCubing_admin.gif" alt="[OLL][PLL]" title="[OLL][PLL]" height="132" width="200"></a><br />
3*3の「OLL」パターン57種類、「PLL」パターン21種類の解法画像を表示します。[OLL] [PLL]リンクをクリックすることで、表示・非表示の切り替えが可能です。
<p>注意）ルービックキューブ「スピードキュービングキット」に付属していた攻略書を基にしましたが、間違いを2箇所見つけました。他にも間違いが存在する可能性もあります。（見つけた方は、コメントいただけるとうれしいです。）</p>


<h6>テンプレート表示</h6>
&lt;%znSpeedCubing(average)%&gt;で、計測時間の平均値を表示します。（最短・最長時間を省きません。）


<h6>Amazon</h6>
<iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=wa0d-22&o=9&p=8&l=as1&asins=B000RHKZRE&IS1=1&fc1=000000&lt1=_blank&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>指先を使うルービックキューブは、ボケ防止にぴったり。オススメです。</div>
<h3>ダウンロード</h3>
<div class="item_indent"><a href='http://wa.otesei.com/action.php?action=plugin&amp;name=LinkCounter&amp;type=c&amp;k=NP_znSpeedCubing_0_0_1.zip'><img src="http://wa.otesei.com/media/plug/download.gif" alt="download" class="download-icon" />0.0.1.zip</a>[34clicks]<br /></div>
<h3>変更点</h3>
<div class="item_indent"><ul><li>新規作成</li></ul></div>
<br />
<h3>バージョン経歴</h3><br /><div class="item_indent"><table><thead><tr><th>Ver</th><th>Update</th><th>Download</th></tr></thead><tbody><tr onmouseover="focusRow(this);" onmouseout="blurRow(this);"><td><span class="atteR">最新</span><br /><a href="http://wa.otesei.com/NP_znSpeedCubing-ver=0.0.1" title="0.0.1の解説ページへ">0.0.1</a></td><td><ul><li>新規作成</li></ul></td><td><a href='http://wa.otesei.com/action.php?action=plugin&amp;name=LinkCounter&amp;type=c&amp;k=NP_znSpeedCubing_0_0_1.zip'><img src="http://wa.otesei.com/media/plug/download.gif" alt="download" class="download-icon" />0.0.1.zip</a>[34clicks]<br /></td></tr></tbody></table><img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_exclamation.gif" alt=":!!:" class="znsm_img" /><img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_arrow_top.gif" alt=":arwtop:" class="znsm_img" />verをクリックすると、各verの解説に切り替わります。<br /><br /><div class="say2"><div class="say4"><div class="say6"><div class="say8"><div class="say1"><div class="say3"><div class="say7"><div class="say9">プラグインのバージョンアップ情報をRSSで配信しています。バグ情報などもお届けいたしますので、拙作プラグインをお使いの際には、是非RSSリーダーにご登録ください。<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_exclamation.gif" alt=":!!:" class="znsm_img" /><a href="http://wa.otesei.com/plug_ver_rss.php" title="右クリックからコピーして、RSSリーダーにご登録ください。">佐藤（な）作成・改造のプラグインバージョンアップ情報RSS</a></div></div></div></div></div></div></div></div></div>]]></content>
 <id>http://wa.otesei.com/:1:465</id>
</entry><entry>
 <title type="html"><![CDATA[スピードキュービングキットきた]]></title>
 <link rel="alternate" type="text/html" href="http://wa.otesei.com/?itemid=462" />
 <author>
  <name>sato</name>
 </author>
 <updated>2008-02-13T15:25:26Z</updated>
 <published>2008-02-14T00:25:26+09:00</published>
 <content type="html"><![CDATA[<div class="leftbox"><img src="http://wa.otesei.com/media/1/SANY0052.jpg" width="200" height="150" alt="スピードキュービングキット" title="スピードキュービングキット" /></div><div class="rightbox"><img src="http://wa.otesei.com/media/1/SANY0087.jpg" width="200" height="150" alt="2*2" title="2*2" /></div>先月amazonで頼んでたnewキューブが（8日に）届いた。（もう14日かぁ）<br />
スピードキューブ用で、センターキューブのところのネジを調節できて、専用のグリスまで付いてます。3個目にしてようやくスピードキューブに挑戦しようかと思って購入しました。通常のルービックキューブより、数百円しか違わないのはうれしい。（っていうか、近所のおもちゃ屋さんに置いてある通常キューブより安い。）肝心な「動き」は、前の2つに比べて、格段に回し易いですねぇ。すばらしい。<br />
<br />
で、早速特訓だと思ったら、、、攻略本が見つからない。（まだまだ、LBL法の基本中の基本、完成に最低限必要なパターンしか覚えてないのに。）一緒に買えば良かった。うぅ。<br />
指先を使って、ボケ防止にぴったりなルービックキューブ。長い付き合いになりそうです。（オススメですよ。）<br />
あと、「長女（6歳）の誕生日プレゼントに追加」と言い張って、2*2を購入。<br />
これが意外と難しくって、自力でできませんでした。orz]]></content>
 <id>http://wa.otesei.com/:1:462</id>
</entry><entry>
 <title type="html"><![CDATA[スキン・テンプレ変数紹介ブログ復活]]></title>
 <link rel="alternate" type="text/html" href="http://wa.otesei.com/?itemid=459" />
 <author>
  <name>sato</name>
 </author>
 <updated>2008-02-01T17:24:49Z</updated>
 <published>2008-02-02T02:24:49+09:00</published>
 <content type="html"><![CDATA[ドメイン更新を忘れて消滅して、別ドメインでまわしてたスキン・テンプレ変数紹介ブログが、元のurlで復活しました。<br />
<a href="http://reference.nucleus.satona.net/">http://reference.nucleus.satona.net/</a><br />
<br />
「有効期限切れドメインの更新も可能な場合がある」って<a href="http://nucleus.datoka.jp/" class="znkwl" target='_blank' title="yuさん">yuさん</a>に教えてもらって、ムームードメインのコンパネ見てみたら、一瞬で復活しました。知らなかった。<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_redface.gif" alt=":oops:" class="znsm_img" /><br />
yuさん、ありがとう。<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_heart.gif" alt=":heart:" class="znsm_img" /><br />
<br />
あと、<br />
レンタルサーバーの更新忘れで消滅している、各種<a href="http://nucleus.plugins.jp/" class="znkwl" title="プラグイン紹介ブログ">プラグイン紹介ブログ</a>。<br />
どうすんべ。]]></content>
 <id>http://wa.otesei.com/:1:459</id>
</entry><entry>
 <title type="html"><![CDATA[かすたむあどみん v0.6.4 同梱ミス2]]></title>
 <link rel="alternate" type="text/html" href="http://wa.otesei.com/?itemid=457" />
 <author>
  <name>sato</name>
 </author>
 <updated>2008-01-30T15:47:44Z</updated>
 <published>2008-01-31T00:47:44+09:00</published>
 <content type="html"><![CDATA[CUSTOMFACTORY.phpが旧版でした。<br />
うぅ、ごめんなさい。更新しときました。<br />
<br />
<a href="http://wa.otesei.com/NP_znCustomAdmin">かすたむあどみん</a>]]></content>
 <id>http://wa.otesei.com/:1:457</id>
</entry><entry>
 <title type="html"><![CDATA[かすたむあどみん v0.6.4 同梱ミス]]></title>
 <link rel="alternate" type="text/html" href="http://wa.otesei.com/?itemid=454" />
 <author>
  <name>sato</name>
 </author>
 <updated>2008-01-28T14:59:00Z</updated>
 <published>2008-01-28T23:59:00+09:00</published>
 <content type="html"><![CDATA[たびたびすみません。<br />
言語ファイル化するときに、同梱ファイルをミスりました。。<br />
Jugglerさん、ご指摘ありがとうございます。（感謝<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_heart.gif" alt=":heart:" class="znsm_img" />）<br />
<br />
ダウンロードファイル上書きしてあります。（＆NP_znSpecialTemplatePartsの同梱もやめました。）]]></content>
 <id>http://wa.otesei.com/:1:454</id>
</entry><entry>
 <title type="html"><![CDATA[MODxセミナー in 名古屋]]></title>
 <link rel="alternate" type="text/html" href="http://wa.otesei.com/?itemid=445" />
 <author>
  <name>sato</name>
 </author>
 <updated>2008-01-26T18:50:53Z</updated>
 <published>2008-01-27T03:50:53+09:00</published>
 <content type="html"><![CDATA[<a href="http://wiki.modx.jp/index.php/top">MODx</a>セミナに行ってきましたー。<br />
90分の短い時間内に、特徴、サイト実例、インストールから、静的htmlをテンプレート化する実演など、、とても分かりやすくて楽しいセミナでした。<br />
<a href="http://www.liolion.info/modx/">MEGUさん</a>、<a href="http://kyms.ne.jp/">やまさん</a>、おつかれさまでした。<br />
<br />
<div class="leftbox"><img src="http://wa.otesei.com/media/1/200801261816000.jpg" width="176" height="144" alt="懇親会" title="懇親会" /></div><div class="rightbox"><img src="http://wa.otesei.com/media/1/200801261932000.jpg" width="176" height="144" alt="クリエイターズSecondLife" title="クリエイターズSecondLife" /></div><br />
懇親会は、「<a href="http://www.yamachan.co.jp/">世界の山ちゃん</a>」（最近、山ちゃん率高過ぎです。ほぼ100%）。<br />
「クリエイターズSecondLife」の著者の<a href="http://k-kanada.jp/">ikukoさん</a>も参加されてて、その本をジャンケンプレゼントしてくださったのですが、なんと、ぼくがゲットしちゃいました。<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_heart.gif" alt=":heart:" class="znsm_img" /><br style="clear: both;" /><br />
<div class="leftbox"><a href="atom.php?imagepopup=1/20080126_3.jpg&amp;width=400&amp;height=300&amp;imagetext=MODx" onclick="window.open(this.href,'imagepopup','status=no,toolbar=no,scrollbars=no,resizable=yes,width=400,height=300');return false;" class="thumbnail"><img src="http://wa.otesei.com/media/thumbnail/1_20080126_3.jpg" width="200" height="150" alt="MODx" title="MODx" /></a></div><div class="rightbox"><a href="atom.php?imagepopup=1/20080126_4.jpg&amp;width=400&amp;height=300&amp;imagetext=%E3%82%AF%E3%83%AA%E3%82%A8%E3%82%A4%E3%82%BF%E3%83%BC%E3%82%BASecondLife" onclick="window.open(this.href,'imagepopup','status=no,toolbar=no,scrollbars=no,resizable=yes,width=400,height=300');return false;" class="thumbnail"><img src="http://wa.otesei.com/media/thumbnail/1_20080126_4.jpg" width="200" height="150" alt="クリエイターズSecondLife" title="クリエイターズSecondLife" /></a></div><br />
無理やりサインをお願いしちゃってすみません。（やまさんの<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_heart.gif" alt=":heart:" class="znsm_img" />マークはぼくのリクエストです。<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_mrgreen.gif" alt=":mrgreen:" class="znsm_img" />）<br />
<br />
<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_arrow_bottom.gif" alt=":arwbottom:" class="znsm_img" />絶賛発売中<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_exclamation.gif" alt=":!!:" class="znsm_img" /><br />
ISBN 978-4881665732 ： MODxでつくる! 最強のCMSサイト<br />
ISBN 978-4798114361 ： クリエイターズ Second Life セカンドライフでもの作りしたい人が読む本<br />
<br style="clear: both;" /><br />
「鉄は熱いうちに打て」（使い方ちがうか、、）じゃないけど、ひそかに作って放置してあったMODx実験サイト「MODx * NUCLEUS」をいじってみようかと思ったら、、、<br />
なんてこったい、ちょうど本日27日、ドメイン失効しちゃってました。<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_ga.gif" alt=":[]" class="znsm_img" />なんという偶然。<br />
<br />
Nucleusのプラグインを紹介するブログといい、、契約更新忘れ過ぎです。若年性健忘症か？orz<br />
やりたいことが多過ぎて、集中力が散漫になってるんだな。ということにしとこう。。とりあえず、今年の目標は、ルービックキューブ40秒台。（違]]></content>
 <id>http://wa.otesei.com/:1:445</id>
</entry><entry>
 <title type="html"><![CDATA[へりうむスキン修正]]></title>
 <link rel="alternate" type="text/html" href="http://wa.otesei.com/?itemid=441" />
 <author>
  <name>sato</name>
 </author>
 <updated>2008-01-22T15:01:00Z</updated>
 <published>2008-01-23T00:01:00+09:00</published>
 <content type="html"><![CDATA[すみません、<a href="http://wa.otesei.com/NP_znCustomAdmin">かすたむあどみん</a>に同梱しているAdminスキン、「へりうむ」のJavaScriptにバグがあったので、差し替えておきました。<br />
<br />
「へりうむ」では、アイテム投稿時のオートセーブ機能を外しているのですが、NucleusコアPAGEFACTORY.phpに、「doMonitor()」がハードコードされているので、「notfound doMonitor」が出てました。<br />
ということで、JavaScriptに「function doMonitor(){}」を足しただけです。<br />
<br />
2008/01/23 00:00 より前にダウンロードした方、お手数ですがダウンロードし直してください。<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_redface.gif" alt=":oops:" class="znsm_img" />]]></content>
 <id>http://wa.otesei.com/:1:441</id>
</entry><entry>
 <title type="html"><![CDATA[かすたむあどみん v0.6.4]]></title>
 <link rel="alternate" type="text/html" href="http://wa.otesei.com/?itemid=434" />
 <author>
  <name>sato</name>
 </author>
 <updated>2008-01-21T14:25:00Z</updated>
 <published>2008-01-21T23:25:00+09:00</published>
 <content type="html"><![CDATA[バグあるまま放置していた、かすたむあどみんに、ブックマークレットアイテム投稿画面のカスタマイズ機能や、ポップアップヘルプ機能などをつけました。<br />
あと、、<br />
マルチランゲージ化するのに、自動ツールを使っているためにソースコードがとても見難く、改造など、とてもし難い状態になってしまっていると思います。<br />
これからはコメント付きのソースコードのソース（？）も付けて公開するようにしたいと思います。（コメント付きは、utf-8のみです。）<br />
<br />
ブックマークレット投稿画面は、<a href="http://japan.nucleuscms.org/wiki/plugins:addopen">NP_AddOpen</a>を使うと便利です。<a href="http://nakahara21.com/" class="znkwl" target='_blank' title="まみおさん">まみおさん</a>感謝<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_chinchilla.gif" alt=":chin:" class="znsm_img" /><br />
<br />
<a href="http://wa.otesei.com/NP_znCustomAdmin" title="NP_znCustomAdmin解説ページ">NP_znCustomAdmin解説ページ</a>からダウンロードできます。（この記事で紹介しているver0.6.4が最新版です。）<br />
<a href="http://wa.otesei.com/NP_znSpecialTemplateParts" title="NP_znSpecialTemplateParts解説ページ">NP_znSpecialTemplateParts解説ページ</a>から、旧版・最新版のダウンロードができます。（この記事で紹介しているver0.0.4alphaは、2008-05-10現在、旧バージョンです。）]]></content>
 <id>http://wa.otesei.com/:1:434</id>
</entry><entry>
 <title type="html"><![CDATA[スペシャルテンプレートパーツ]]></title>
 <link rel="alternate" type="text/html" href="http://wa.otesei.com/?itemid=430" />
 <author>
  <name>sato</name>
 </author>
 <updated>2008-01-21T14:02:00Z</updated>
 <published>2008-01-21T23:02:00+09:00</published>
 <content type="html"><![CDATA[<div><img src="http://wa.otesei.com/znplug/img/NP_znSpecialTemplateParts.gif" alt="znSpecialTemplateParts" style="margin: 0 10px 2px 0; float: left;" />
プラグインに、独自テンプレートパーツを提供するプラグインです。<br />
（基本的、自分用プラグインです。<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_chinchilla.gif" alt="bunta" />）<br /><br /></div>
最新バージョン（ver0.0.5alpha）の解説です。<h3>解説</h3>
<div class="item_indent">プラグインに、独自テンプレートパーツを提供するプラグインです。<br />
<br />
一般に、プラグイン独自のデータは、プラグインオプションで定義する場合が多いのですが、グローバルオプションでは1セット、ブログオプションでは1ブログに対し1セットしか定義できず、複数の用途で共通の値を使いまわさなければならないということがよくあります。<br />
スペシャルテンプレートパーツを使用すると、各プラグインでは簡単に独自データの定義、呼び出しが可能になります。独自データの定義には、NP_znSpecialTemplatePartsが必要になりますが、呼び出しはNucleus標準の機能を使うため、このプラグインを介する必要はありません。データのインポート・エクスポートも可能です。（別環境へのデータ移行も楽になります。）<br />
<br />
<p>以下は、プラグイン開発者向けの説明です。<span style="color: orange; font-weight: bold;">NP_znSpecialTemplateParts必須の別プラグイン（NP_znCustomAdminなど）を使用するだけの場合、以下の内容を確認する必要はありません。</span></p>
<br />
<h5>スペシャルテンプレートパーツの作成</h5>
独自テンプレートパーツを使用するプラグイン側で、以下のようにパーツを定義します。<br />
<div class="pc"><code class="codebeautifier">
&nbsp;&nbsp;<span class="comment">/**<br />
&nbsp;&nbsp;&nbsp;*&nbsp;テンプレートパーツ定義<br />
&nbsp;&nbsp;&nbsp;*/</span><br />
&nbsp;&nbsp;<span class="reserved">function</span>&nbsp;getTemplateParts()<br />
&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span class="reserved">return</span>&nbsp;<span class="reserved">array</span>(<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="string_literal">'SUBMIT'</span>&nbsp;=&gt;&nbsp;<span class="string_literal">'メールタイトル'</span>,&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="string_literal">'BODY'</span>&nbsp;&nbsp;&nbsp;=&gt;&nbsp;<span class="string_literal">'メール本文'</span>,&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;);<br />
&nbsp;&nbsp;}
</code></div>
必要な準備は以上です。<br />
これで独自管理ページを作る必要もなくNucleus標準機能で独自パーツの管理ができるようになります。<br />
管理画面のテンプレート作成画面に、「テンプレートの種類」として対象プラグインの名前が列挙されるようになります。<br />
<img src="http://wa.otesei.com/media/plug/doc01.gif" width="575" height="326" alt="doc01" title="doc01" /><br />
テンプレートを作成し、編集画面に入ると、プラグインで定義した独自テンプレートパーツが増えています。<br />
<a href="http://wa.otesei.com?imagepopup=plug/doc02.gif&amp;width=610&amp;height=686&amp;imagetext=doc2" onclick="window.open(this.href,'imagepopup','status=no,toolbar=no,scrollbars=no,resizable=yes,width=610,height=686');return false;" class="thumbnail"><img src="http://wa.otesei.com/media/thumbnail/plug_doc02.gif" alt="doc2" title="doc2" height="200" width="178"></a><br />
<br />
<h5>スペシャルテンプレートパーツを使用する</h5>
各プラグインで、スペシャルテンプレートパーツを使用するために、NP_znSpecialTemplatePartsを介する必要はありません。Nucleus標準機能で、スペシャルテンプレートパーツを呼び出すことができます。（Nucleusの内部的には、作成された時点で「スペシャル」ではなく標準のパーツと同じ扱いになっています。）<br />
<div class="pc"><code class="codebeautifier">
&nbsp;&nbsp;<span class="reserved">global</span>&nbsp;<var>$manager</var>;<br />
&nbsp;&nbsp;<var>$template</var>&nbsp;=&nbsp;&amp;&nbsp;<var>$manager</var>-&gt;getTemplate(<var>$templateName</var>);
</code></div>
これだけで、複数のスペシャルテンプレートパーツがクエリ1発で取得できていますので、あとはもう煮るなり焼くなりどうにでもしちゃってください。<br />
<br />
例えば、こんな感じ。（&lt;%title%&gt;と、&lt;%itemid%&gt;を使えるテンプレートパーツ）<br />
<div class="pc"><code class="codebeautifier">
&nbsp;&nbsp;<var>$submitvals</var>&nbsp;&nbsp;&nbsp;=&nbsp;<span class="reserved">array</span>(<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span class="string_literal">'title'</span>&nbsp;&nbsp;=&gt;&nbsp;<var>$item</var>[<span class="string_literal">'title'</span>],&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span class="string_literal">'itemid'</span>&nbsp;=&gt;&nbsp;<var>$itemid</var>,&nbsp;<br />
&nbsp;&nbsp;);<br />
&nbsp;&nbsp;<var>$mailto_title</var>&nbsp;=&nbsp;TEMPLATE::fill(<var>$template</var>[<span class="string_literal">'SUBMIT'</span>],&nbsp;<var>$submitvals</var>);
</code></div>
上の例は、NP_NotifyCommentToAuthorっていう、コメントを著者に通知するプラグインの一部なんですが、スペシャルテンプレートパーツで通知メールの書式を定義するようにしています。<br />
<br />
さて、<br />
プラグインのデータをプラグインオプションで定義する場合は、デフォルト値を設定することができますよね。<br />
スペシャルテンプレートパーツを、汎用的に使用するなら、デフォルト値の設定も欲しいところです。<br />
<br />

<h5>スペシャルテンプレートパーツのデフォルト値を定義</h5>
独自テンプレートパーツを使用するプラグイン側で、以下のようにデフォルト値を定義します。（デフォルト値が必要ない場合、もちろん定義も必要ありません。<br />
<div class="pc"><code class="codebeautifier">
&nbsp;&nbsp;<span class="comment">/**<br />
&nbsp;&nbsp;&nbsp;*&nbsp;テンプレートパーツのデフォルト値定義<br />
&nbsp;&nbsp;&nbsp;*/</span><br />
&nbsp;&nbsp;<span class="reserved">function</span>&nbsp;getTemplatePartsDefaultValue()<br />
&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span class="reserved">return</span>&nbsp;<span class="reserved">array</span>(<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="string_literal">'SUBMIT'</span>&nbsp;=&gt;&nbsp;<span class="string_literal">'デフォルトの値をここに書きます。。'</span>,&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="string_literal">'BODY'</span>&nbsp;&nbsp;&nbsp;=&gt;&nbsp;<span class="string_literal">'デフォルトの値をここにかきます。。'</span>,&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;);<br />
&nbsp;&nbsp;}
</code></div>
これで、テンプレートを作成したときに、デフォルト値が入った状態になっています。<br />
<br />
最後に、
<h5>注意点</h5>
作成したテンプレートデータを、NP_znSpecialTemplatePartsがインストールされていない状態で再編集してしまうと、独自パーツは消えてなくなってしまいます。Nucleus標準機能でエクスポートできるので、こまめにバックアップすることをオススメします。（<a href="http://wa.otesei.com/NP_znBackupNeo">自動バックアッププラグイン</a>なんてのもあります。）</div>
<h3>ダウンロード</h3>
<div class="item_indent"><a href='http://wa.otesei.com/action.php?action=plugin&amp;name=LinkCounter&amp;type=c&amp;k=NP_znSpecialTemplateParts_0_0_5alpha.zip'><img src="http://wa.otesei.com/media/plug/download.gif" alt="download" class="download-icon" />0.0.5alpha.zip</a>[54clicks]<br /><a href='http://wa.otesei.com/action.php?action=plugin&amp;name=LinkCounter&amp;type=c&amp;k=NP_znSpecialTemplateParts_0_0_5alpha-utf8.zip'><img src="http://wa.otesei.com/media/plug/download.gif" alt="download" class="download-icon" />0.0.5alpha-utf8.zip （開発者向けコメント付ソースファイル）</a>[42clicks]<br /></div>
<h3>変更点</h3>
<div class="item_indent"><ul><li>チケットタイムアウトして、パーツの編集が無効になった時、エラーが出るのを修正</li></ul></div>
<br />
<h3>バージョン経歴</h3><br /><div class="item_indent"><table><thead><tr><th>Ver</th><th>Update</th><th>Download</th></tr></thead><tbody><tr onmouseover="focusRow(this);" onmouseout="blurRow(this);"><td><span class="atteR">最新</span><br /><a href="http://wa.otesei.com/NP_znSpecialTemplateParts-ver=0.0.5alpha" title="0.0.5alphaの解説ページへ">0.0.5alpha</a></td><td><ul><li>チケットタイムアウトして、パーツの編集が無効になった時、エラーが出るのを修正</li></ul></td><td><a href='http://wa.otesei.com/action.php?action=plugin&amp;name=LinkCounter&amp;type=c&amp;k=NP_znSpecialTemplateParts_0_0_5alpha.zip'><img src="http://wa.otesei.com/media/plug/download.gif" alt="download" class="download-icon" />0.0.5alpha.zip</a>[54clicks]<br /><a href='http://wa.otesei.com/action.php?action=plugin&amp;name=LinkCounter&amp;type=c&amp;k=NP_znSpecialTemplateParts_0_0_5alpha-utf8.zip'><img src="http://wa.otesei.com/media/plug/download.gif" alt="download" class="download-icon" />0.0.5alpha-utf8.zip （開発者向けコメント付ソースファイル）</a>[42clicks]<br /></td></tr><tr onmouseover="focusRow(this);" onmouseout="blurRow(this);"><td><a href="http://wa.otesei.com/NP_znSpecialTemplateParts-ver=0.0.4alpha" title="0.0.4alphaの解説ページへ">0.0.4alpha</a></td><td><ul><li>Nucleus標準のテンプレートパーツ名と衝突するパーツ名が定義されている場合、警告を出す機能を追加。</li><li>テンプレートパーツのデフォルト値を設定できるようになりました。</li></ul></td><td><a href='http://wa.otesei.com/action.php?action=plugin&amp;name=LinkCounter&amp;type=c&amp;k=NP_znSpecialTemplateParts_0_0_4alpha.zip'><img src="http://wa.otesei.com/media/plug/download.gif" alt="download" class="download-icon" />0.0.4alpha.zip</a>[34clicks]<br /><a href='http://wa.otesei.com/action.php?action=plugin&amp;name=LinkCounter&amp;type=c&amp;k=NP_znSpecialTemplateParts_0_0_4alpha-utf8.zip'><img src="http://wa.otesei.com/media/plug/download.gif" alt="download" class="download-icon" />0.0.4alpha-utf8.zip （開発者向けコメント付ソースファイル）</a>[28clicks]<br /></td></tr></tbody></table><img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_exclamation.gif" alt=":!!:" class="znsm_img" /><img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_arrow_top.gif" alt=":arwtop:" class="znsm_img" />verをクリックすると、各verの解説に切り替わります。<br /><br /><div class="say2"><div class="say4"><div class="say6"><div class="say8"><div class="say1"><div class="say3"><div class="say7"><div class="say9">プラグインのバージョンアップ情報をRSSで配信しています。バグ情報などもお届けいたしますので、拙作プラグインをお使いの際には、是非RSSリーダーにご登録ください。<img src="http://wa.otesei.com/nucleus/plugins/emoticons/icon_exclamation.gif" alt=":!!:" class="znsm_img" /><a href="http://wa.otesei.com/plug_ver_rss.php" title="右クリックからコピーして、RSSリーダーにご登録ください。">佐藤（な）作成・改造のプラグインバージョンアップ情報RSS</a></div></div></div></div></div></div></div></div></div>]]></content>
 <id>http://wa.otesei.com/:1:430</id>
</entry>
</feed>