<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>あり &#187; WordPress</title>
	<atom:link href="http://blog.4sure.jp/yokoshima/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.4sure.jp/yokoshima</link>
	<description>日常を語る普通の人のブログ</description>
	<lastBuildDate>Tue, 24 Aug 2010 11:49:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/tag/wordpress/feed/" />
		<item>
		<title>Installation of Geeklog</title>
		<link>http://blog.4sure.jp/yokoshima/2010/03/09/installation-of-geeklog/</link>
		<comments>http://blog.4sure.jp/yokoshima/2010/03/09/installation-of-geeklog/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 20:25:50 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[サーバー管理]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[geeklog]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=970</guid>
		<description><![CDATA[教えてもらって初めて知ったのですが、GeeklogというCMSがあるそうな。
「Geek」とは
http://ja.wikipedia.org/wiki/%E3%82%AE%E3%83%BC%E3%82%AF
自分の認識では、コンピュータ技術が大好きなオタクって感じでしょうか。
現在ぱっと見だと、WordPressよりももしや親切な感じなのでは？と思っちゃいますが使ってみないとね。
日本語公式サイトは以下
http://www.geeklog.jp/
早速入れてみます。
環境。

&#91;&#93;# cat /etc/redhat-release
CentOS release 5.3 &#40;Final&#41;
&#91;&#93;# httpd -v
Server version: Apache/2.2.3
Server built:   Jan 21 2009 22:01:41
&#91;&#93;# php -v
PHP 5.2.11 &#40;cli&#41; &#40;built: Sep 21 2009 14:49:09&#41;
Copyright &#40;c&#41; 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright &#40;c&#41; 1998-2009 Zend Technologies

ダウンロード

#wget http://www.geeklog.jp/filemgmt/visit.php?lid=443

MySQLの文字セット・参照順序確認
文字セットはutf8で、参照順序はutf8_general_ciが良いらしい。

mysql&#62; show character set like 'utf8';
+---------+---------------+-------------------+--------+
&#124; Charset &#124; Description   &#124; Default collation &#124; Maxlen &#124;
+---------+---------------+-------------------+--------+
&#124; [...]]]></description>
			<content:encoded><![CDATA[<p>教えてもらって初めて知ったのですが、GeeklogというCMSがあるそうな。<br />
「Geek」とは<br />
http://ja.wikipedia.org/wiki/%E3%82%AE%E3%83%BC%E3%82%AF<br />
自分の認識では、コンピュータ技術が大好きなオタクって感じでしょうか。</p>
<p>現在ぱっと見だと、WordPressよりももしや親切な感じなのでは？と思っちゃいますが使ってみないとね。<br />
日本語公式サイトは以下</p>
<p><a href="http://www.geeklog.jp/">http://www.geeklog.jp/</a></p>
<p>早速入れてみます。<br />
環境。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cat /etc/redhat-release</span>
CentOS release <span style="color: #000000;">5.3</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Final<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># httpd -v</span>
Server version: Apache<span style="color: #000000; font-weight: bold;">/</span>2.2.3
Server built:   Jan <span style="color: #000000;">21</span> <span style="color: #000000;">2009</span> <span style="color: #000000;">22</span>:01:<span style="color: #000000;">41</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># php -v</span>
PHP 5.2.11 <span style="color: #7a0874; font-weight: bold;">&#40;</span>cli<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>built: Sep <span style="color: #000000;">21</span> <span style="color: #000000;">2009</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">49</span>:09<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">1997</span>-<span style="color: #000000;">2009</span> The PHP Group
Zend Engine v2.2.0, Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">1998</span>-<span style="color: #000000;">2009</span> Zend Technologies</pre></div></div>

<p>ダウンロード</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#wget http://www.geeklog.jp/filemgmt/visit.php?lid=443</span></pre></div></div>

<p>MySQLの文字セット・参照順序確認<br />
文字セットはutf8で、参照順序はutf8_general_ciが良いらしい。</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">show</span> character <span style="color: #990099; font-weight: bold;">set</span> <span style="color: #CC0099; font-weight: bold;">like</span> <span style="color: #008000;">'utf8'</span><span style="color: #000033;">;</span>
<span style="color: #CC0099;">+---------+---------------+-------------------+--------+</span>
<span style="color: #CC0099;">|</span> <span style="color: #FF9900; font-weight: bold;">Charset</span> <span style="color: #CC0099;">|</span> Description   <span style="color: #CC0099;">|</span> <span style="color: #990099; font-weight: bold;">Default</span> <span style="color: #000099;">collation</span> <span style="color: #CC0099;">|</span> Maxlen <span style="color: #CC0099;">|</span>
<span style="color: #CC0099;">+---------+---------------+-------------------+--------+</span>
<span style="color: #CC0099;">|</span> utf8    <span style="color: #CC0099;">|</span> UTF<span style="color: #CC0099;">-</span><span style="color: #008080;">8</span> Unicode <span style="color: #CC0099;">|</span> utf8_general_ci   <span style="color: #CC0099;">|</span>      <span style="color: #008080;">3</span> <span style="color: #CC0099;">|</span>
<span style="color: #CC0099;">+---------+---------------+-------------------+--------+</span>
<span style="color: #008080;">1</span> row <span style="color: #990099; font-weight: bold;">in</span> <span style="color: #990099; font-weight: bold;">set</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">0.00</span> sec<span style="color: #FF00FF;">&#41;</span></pre></div></div>

<p>特に問題ないので、これでインストールします。<br />
先ほどダウンロードしたアーカイブを解凍し、Web公開する予定のフォルダにシンボリックリンクを張ります。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#tar zxvf geeklog-1.6.1-jp-extended-1.0.tar.gz</span>
<span style="color: #666666; font-style: italic;">#ln -s geeklog-1.6.1-jp-extended-1.0/public_html/ geeklog</span></pre></div></div>

<p>これで、http://server/geeklog/admin/installにアクセスすると、設定画面が表示されます。<br />
<a href="http://blog.4sure.jp/yokoshima/files/2010/03/geeklog-setting.jpg"><img src="http://blog.4sure.jp/yokoshima/files/2010/03/geeklog-setting-300x236.jpg" alt="geeklog-setting" width="300" height="236" class="alignleft size-medium wp-image-971" /></a></p>
<p>画面は言語設定を日本語に変えた後ですが、デフォルトは英語でした。<br />
パーミッション変更設定のコマンドも表示されているので便利ですね。確かosCommerceもこんな感じで便利だったような・・・。<br />
表示されたコマンドをコピーしてそのまま実行しておきます。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">777</span> <span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>labs<span style="color: #000000; font-weight: bold;">/</span>geeklog-1.6.1-jp-extended-<span style="color: #000000;">1.0</span><span style="color: #000000; font-weight: bold;">/</span>db-config.php <span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>labs<span style="color: #000000; font-weight: bold;">/</span>geeklog-1.6.1-jp-extended-<span style="color: #000000;">1.0</span><span style="color: #000000; font-weight: bold;">/</span>backups<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>labs<span style="color: #000000; font-weight: bold;">/</span>geeklog-1.6.1-jp-extended-<span style="color: #000000;">1.0</span><span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>labs<span style="color: #000000; font-weight: bold;">/</span>geeklog-1.6.1-jp-extended-<span style="color: #000000;">1.0</span><span style="color: #000000; font-weight: bold;">/</span>logs<span style="color: #000000; font-weight: bold;">/</span>error.log <span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>labs<span style="color: #000000; font-weight: bold;">/</span>geeklog-1.6.1-jp-extended-<span style="color: #000000;">1.0</span><span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>siteconfig.php <span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>labs<span style="color: #000000; font-weight: bold;">/</span>geeklog-1.6.1-jp-extended-<span style="color: #000000;">1.0</span><span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>backend<span style="color: #000000; font-weight: bold;">/</span>geeklog.rss <span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>labs<span style="color: #000000; font-weight: bold;">/</span>geeklog-1.6.1-jp-extended-<span style="color: #000000;">1.0</span><span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>articles<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>labs<span style="color: #000000; font-weight: bold;">/</span>geeklog-1.6.1-jp-extended-<span style="color: #000000;">1.0</span><span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>topics<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>labs<span style="color: #000000; font-weight: bold;">/</span>geeklog-1.6.1-jp-extended-<span style="color: #000000;">1.0</span><span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>userphotos</pre></div></div>

<p>これで再度設定画面を表示させると、警告部分が出なくなったので「新規インストール」を押下してみますが、<br />
なぜか英語版画面に切り替わってしまうだけなので、切り替わった画面から「New Install」を押下します。</p>
<p>ここでまたもや気付く。<br />
やはりデータベースやユーザーは作成が必要ですよね。（<a href="http://blog.4sure.jp/yokoshima/2010/03/05/installation-of-openpne/">前回</a>も同じことを言ってるが・・・）<br />
まあそこまで自動化するには実際create databaseやgrantを実行するユーザーの設定をどこかで書かなければいけないのでそれは当り前か・・・。</p>
<p>ということでgeeklogで使用するデータベースとユーザーを作成します。<br />
（パスワードは仮にgeeklogとします。）</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;">mysql<span style="color: #CC0099;">&amp;</span>gt<span style="color: #000033;">;</span> <span style="color: #990099; font-weight: bold;">create</span> <span style="color: #990099; font-weight: bold;">database</span> geeklog<span style="color: #000033;">;</span>
Query OK<span style="color: #000033;">,</span> <span style="color: #008080;">1</span> row affected <span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">0.00</span> sec<span style="color: #FF00FF;">&#41;</span>
&nbsp;
mysql<span style="color: #CC0099;">&amp;</span>gt<span style="color: #000033;">;</span> <span style="color: #990099; font-weight: bold;">grant</span> <span style="color: #990099; font-weight: bold;">all</span> <span style="color: #990099; font-weight: bold;">on</span> geeklog.<span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">to</span> geeklog@localhost identified by <span style="color: #008000;">'geeklog'</span><span style="color: #000033;">;</span>
Query OK<span style="color: #000033;">,</span> <span style="color: #008080;">0</span> rows affected <span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">0.07</span> sec<span style="color: #FF00FF;">&#41;</span></pre></div></div>

<p>これで先ほどの設定画面に戻って「Install」ボタン押下で、「Installation of Geeklog 1.6.1 complete!」と出ればインストール完了です。<br />
下の方に、</p>
<blockquote><p>Security Warning</p>
<p>Don&#8217;t forget to do 3 things:</p>
<p>Remove or rename the install directory, /www/labs/geeklog-1.6.1-jp-extended-1.0/public_html/admin/install.<br />
Change the Admin account password.<br />
Set permissions on /www/labs/geeklog-1.6.1-jp-extended-1.0/db-config.php and /www/labs/geeklog-1.6.1-jp-extended-1.0/public_html/siteconfig.php back to 644.</p></blockquote>
<p>と出ています。親切だ！<br />
ということで、/admin/installは権限なしに、geeklog-1.6.1-jp-extended-1.0/db-config.phpとsiteconfig.phpは権限644に変更しておきます。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># chmod 000 geeklog/admin/install</span>
<span style="color: #666666; font-style: italic;"># chmod 644 geeklog-1.6.1-jp-extended-1.0/db-config.php</span>
<span style="color: #666666; font-style: italic;"># chmod 644 geeklog-1.6.1-jp-extended-1.0/public_html/siteconfig.php</span></pre></div></div>

<p>これで無事稼働させることが出来ましたが、新しくユーザーを登録する部分でうまく追加されない現象。<br />
原因までは調査出来てはないけど、.htaccessを置いて以下記載をすることで動きました。</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">php_value mbstring.http_output <span style="color: #933;">&quot;pass&quot;</span>
php_flag mbstring.encoding_translation Off</pre></div></div>

<p>Xserverでのインストールについて<br />
<a href="http://www.geeklog.jp/article.php/20060603071712656">http://www.geeklog.jp/article.php/20060603071712656</a></p>
<p>XServerじゃないんだけど、確かにmbstringの設定が一部違っていました。<br />
これでサンプル用ユーザーを作ったので以下で触ってみてください。</p>
<p>http://labs.4sure.jp/geeklog/</p>
<p>ID:sampleadmin<br />
pass:sampleadmin</p>
<p>これも収拾付かない事態になりそうならば一旦制限を掛けますのでよろしくお願いいたします。</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2010/03/09/installation-of-geeklog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2010/03/09/installation-of-geeklog/" />
	</item>
		<item>
		<title>WPMU2.8.1をVistaにインストール</title>
		<link>http://blog.4sure.jp/yokoshima/2009/07/24/wpmu2-8-1%e3%82%92vista%e3%81%ab%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/07/24/wpmu2-8-1%e3%82%92vista%e3%81%ab%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 15:51:18 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[MU]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=714</guid>
		<description><![CDATA[Wordpress MU 2.8.1の続き。
えらい苦労したよ。Vistaって未だにあまり正体がよくわかってないからかな。
まずはwp-config.phpは直で作成するとあまりいいことがなかったので、やはり画面から入れたほうがよいです。
wp-config.phpがD:\Program Files\Apache Software Foundation\Apache2.2\htdocs\wordpress-mu-2.8.1\wordpress-mu直下にないのを確認（あったらリネームか削除）をしてhttp://localhost.localdomain/wordpress-mu-2.8.1/wordpress-mu/にアクセスすると、インストール画面が出るので前回の設定と同じように設定します。（まだサブミットしない）
・Blog Addresses
　→ Sub-directories (like example.com/blog1)にチェック（サブドメインは面倒くさそうな予感がしたので）
・Database
 →Database:Name wpmudb
 →User Name:wpmuadmin
 →Password:pass
 →Database Host:localhost
まずはMySQLにwpmudbがあって、wpmuadminでアクセス出来るようにしてあるのを確認します。

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.36-community MySQL Community Server &#40;GPL&#41;
&#160;
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
&#160;
mysql&#62; use wpmudb;
Database changed
mysql&#62; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.4sure.jp/yokoshima/2009/07/16/wordpress-mu-281/">Wordpress MU 2.8.1</a>の続き。</p>
<p>えらい苦労したよ。Vistaって未だにあまり正体がよくわかってないからかな。</p>
<p>まずはwp-config.phpは直で作成するとあまりいいことがなかったので、やはり画面から入れたほうがよいです。<br />
wp-config.phpがD:\Program Files\Apache Software Foundation\Apache2.2\htdocs\wordpress-mu-2.8.1\wordpress-mu直下にないのを確認（あったらリネームか削除）をしてhttp://localhost.localdomain/wordpress-mu-2.8.1/wordpress-mu/にアクセスすると、インストール画面が出るので前回の設定と同じように設定します。（まだサブミットしない）</p>
<blockquote><p>・Blog Addresses<br />
　→ Sub-directories (like example.com/blog1)にチェック（サブドメインは面倒くさそうな予感がしたので）<br />
・Database<br />
 →Database:Name wpmudb<br />
 →User Name:wpmuadmin<br />
 →Password:pass<br />
 →Database Host:localhost</p></blockquote>
<p>まずはMySQLにwpmudbがあって、wpmuadminでアクセス出来るようにしてあるのを確認します。</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;">Welcome <span style="color: #990099; font-weight: bold;">to</span> the MySQL monitor.  Commands <span style="color: #009900;">end</span> <span style="color: #990099; font-weight: bold;">with</span> <span style="color: #000033;">;</span> <span style="color: #CC0099; font-weight: bold;">or</span> \g.
Your MySQL <span style="color: #FF9900; font-weight: bold;">connection</span> id <span style="color: #CC0099; font-weight: bold;">is</span> <span style="color: #008080;">2</span>
Server <span style="color: #000099;">version</span>: 5.1.36<span style="color: #CC0099;">-</span>community MySQL Community Server <span style="color: #FF00FF;">&#40;</span>GPL<span style="color: #FF00FF;">&#41;</span>
&nbsp;
<span style="color: #990099; font-weight: bold;">Type</span> <span style="color: #008000;">'help;'</span> <span style="color: #CC0099; font-weight: bold;">or</span> <span style="color: #008000;">'<span style="color: #004000; font-weight: bold;">\h</span>'</span> for <span style="color: #990099; font-weight: bold;">help</span>. <span style="color: #990099; font-weight: bold;">Type</span> <span style="color: #008000;">'<span style="color: #004000; font-weight: bold;">\c</span>'</span> <span style="color: #990099; font-weight: bold;">to</span> clear the current input statement.
&nbsp;
mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">use</span> wpmudb<span style="color: #000033;">;</span>
<span style="color: #990099; font-weight: bold;">Database</span> changed
mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">select</span> host<span style="color: #000033;">,</span> <span style="color: #000099;">user</span> <span style="color: #990099; font-weight: bold;">from</span> mysql.<span style="color: #000099;">user</span><span style="color: #000033;">;</span>
<span style="color: #CC0099;">+-----------+-----------+</span>
<span style="color: #CC0099;">|</span> host      <span style="color: #CC0099;">|</span> <span style="color: #000099;">user</span>      <span style="color: #CC0099;">|</span>
<span style="color: #CC0099;">+-----------+-----------+</span>
<span style="color: #CC0099;">|</span> 127.0.0.1 <span style="color: #CC0099;">|</span> root      <span style="color: #CC0099;">|</span>
<span style="color: #CC0099;">|</span> localhost <span style="color: #CC0099;">|</span>           <span style="color: #CC0099;">|</span>
<span style="color: #CC0099;">|</span> localhost <span style="color: #CC0099;">|</span> root      <span style="color: #CC0099;">|</span>
<span style="color: #CC0099;">|</span> localhost <span style="color: #CC0099;">|</span> wpmuadmin <span style="color: #CC0099;">|</span>
<span style="color: #CC0099;">+-----------+-----------+</span>
<span style="color: #008080;">4</span> rows <span style="color: #990099; font-weight: bold;">in</span> <span style="color: #990099; font-weight: bold;">set</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">0.00</span> sec<span style="color: #FF00FF;">&#41;</span></pre></div></div>

<p>これを確認したら、今度はphp.iniでMySQLの拡張ライブラリが有効になっているかを確認します。（いまんとこ有効になってないはず）</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000099;">extension_dir</span> <span style="color: #000066; font-weight:bold;">=</span> <span style="color: #933;">&quot;ext&quot;</span>
<span style="color: #000099;">extension</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">php_mysql.dll</span></pre></div></div>

<p>セミコロンをはずしてコメントインします。<br />
そして、先ほどのhttp://localhost.localdomain/wordpress-mu-2.8.1/wordpress-mu/で、submitします。E-Mailアドレスも必須なようなので適当にメールアドレスを入れておきます。</p>
<p>色々Warningが出るのですが、<br />
<a href="http://blog.4sure.jp/yokoshima/files/2009/07/MU2.8.1install.jpg"><img src="http://blog.4sure.jp/yokoshima/files/2009/07/MU2.8.1install-300x203.jpg" alt="MU2.8.1install" width="300" height="203" class="alignnone size-medium wp-image-715" /></a></p>
<p>Installation Finished!が出ていたらインストール完了ですので、その横に書かれているユーザ(admin）と、パスワードを使って</p>
<p>http://localhost.localdomain/wordpress-mu-2.8.1/wordpress-mu/wp-login.php</p>
<p>にアクセスすると無事起動出来ました。</p>
<p>UACをオフにしたり、D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\wordpress-mu-2.8.1\wordpress-muのアクセス権を変えたりしたんですがあまり関係ないのかも。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/07/24/wpmu2-8-1%e3%82%92vista%e3%81%ab%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/07/24/wpmu2-8-1%e3%82%92vista%e3%81%ab%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/" />
	</item>
		<item>
		<title>Akismet</title>
		<link>http://blog.4sure.jp/yokoshima/2009/07/22/akismet/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/07/22/akismet/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 15:49:46 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Akismet]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=708</guid>
		<description><![CDATA[今日現場から家に帰るまでの60分くらいで、スパムTBが10件くらい来ていました。
ちょっと調子に乗られてるなと思ったので、AkismetというWordpressでは結構有名なプラグインを入れました。
使用するにはWordpress.comに登録してAPI Keyを取得する必要があります。
明日どうなってるか。別ブログで試していますが、今のところ完璧にガードしてます。




]]></description>
			<content:encoded><![CDATA[<p>今日現場から家に帰るまでの60分くらいで、スパムTBが10件くらい来ていました。<br />
ちょっと調子に乗られてるなと思ったので、<a href="http://wordpress.org/extend/plugins/akismet/">Akismet</a>というWordpressでは結構有名なプラグインを入れました。</p>
<p>使用するには<a href="http://wordpress.com/">Wordpress.com</a>に登録してAPI Keyを取得する必要があります。</p>
<p>明日どうなってるか。別ブログで試していますが、今のところ完璧にガードしてます。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/07/22/akismet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/07/22/akismet/" />
	</item>
		<item>
		<title>Wordpress MU 2.8.1</title>
		<link>http://blog.4sure.jp/yokoshima/2009/07/16/wordpress-mu-281/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/07/16/wordpress-mu-281/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 14:30:20 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[2.8.1]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=665</guid>
		<description><![CDATA[ローカルPCにphpやMySQLを入れるのに苦労している間にWordpressMU2.8.1が出たのでまずはローカルに入れてみてPHP5.3.0編を終了したいと思います。
環境は
・Windows Vista Home Premium SP1
・Apache 2.2.11
・PHP 5.3.0
・MySQL 5.1.36
です。Download WordPress MUから最新版（現時点では当然2.8.1）をダウンロードします。
それを解凍して「wordpress-mu-2.8.1」フォルダをそのままApacheのDocumentRoot（今回の環境ではD:\Program Files\Apache Software Foundation\Apache2.2\htdocs\wordpress-mu-2.8.1）に置きます。
そして
http://localhost.localdomain/wordpress-mu-2.8.1/wordpress-mu/index.php
にブラウザでアクセスします。サーバ名をlocalhostにしてアクセスすると
Warning!
Installing to http://localhost/ is not supported. Please use http://localhost.localdomain/ instead.
と出るのでそのとおりにしたまでですが、理由はそのうち調べます。
ここでメッセージがすべて英語なので日本語化したいと気づいたので、wpmu-jaから、現時点では2.7.1用のリソースをダウンロードします。
まずはMySQLにWordpress用のユーザを作成します。
今回は、database名はwpmudb, wpmudbへのアクセスユーザはwpmuadmin, パスワードはpassにします。

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.1.36-community MySQL Community Server &#40;GPL&#41;
&#160;
Type 'help;' or '\h' for help. Type '\c' to clear [...]]]></description>
			<content:encoded><![CDATA[<p>ローカルPCにphpやMySQLを入れるのに苦労している間にWordpressMU2.8.1が出たのでまずはローカルに入れてみてPHP5.3.0編を終了したいと思います。</p>
<p>環境は<br />
・Windows Vista Home Premium SP1<br />
・Apache 2.2.11<br />
・PHP 5.3.0<br />
・MySQL 5.1.36</p>
<p>です。<a href="http://mu.wordpress.org/download/">Download WordPress MU</a>から最新版（現時点では当然2.8.1）をダウンロードします。<br />
それを解凍して「wordpress-mu-2.8.1」フォルダをそのままApacheのDocumentRoot（今回の環境ではD:\Program Files\Apache Software Foundation\Apache2.2\htdocs\wordpress-mu-2.8.1）に置きます。</p>
<p>そして<br />
<a href="http://localhost.localdomain/wordpress-mu-2.8.1/wordpress-mu/index.php">http://localhost.localdomain/wordpress-mu-2.8.1/wordpress-mu/index.php</a><br />
にブラウザでアクセスします。サーバ名をlocalhostにしてアクセスすると</p>
<blockquote><p>Warning!</p>
<p>Installing to http://localhost/ is not supported. Please use http://localhost.localdomain/ instead.</p></blockquote>
<p>と出るのでそのとおりにしたまでですが、理由はそのうち調べます。<br />
ここでメッセージがすべて英語なので日本語化したいと気づいたので、<a href="http://code.google.com/p/wpmu-ja/">wpmu-ja</a>から、現時点では2.7.1用のリソースをダウンロードします。</p>
<p>まずはMySQLにWordpress用のユーザを作成します。<br />
今回は、database名はwpmudb, wpmudbへのアクセスユーザはwpmuadmin, パスワードはpassにします。</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;">Welcome <span style="color: #990099; font-weight: bold;">to</span> the MySQL monitor.  Commands <span style="color: #009900;">end</span> <span style="color: #990099; font-weight: bold;">with</span> <span style="color: #000033;">;</span> <span style="color: #CC0099; font-weight: bold;">or</span> \g.
Your MySQL <span style="color: #FF9900; font-weight: bold;">connection</span> id <span style="color: #CC0099; font-weight: bold;">is</span> <span style="color: #008080;">5</span>
Server <span style="color: #000099;">version</span>: 5.1.36<span style="color: #CC0099;">-</span>community MySQL Community Server <span style="color: #FF00FF;">&#40;</span>GPL<span style="color: #FF00FF;">&#41;</span>
&nbsp;
<span style="color: #990099; font-weight: bold;">Type</span> <span style="color: #008000;">'help;'</span> <span style="color: #CC0099; font-weight: bold;">or</span> <span style="color: #008000;">'<span style="color: #004000; font-weight: bold;">\h</span>'</span> for <span style="color: #990099; font-weight: bold;">help</span>. <span style="color: #990099; font-weight: bold;">Type</span> <span style="color: #008000;">'<span style="color: #004000; font-weight: bold;">\c</span>'</span> <span style="color: #990099; font-weight: bold;">to</span> clear the current input statement.
&nbsp;
mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">create</span> <span style="color: #990099; font-weight: bold;">database</span> wpmudb<span style="color: #000033;">;</span>
Query OK<span style="color: #000033;">,</span> <span style="color: #008080;">1</span> row affected <span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">0.00</span> sec<span style="color: #FF00FF;">&#41;</span>
&nbsp;
mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">grant</span> <span style="color: #990099; font-weight: bold;">all</span> <span style="color: #990099; font-weight: bold;">on</span> wpmudb.<span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">to</span> wpmuadmin@localhost identified by <span style="color: #008000;">'pass'</span><span style="color: #000033;">;</span>
Query OK<span style="color: #000033;">,</span> <span style="color: #008080;">0</span> rows affected <span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">0.07</span> sec<span style="color: #FF00FF;">&#41;</span></pre></div></div>

<p>そして、Wordpressmuのディレクトリ今回は（D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\wordpress-mu-2.8.1\wordpress-mu\wp-content\languages）を作成し、解凍したファイルの中からja.moファイルを置きます。</p>
<p>でも初期設定画面は日本語化されないので、以下のように設定します。</p>
<p>・Blog Addresses<br />
　→ Sub-directories (like example.com/blog1)にチェック（サブドメインは面倒くさそうな予感がしたので）<br />
・Database<br />
 →Database:Name wpmudb<br />
 →User Name:wpmuadmin<br />
 →Password:pass<br />
 →Database Host:localhost</p>
<p>それで設定して「submit」押下したらエラーが。</p>
<blockquote><p>Strict Standards: Redefining already defined constructor for class wpdb in D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\wordpress-mu-2.8.1\wordpress-mu\wp-includes\wp-db.php on line 339</p></blockquote>
<p>しょうがない、wp-config.phpを手で作成するか明日以降に。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/07/16/wordpress-mu-281/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/07/16/wordpress-mu-281/" />
	</item>
		<item>
		<title>Yahoo! site explorer</title>
		<link>http://blog.4sure.jp/yokoshima/2009/07/08/yahoo-site-explorer/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/07/08/yahoo-site-explorer/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 16:27:21 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[site explorer]]></category>
		<category><![CDATA[webmaster center]]></category>
		<category><![CDATA[wp_rewrite]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=607</guid>
		<description><![CDATA[Googleにウェブマスターツールがあるように、Yahooにもサイトエクスプローラというのがあります。BingにもWebmaster centerというのがあります。
これらは何なのかというと、Webサイト情報にプラスアルファの情報を付与して検索エンジンのクローラがより巡回しやすいようにするヒントのようなものを作成出来るものです。
Googleのはいいんですが、Yahooのサイトエクスプローラが以前は認証（Ｗｅｂサイトのmetaタグなどにキー情報を埋め込んでクローラがその情報をもとに認証する）が通っていたのですが、7月に入ってからかな。認証失敗しているようでした。
サイトエクスプローラの認証の所を見ると
次のメタタグの記述をコピーし、あなたのサイトのトップページ内の最初にはりつけて、ファイルをアップロードしてください。内でのはりつけ場所は、開始場所の直後または、開始場所に可能な限り近い位置としてください。内の後方にはりつけた場合、認証が失敗する可能性があります。
とあります。ここのWPの設定でサイト認証キーがheadタグの後ろの方に行ってしまったか、Yahooの認証ロジックがちょっと変わったのか不明ですが、
Bingの方のmetaタグでの認証はそもそも出来ないっぽかったので、metaタグ認証とは別の方法である、ファイル認証（指定のファイル名、指定の内容でhtmlファイルを置く）にしたいと思います。
といっても、WPで静的HTMLファイルを置いてもそのままではうまくいかないはずなので、Rewriteを使用したいと思います。
この方法ならばBingでも使用できそうな気がします。
WPには、WP_Rewriteという関数が用意されていて、.htaccessやhttpd.conf等に手を加えなくてもリライトが使えるらしい、というところまで調査済みですがまだ未着手。




]]></description>
			<content:encoded><![CDATA[<p>Googleに<a href="https://www.google.com/webmasters/tools/">ウェブマスターツール</a>があるように、Yahooにも<a href="https://siteexplorer.search.yahoo.co.jp/">サイトエクスプローラ</a>というのがあります。Bingにも<a href="http://www.bing.com/webmaster">Webmaster center</a>というのがあります。</p>
<p>これらは何なのかというと、Webサイト情報にプラスアルファの情報を付与して検索エンジンのクローラがより巡回しやすいようにするヒントのようなものを作成出来るものです。</p>
<p>Googleのはいいんですが、Yahooのサイトエクスプローラが以前は認証（Ｗｅｂサイトのmetaタグなどにキー情報を埋め込んでクローラがその情報をもとに認証する）が通っていたのですが、7月に入ってからかな。認証失敗しているようでした。</p>
<p>サイトエクスプローラの認証の所を見ると</p>
<blockquote><p>次のメタタグの記述をコピーし、あなたのサイトのトップページ内の最初にはりつけて、ファイルをアップロードしてください。内でのはりつけ場所は、開始場所の直後または、開始場所に可能な限り近い位置としてください。内の後方にはりつけた場合、認証が失敗する可能性があります。</p></blockquote>
<p>とあります。ここのWPの設定でサイト認証キーがheadタグの後ろの方に行ってしまったか、Yahooの認証ロジックがちょっと変わったのか不明ですが、<br />
Bingの方のmetaタグでの認証はそもそも出来ないっぽかったので、metaタグ認証とは別の方法である、ファイル認証（指定のファイル名、指定の内容でhtmlファイルを置く）にしたいと思います。<br />
といっても、WPで静的HTMLファイルを置いてもそのままではうまくいかないはずなので、Rewriteを使用したいと思います。<br />
この方法ならばBingでも使用できそうな気がします。<br />
WPには、WP_Rewriteという関数が用意されていて、.htaccessやhttpd.conf等に手を加えなくてもリライトが使えるらしい、というところまで調査済みですがまだ未着手。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/07/08/yahoo-site-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/07/08/yahoo-site-explorer/" />
	</item>
		<item>
		<title>Wordpressのコメント用アンチスパムが働いてしまう件</title>
		<link>http://blog.4sure.jp/yokoshima/2009/07/08/wordpress%e3%81%ae%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88%e7%94%a8%e3%82%a2%e3%83%b3%e3%83%81%e3%82%b9%e3%83%91%e3%83%a0%e3%81%8c%e5%83%8d%e3%81%84%e3%81%a6%e3%81%97%e3%81%be%e3%81%86%e4%bb%b6/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/07/08/wordpress%e3%81%ae%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88%e7%94%a8%e3%82%a2%e3%83%b3%e3%83%81%e3%82%b9%e3%83%91%e3%83%a0%e3%81%8c%e5%83%8d%e3%81%84%e3%81%a6%e3%81%97%e3%81%be%e3%81%86%e4%bb%b6/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 16:01:22 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[anti spam]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=604</guid>
		<description><![CDATA[どうも誰もコメントくれないな最近と思って淋しかったのですが、
コメント投稿を試みていただいた方にご指摘（みゃーさん、ありがとうございます！）頂いて、なぜかアンチスパムが動いてるということに気付きました。
ググってもちょっとそのものが見当たらないので&#8221;spam word&#8221;でWPのディレクトリをgrepしてみたら、

wp-content/plugins/cryptographp/cryptographp.php:168:                   wp_die &#40;__&#40;'Error: Wrong anti-spam word.'&#41;&#41;;

そういや以前に、よくあるブログで、コメント投稿する際に画像に書かれた文字を入力してもらうやつをちょっと試したいなと思ってCryptographpというプラグインを入れて有効にしたままほっといたんだった。
と気づいて無効にしました。そもそもスパムを自動的により分けるほどのヒットがない。




]]></description>
			<content:encoded><![CDATA[<p>どうも誰もコメントくれないな最近と思って淋しかったのですが、<br />
コメント投稿を試みていただいた方にご指摘（みゃーさん、ありがとうございます！）頂いて、なぜかアンチスパムが動いてるということに気付きました。</p>
<p>ググってもちょっとそのものが見当たらないので&#8221;spam word&#8221;でWPのディレクトリをgrepしてみたら、</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">wp-content<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>cryptographp<span style="color: #000000; font-weight: bold;">/</span>cryptographp.php:<span style="color: #000000;">168</span>:                   wp_die <span style="color: #7a0874; font-weight: bold;">&#40;</span>__<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'Error: Wrong anti-spam word.'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;</pre></div></div>

<p>そういや以前に、よくあるブログで、コメント投稿する際に画像に書かれた文字を入力してもらうやつをちょっと試したいなと思って<a href="http://wordpress.org/extend/plugins/cryptographp/">Cryptographp</a>というプラグインを入れて有効にしたままほっといたんだった。</p>
<p>と気づいて無効にしました。そもそもスパムを自動的により分けるほどのヒットがない。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/07/08/wordpress%e3%81%ae%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88%e7%94%a8%e3%82%a2%e3%83%b3%e3%83%81%e3%82%b9%e3%83%91%e3%83%a0%e3%81%8c%e5%83%8d%e3%81%84%e3%81%a6%e3%81%97%e3%81%be%e3%81%86%e4%bb%b6/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/07/08/wordpress%e3%81%ae%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88%e7%94%a8%e3%82%a2%e3%83%b3%e3%83%81%e3%82%b9%e3%83%91%e3%83%a0%e3%81%8c%e5%83%8d%e3%81%84%e3%81%a6%e3%81%97%e3%81%be%e3%81%86%e4%bb%b6/" />
	</item>
		<item>
		<title>xbitにWordpress</title>
		<link>http://blog.4sure.jp/yokoshima/2009/07/04/xbit%e3%81%abwordpress/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/07/04/xbit%e3%81%abwordpress/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 08:05:29 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[One Click Updater]]></category>
		<category><![CDATA[xbit]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=597</guid>
		<description><![CDATA[管理しているサイトで「xbit」を使用しているのですが、Wordpressを入れています。
ちょっと用があってそのサイトを見たのですが、Wordpressのバージョンが2.7だったので児童アップグレードの案内が出ていました。
ついでにアップグレードしておくかと思って自動アップグレードを試したのですがうまくいかない。
自動アップグレードで使用しているプロトコルはFTPとSFTPのいずれかから選択できるのですが、FTPだとアカウント設定が合っていてもダメ。
SFTPなんて使ったことないなと思いつつ試してみたらSFTPで処理されてうまく行ったようだ。
じゃついでにプラグインのupdateもたまってるのでone click updaterでUpgrede Allでやってみたら主にパーミッションのエラーで更新出来ていない。
まず、One Click Updaterのプラグインフォルダを書き込み可にしておかないと一時ファイルが作成出来ないようだ。
あと気づいたのは、One Cilck Updaterでインストールしたプラグインは所有者が「apache」になっているが、手動で入れたプラグインはFTPユーザーになっている。当たり前だがこのせいで更新できないファイルがいくつかあった。
とりあえず更新できないファイルのパーミッションを777に変えて実行してみたらうまく行った。




]]></description>
			<content:encoded><![CDATA[<p>管理しているサイトで「<a href="http://www.xbit.jp/">xbit</a>」を使用しているのですが、Wordpressを入れています。</p>
<p>ちょっと用があってそのサイトを見たのですが、Wordpressのバージョンが2.7だったので児童アップグレードの案内が出ていました。<br />
ついでにアップグレードしておくかと思って自動アップグレードを試したのですがうまくいかない。<br />
自動アップグレードで使用しているプロトコルはFTPとSFTPのいずれかから選択できるのですが、FTPだとアカウント設定が合っていてもダメ。<br />
SFTPなんて使ったことないなと思いつつ試してみたらSFTPで処理されてうまく行ったようだ。</p>
<p>じゃついでにプラグインのupdateもたまってるのでone click updaterでUpgrede Allでやってみたら主にパーミッションのエラーで更新出来ていない。</p>
<p>まず、One Click Updaterのプラグインフォルダを書き込み可にしておかないと一時ファイルが作成出来ないようだ。<br />
あと気づいたのは、One Cilck Updaterでインストールしたプラグインは所有者が「apache」になっているが、手動で入れたプラグインはFTPユーザーになっている。当たり前だがこのせいで更新できないファイルがいくつかあった。<br />
とりあえず更新できないファイルのパーミッションを777に変えて実行してみたらうまく行った。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/07/04/xbit%e3%81%abwordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/07/04/xbit%e3%81%abwordpress/" />
	</item>
		<item>
		<title>WordPressプラグインの作成（4）</title>
		<link>http://blog.4sure.jp/yokoshima/2009/07/03/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%884%ef%bc%89/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/07/03/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%884%ef%bc%89/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 07:00:46 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[My CSS Editor]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=547</guid>
		<description><![CDATA[WordPressプラグインの作成（３）の続きです。
せっかく作成したPluginなので、WordpressのPluginディレクトリに公開したいと思います。
WordPress.orgのプラグインディレクトリに自作プラグインを登録する方法に詳しく書かれているのでそのままやってみます。
WordPress.orgのアカウントを取得する
http://wordpress.org/support/register.phpからアカウントを取得します。
ユーザ名、emailが必須なのでそれを入力します。
Wordpress.comのアカウントと同じなのかと思ったら違うものなので注意。
プラグインの登録申請を出す
http://wordpress.org/extend/plugins/add/
プラグイン名、プラグイン説明を記入して待ちます。
今回は、２日位で返事が来ました。
SVNからチェックアウト
SVNクライアントならEclipseのPluginでもいいとは思いますが、SubversionのクライアントはTortoiseSVNが一番操作性がいいです。
登録申請の返事に記載のある、Subversionのリポジトリをローカルの作業フォルダにチェックアウトします。
チェックアウトすると「trunk」「branches」「tags」フォルダがチェックアウトされるので（ちょうどちょっと前に書いた記事が役に立った）
readme.txtの準備
これが一番大変でした。
英語部分は翻訳サイトのやつでもとりあえず大丈夫だとは思いますが、Donate linkでPayPalを色々調べていたら時間がかかってしまいました。
Wordpress.orgリポジトリにコミット
readme.txtとプラグインのファイル（my-css-editor.php）をtrunkに保存してコミットします。
コミットの際にWordpress.orgアカウントが必要になってきます。
タグ付け
現在のバージョン名でタグ付をします。今回は0.2なので、tags/フォルダを選択状態でTortoiseSVNのBranch/Tagを選び、先URLを「tags/0.2」にしてOKを押します。
確認
タグ付してからしばらくすると
http://wordpress.org/extend/plugins/browse/updated/
に表示されていました。
URLは「http://wordpress.org/extend/plugins/my-css-editor/」です。
なんだか嬉しい。英語は大丈夫だろうか。
次は更新時の方法を記載したいと思います。




]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.4sure.jp/yokoshima/2009/06/30/wordpressプラグインの作成（３）/">WordPressプラグインの作成（３）</a>の続きです。</p>
<p>せっかく作成したPluginなので、WordpressのPluginディレクトリに公開したいと思います。<br />
<a href="http://wordpressgogo.com/development/wordpress-plugin-directory.html">WordPress.orgのプラグインディレクトリに自作プラグインを登録する方法</a>に詳しく書かれているのでそのままやってみます。</p>
<h4>WordPress.orgのアカウントを取得する</h4>
<p><a href="http://wordpress.org/support/register.php">http://wordpress.org/support/register.php</a>からアカウントを取得します。<br />
ユーザ名、emailが必須なのでそれを入力します。<br />
Wordpress.comのアカウントと同じなのかと思ったら違うものなので注意。</p>
<h4>プラグインの登録申請を出す</h4>
<p><a href="http://wordpress.org/extend/plugins/add/">http://wordpress.org/extend/plugins/add/</a></p>
<p>プラグイン名、プラグイン説明を記入して待ちます。<br />
今回は、２日位で返事が来ました。</p>
<h4>SVNからチェックアウト</h4>
<p>SVNクライアントならEclipseのPluginでもいいとは思いますが、SubversionのクライアントはTortoiseSVNが一番操作性がいいです。<br />
登録申請の返事に記載のある、Subversionのリポジトリをローカルの作業フォルダにチェックアウトします。<br />
チェックアウトすると「trunk」「branches」「tags」フォルダがチェックアウトされるので（ちょうど<a href="http://blog.4sure.jp/yokoshima/2009/07/01/subversionリポジトリこれだけやっとけ/">ちょっと前に書いた記事</a>が役に立った）</p>
<h4>readme.txtの準備</h4>
<p>これが一番大変でした。<br />
英語部分は翻訳サイトのやつでもとりあえず大丈夫だとは思いますが、Donate linkで<a href="http://blog.4sure.jp/yokoshima/2009/07/03/paypal寄付は今出来ない/">PayPalを色々調べていた</a>ら時間がかかってしまいました。</p>
<h4>Wordpress.orgリポジトリにコミット</h4>
<p>readme.txtとプラグインのファイル（my-css-editor.php）をtrunkに保存してコミットします。<br />
コミットの際にWordpress.orgアカウントが必要になってきます。</p>
<h4>タグ付け</h4>
<p>現在のバージョン名でタグ付をします。今回は0.2なので、tags/フォルダを選択状態でTortoiseSVNのBranch/Tagを選び、先URLを「tags/0.2」にしてOKを押します。</p>
<h4>確認</h4>
<p>タグ付してからしばらくすると<br />
<a href="http://wordpress.org/extend/plugins/browse/updated/">http://wordpress.org/extend/plugins/browse/updated/</a></p>
<p>に表示されていました。<br />
URLは「<a href="http://wordpress.org/extend/plugins/my-css-editor/">http://wordpress.org/extend/plugins/my-css-editor/</a>」です。<br />
なんだか嬉しい。英語は大丈夫だろうか。<br />
次は更新時の方法を記載したいと思います。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/07/03/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%884%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/07/03/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%884%ef%bc%89/" />
	</item>
		<item>
		<title>Wordpressの投稿時メモ</title>
		<link>http://blog.4sure.jp/yokoshima/2009/07/01/wordpress%e3%81%ae%e6%8a%95%e7%a8%bf%e6%99%82%e3%83%a1%e3%83%a2/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/07/01/wordpress%e3%81%ae%e6%8a%95%e7%a8%bf%e6%99%82%e3%83%a1%e3%83%a2/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 13:54:42 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[長音符号]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=567</guid>
		<description><![CDATA[Wordpressで投稿の中にlinkを入れる場合、URLに長音符号があるとそのあとの記事が無くなってしまいます。
長音符号とはなにかと言ったら「ー」の事です。
なんだかこれをlinkのURLに入れるとWordpress側でダメなようです。
解決策はURLエンコードしてリンクを入れることですが、
Firefox(3.0.11)は、アドレスからコピーすると、URLエンコードが必要な部分を勝手に変換してくれているようなので便利です。
現在Google Chrome(2.0.172.33)を使用していますが、そちらはアドレスそのままなのですが、長音符号が入っていなければ全然問題なかったので気にしていませんでした。
まあ、Firefoxで投稿すればURLエンコードをいちいちする必要もないので問題ないし、そもそも長音符号を含むURLは今のところあまりないのでよしとします。




]]></description>
			<content:encoded><![CDATA[<p>Wordpressで投稿の中にlinkを入れる場合、URLに長音符号があるとそのあとの記事が無くなってしまいます。</p>
<p>長音符号とはなにかと言ったら「ー」の事です。<br />
なんだかこれをlinkのURLに入れるとWordpress側でダメなようです。</p>
<p>解決策は<a href="http://ja.wikipedia.org/wiki/URL%E3%82%A8%E3%83%B3%E3%82%B3%E3%83%BC%E3%83%89">URLエンコード</a>してリンクを入れることですが、<br />
Firefox(3.0.11)は、アドレスからコピーすると、URLエンコードが必要な部分を勝手に変換してくれているようなので便利です。<br />
現在Google Chrome(2.0.172.33)を使用していますが、そちらはアドレスそのままなのですが、長音符号が入っていなければ全然問題なかったので気にしていませんでした。<br />
まあ、Firefoxで投稿すればURLエンコードをいちいちする必要もないので問題ないし、そもそも長音符号を含むURLは今のところあまりないのでよしとします。</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/07/01/wordpress%e3%81%ae%e6%8a%95%e7%a8%bf%e6%99%82%e3%83%a1%e3%83%a2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/07/01/wordpress%e3%81%ae%e6%8a%95%e7%a8%bf%e6%99%82%e3%83%a1%e3%83%a2/" />
	</item>
		<item>
		<title>WordPressプラグインの作成（３）</title>
		<link>http://blog.4sure.jp/yokoshima/2009/06/30/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%88%ef%bc%93%ef%bc%89/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/06/30/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%88%ef%bc%93%ef%bc%89/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 13:46:25 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=525</guid>
		<description><![CDATA[WordPressプラグインの作成（２）の続きです。
前回は管理画面で表示できるまでが出来ましたが、その設定値はどこに保存するか？というのが問題です。
Creating Options Pagesを見ると、すごく簡単そう。
WordPress MUでも、ブログ毎に設定が保存されるようなので、これが使えそうです。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
function wp_head&#40;&#41; &#123;		
	echo &#34;\n&#60;!-- My CSS Editor $this-&#62;version --&#62;\n&#34;;
	if&#40; get_option&#40;$this-&#62;option_name&#41; &#41;&#123;
		echo '&#60;style type=&#34;text/css&#34;&#62;';
		echo '&#60;--';
		echo get_option&#40;$this-&#62;option_name&#41;;
		echo '--&#62;';
		echo '&#60;/style&#62;';
	&#125;
&#125;
&#160;
function edit_setting&#40;&#41; &#123;
	if &#40; isset&#40;$_POST&#91;'action'&#93;&#41; &#38;&#38; $_POST&#91;'action'&#93; == 'update' &#41;&#123;
		update_option&#40;$this-&#62;option_name, $_POST&#91;'css_value'&#93;&#41;;
		echo '&#60;div id=&#34;message&#34; class=&#34;updated fade&#34;&#62;&#60;p&#62;&#60;strong&#62;Your Style Sheet was preserved. &#60;/strong&#62;&#60;/p&#62;&#60;/div&#62;';
	&#125;elseif&#40;isset&#40;$_POST&#91;'action'&#93;&#41; &#38;&#38; $_POST&#91;'action'&#93; == 'delete'&#41;&#123;
		delete_option&#40;$this-&#62;option_name&#41;;
		echo '&#60;div id=&#34;message&#34; class=&#34;updated fade&#34;&#62;&#60;p&#62;&#60;strong&#62;Your Style Sheet setting was deleted. &#60;/strong&#62;&#60;/p&#62;&#60;/div&#62;';
	&#125;
	echo '&#60;div class=&#34;wrap&#34;&#62;';
	echo [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.4sure.jp/yokoshima/2009/06/27/wordpressプラグインの作成（２）/">WordPressプラグインの作成（２）</a>の続きです。</p>
<p>前回は管理画面で表示できるまでが出来ましたが、その設定値はどこに保存するか？というのが問題です。</p>
<p><a href="http://wpdocs.sourceforge.jp/Creating_Options_Pages">Creating Options Pages</a>を見ると、すごく簡単そう。<br />
WordPress MUでも、ブログ毎に設定が保存されるようなので、これが使えそうです。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> wp_head<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>		
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&lt;!-- My CSS Editor <span style="color: #006699; font-weight: bold;">$this-&gt;version</span> --&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">option_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;style type=&quot;text/css&quot;&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;--'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">option_name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'--&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/style&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> edit_setting<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'update'</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		update_option<span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">option_name</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'css_value'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div id=&quot;message&quot; class=&quot;updated fade&quot;&gt;&lt;p&gt;&lt;strong&gt;Your Style Sheet was preserved. &lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'delete'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		delete_option<span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">option_name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div id=&quot;message&quot; class=&quot;updated fade&quot;&gt;&lt;p&gt;&lt;strong&gt;Your Style Sheet setting was deleted. &lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;wrap&quot;&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;h2&gt;Edit of your Style Sheet&lt;/h2&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;form&gt;option_name}\&quot;&quot;,  '</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;'.<span style="color: #006699; font-weight: bold;">$_SERVER</span>['REQUEST_URI'].'&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	wp_nonce_field('</span>update<span style="color: #339933;">-</span>options<span style="color: #0000ff;">');
	echo '</span><span style="color: #339933;">&lt;</span>table <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-table&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
&nbsp;
	echo '</span><span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Your Style Sheet setting can be made by editing the text area<span style="color: #339933;">.</span> <span style="color: #339933;">&lt;</span>br <span style="color: #339933;">/&gt;</span><span style="color: #0000ff;">';
	echo '</span>The setting can be deleted with the delete button<span style="color: #339933;">.</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;</span>tr valign<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;top&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;</span>th scope<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;row&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">option_name</span><span style="color: #339933;">&lt;/</span>th<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;</span>textarea name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;css_value&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
&nbsp;
	if($settings = get_option($this-&gt;option_name)){
		echo $settings;
	}else{
		;
	}
&nbsp;
	echo '</span><span style="color: #339933;">&lt;/</span>textarea<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
&nbsp;
	echo '</span><span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;/</span>table<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo &quot;function delete_setting(){alert('</span>delete?<span style="color: #0000ff;">');document.getElementById('</span>action<span style="color: #0000ff;">').value='</span>delete<span style="color: #0000ff;">';document.getElementById('</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">option_name</span><span style="color: #009900;">&#125;</span><span style="color: #0000ff;">').submit();}&quot;;
	echo '</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
}</span></pre></td></tr></table></div>

<p>コード書いてもちょっと見難いのですが、<br />
名前を「My CSS Editor」に変更しました。<br />
wp_head()関数では、$this-&gt;option_nameでオプションを取得して表示させています。（option_nameというインスタンス変数にオプション名を持たせています）<br />
edit_setting()関数では、つまりは、actionというhiddenの値で、updateとdeleteを切り替えています。<br />
メッセージはプラグインを公開するためにとりあえず英語にしました。<br />
あとは、国際化とWordpress.comに公開することです。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/06/30/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%88%ef%bc%93%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/06/30/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%88%ef%bc%93%ef%bc%89/" />
	</item>
	</channel>
</rss>
