<?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>PHPプログラマのバリ・ポジ情報ブログ &#187; WordPress</title>
	<atom:link href="http://blog.veryposi.info/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.veryposi.info</link>
	<description>PHP,JavaScriptやサーバーの設定などのプログラミングに関する情報をバリ・ポジティブに発信しているプログラマのブログ、『バリ・ポジ』</description>
	<lastBuildDate>Thu, 10 May 2012 06:23:01 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>XREA、CoreserverにWordPressをインストールしてみよう</title>
		<link>http://blog.veryposi.info/server/rent-server/xrea-coreserver-wordpress/</link>
		<comments>http://blog.veryposi.info/server/rent-server/xrea-coreserver-wordpress/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 00:33:44 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[レンタルサーバー]]></category>
		<category><![CDATA[coreserver]]></category>
		<category><![CDATA[xrea]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=593</guid>
		<description><![CDATA[今回は、レンタルサーバ、CoreserverにWordpressをインストールする手順を紹介します CoreserverにWordpressをインストールする上でとても厄介なのがPHPのセーフモードの問題なのです。 （問 [...]]]></description>
			<content:encoded><![CDATA[<p>今回は、レンタルサーバ、CoreserverにWordpressをインストールする手順を紹介します<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/sign03.gif" /></p>
<p>CoreserverにWordpressをインストールする上でとても厄介なのがPHPの<a href="http://jp.php.net/features.safe-mode">セーフモード</a>の問題なのです。<br />
（問題としては、ファイルの書き込み権限が無い<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/sweat01.gif" />為に、インストール作業をWebから自動的に行えなかったりします<img src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/down.gif" alt="" /><img src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/down.gif" alt="" />）</p>
<p>&nbsp;インストールする上で一番簡単な方法は、「全てのPHPをCGIモードで動作させセーフモードをオフにしてしまう」という方法です。</p>
<p>手順は過去の記事、「<a href="http://blog.veryposi.info/server/rent-server/xrea-coreserver-php-safemode/">XREA.com、CoreserverでのCGIで動作させる為の、.htaccess設定</a>」に記述してありますので参考にしてください。<br />
（この方法だと全てのモジュールがCGIモードで動作するので多少動作が遅くなります）</p>
<p>今回のインストール方法は、必要なPHPファイルのみをCGIモードで動作するように設定し、不必要なモジュールのCGIモードでの動作をさけて、なるべく動作を軽くWordPressをインストールすることを目的としています。</p>
<p>では、インストール作業手順の説明です<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/happy02.gif" /><span id="more-593"></span></p>
<h3>CoreserverにWordPress用のデータベースを作成しよう</h3>
<p>まずは、WordPressで使用するデータベースをCoreserverに作成していきます。</p>
<ol>
<li>Coreserverのコントロールパネルを開きます。<br />
    すると下の画像の画面が表示されます。<br />
    その中からデータベースと書いてある部分を見つけクリックしてください。<br />
    <a href="http://blog.veryposi.info/wp-content/uploads/2009/02/coreserver-wordpress-01.gif" rel="lightbox[593]"><img height="123" width="300" src="http://blog.veryposi.info/wp-content/uploads/2009/02/coreserver-wordpress-01-300x123.gif" alt="Coreserverの管理画面" title="Coreserverの管理画面" class="aligncenter size-medium wp-image-601" /></a></li>
<li>次に下のようなページに遷移しますので、画像の中の赤い丸で囲んである「１」「２」「３」の箇所を埋めてください。<br />
    １：データベース名<br />
    ２：パスワード<br />
    ３：文字コード（UNICODEを選択してください）<br />
    <a href="http://blog.veryposi.info/wp-content/uploads/2009/02/coreserver-wordpress-02.gif" rel="lightbox[593]"><img height="48" width="300" src="http://blog.veryposi.info/wp-content/uploads/2009/02/coreserver-wordpress-02-300x48.gif" alt="データベースの作成" title="データベースの作成" class="aligncenter size-medium wp-image-602" /></a></li>
<li>「１」「２」「３」を埋めたら右にあるラジオボタンを選択してから作成ボタンを押下します。<br />
    すると以下のような画面に遷移し、データベースが作成されます。<br />
    （作成までには時間がかかる場合があります）<br />
    <a href="http://blog.veryposi.info/wp-content/uploads/2009/02/coreserver-wordpress-03.gif" rel="lightbox[593]"><img height="35" width="300" src="http://blog.veryposi.info/wp-content/uploads/2009/02/coreserver-wordpress-03-300x35.gif" alt="データベース作成完了" title="データベース作成完了" class="aligncenter size-medium wp-image-603" /></a></li>
</ol>
<p>これで第1関門のデータベースの作成は完了です。</p>
<p>次は、WordPressのインストール作業に移っていきます。</p>
<h3>WordPressのインストール</h3>
<ol>
<li>日本のWordPressのサイトから「<a href="http://ja.wordpress.org/">こちら</a>」から最新版のWordPressをダウンロードしてきます。</li>
<li>ダウンロードしてきたWordPressの圧縮ファイルを解凍してCoreserverのインストール対象フォルダに全部アップロードします。<br />
    （本当はいらないファイルもあるけど面倒なので全部アップしちゃいます<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/coldsweats01.gif" />）</li>
<li>WordPressをアップロードしたのと同じフォルダに以下の内容で.htaccessファイルを作成します。<br />
    （セットアップ、テーマの修正、プラグインの修正、ファイルのアップロードに関わるモジュールのみをセーフモードをオフにしています）</p>
<div class="syntax">
<table>
<tbody>
<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
</pre>
</td>
<td class="code">
<pre class="ini">
&lt;Files setup-config.php&gt;
	AddHandler application/x-httpd-phpcgi .php
&lt;/Files&gt;
&lt;Files plugin-editor.php&gt;
	AddHandler application/x-httpd-phpcgi .php
&lt;/Files&gt;
&lt;Files theme-editor.php&gt;
	AddHandler application/x-httpd-phpcgi .php
&lt;/Files&gt;
&lt;Files upload.php&gt;
	AddHandler application/x-httpd-phpcgi .php
&lt;/Files&gt;
&lt;Files async-upload.php&gt;
	AddHandler application/x-httpd-phpcgi .php
&lt;/Files&gt;
&lt;Files io.php&gt;
	AddHandler application/x-httpd-phpcgi .php
&lt;/Files&gt;
&nbsp;
php_flag register_globals Off
php_flag display_errors Off
php_flag log_errors     On
&nbsp;
php_value default_charset UTF<span style="">-8</span>
php_value mbstring.detect_order UTF<span style="">-8</span>,auto
php_value mbstring.language Japanese
php_flag  mbstring.encoding_translation on
php_value mbstring.internal_encoding UTF<span style="">-8</span>
php_value mbstring.http_input auto
php_value mbstring.http_output pass
php_value mbstring.substitute_character ?
&nbsp;
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteCond %<span style="">{</span>REQUEST_FILENAME<span style="">}</span> !-f
RewriteCond %<span style="">{</span>REQUEST_FILENAME<span style="">}</span> !-d
RewriteRule . /index.php <span style="color: rgb(0, 0, 102); font-weight: bold;"><span style="">[</span>L<span style="">]</span></span>
&lt;/IfModule&gt;</pre>
</td>
</tr>
</tbody>
</table></div>
</li>
<li>&nbsp;wordpressをアップロードしたフォルダにウェブブラウザでアクセスすると以下のような画面が表示されます。<br />
    <a href="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-01.gif" rel="lightbox[593]"><img height="72" width="300" class="aligncenter size-medium wp-image-615" title="wp-install-01" alt="wp-install-01" src="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-01-300x72.gif" /></a><br />
    この画面が表示されたら、「wp-config.phpファイルを作成する」ボタンを押下してインストール処理を継続します。<br />
    表示されない場合は、アクセスしているフォルダが違う可能性がありますのでアップロードしたフォルダとブラウザのURLを再度確認してください。</li>
<li>次に以下の画面が表示されるので「次に進みましょう！」ボタンを押下して次の画面に進みます。<br />
    <a href="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-02.gif" rel="lightbox[593]"><img height="180" width="300" class="aligncenter size-medium wp-image-616" title="wp-install-02" alt="wp-install-02" src="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-02-300x180.gif" /></a></li>
<li>次の画面では、WordPressで使用するデータベースの情報を設定できるようになっています。<br />
    <a href="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-03.gif" rel="lightbox[593]"><img height="208" width="300" src="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-03-300x208.gif" alt="wp-install-03" title="wp-install-03" class="aligncenter size-medium wp-image-618" /></a></li>
<li>「データベース名」「ユーザー名」「パスワード」を先ほど作成したデータベースの内容で設定します。<br />
    <a href="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-04.gif" rel="lightbox[593]"><img height="210" width="300" src="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-04-300x210.gif" alt="wp-install-04" title="wp-install-04" class="aligncenter size-medium wp-image-619" /></a><br />
    「データベースのホスト名」は「localhost」、「テーブル接頭辞」は「wp_」のままで構いません。<br />
    （セキュリティの為、一部画像をぼかしています）<br />
    設定できたら「作成する」ボタンを押下します。</li>
<li>WordPressで使用するテーブルの作成に成功すると以下の画面が表示されます。<br />
    表示されない場合は、どこか間違っているので見直してください。<br />
    <a href="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-06.gif" rel="lightbox[593]"><img height="213" width="300" src="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-06-300x213.gif" alt="wp-install-06" title="wp-install-06" class="aligncenter size-medium wp-image-620" /></a></li>
<li>この画面では、ブログのタイトルと管理者のメールアドレスを設定します。<br />
    <a href="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-07.gif" rel="lightbox[593]"><img height="215" width="300" src="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-07-300x215.gif" alt="wp-install-07" title="wp-install-07" class="aligncenter size-medium wp-image-621" /></a><br />
    &nbsp;     「ブログタイトル、メールアドレス」ともに入力できたら、WordPressをインストールを押下します。</li>
<li>インストールに成功すると、ユーザー名とパスワードが表示された画面に遷移します。<br />
    <a href="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-08.gif" rel="lightbox[593]"><img height="156" width="300" src="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-08-300x156.gif" alt="wp-install-08" title="wp-install-08" class="aligncenter size-medium wp-image-622" /></a><br />
    ここで表示されている「ユーザー名」「パスワード」はログインする時に必要ですのでメモしておいてください。</li>
<li>「ログイン」ボタンを押下するとログイン画面に遷移します。<br />
    <a href="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-09.gif" rel="lightbox[593]"><img height="278" width="300" src="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-09-300x278.gif" alt="wp-install-09" title="wp-install-09" class="aligncenter size-medium wp-image-623" /></a></li>
<li>ここで先程メモしておいたユーザー名とパスワードを入力し「ログイン」ボタンを押下すると、ログインに成功しWordPressの管理画面が表示されます。<br />
    （セキュリティの関係上、adminユーザーは削除したほうがお勧めです）<br />
    <a href="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-10.gif" rel="lightbox[593]"><img height="158" width="300" class="aligncenter size-medium wp-image-631" title="wp-install-10" alt="wp-install-10" src="http://blog.veryposi.info/wp-content/uploads/2009/02/wp-install-10-300x158.gif" /></a></li>
<li>これでWordPressのインストール完了です。<br />
    あとは、色々と試してください。<br />
    プラグインの中にもセーフモードのせいで動作しないものも出てきますので、その都度必要な場合は.htaccessを書きなおしてください。</li>
</ol>
<p>これでWordPressが楽しめます<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/note.gif" /></p>
<p>思いっきり楽しい、ブログを書いてみてください<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/happy01.gif" /></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/server/rent-server/xrea-coreserver-wordpress/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>FCKEditorでpreタグの改行が消えてしまう原因</title>
		<link>http://blog.veryposi.info/programing/cms/wordpress/wordpress-fckeditor-pre/</link>
		<comments>http://blog.veryposi.info/programing/cms/wordpress/wordpress-fckeditor-pre/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 04:52:32 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[fckeditor]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=420</guid>
		<description><![CDATA[FCKEditorを使用していてpreタグの中の改行コードが消えてしまう事象が発生 これは、ある特定の場合に発生していることが判明しました IE以外のブラウザを使用している。 （FireFoxなど） preタグの中でsp [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.fckeditor.net/">FCKEditor</a>を使用していてpreタグの中の改行コードが消えてしまう事象が発生<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/sign03.gif" /></p>
<p>これは、ある特定の場合に発生していることが判明しました<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/happy01.gif" /></p>
<ol>
<li>IE以外のブラウザを使用している。<br />
    （FireFoxなど）</li>
<li>preタグの中でspanタグを使用していて、そのspanタグの中で改行コードが使用されている<br />
    （ソースコードの整形の為のシンタックスハイライトを行っている場合に良く発生します）</li>
</ol>
<p>この条件がそろうとFCKEditorで「ソースモード」と「WYSIWYGモード」を切り替えているとpreタグの中のspanタグの中にあった改行コードがなくなってしまいます<img src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/weep.gif" alt="" /></p>
<p><a href="http://blog.veryposi.info/wp-content/uploads/2009/02/fckeditor-pre.gif" rel="lightbox[420]"><img height="100" width="300" src="http://blog.veryposi.info/wp-content/uploads/2009/02/fckeditor-pre-300x100.gif" alt="FCKEditorで改行コードが消える" title="FCKEditorで改行コードが消える" class="aligncenter size-medium wp-image-423" /></a></p>
<p>原因を調査した結果以下のことが判明しました。</p>
<ol>
<li>FCKEditorでは、preタグ直下の要素の改行はそのまま改行と判断し、残します。</li>
<li>preタグ以外のタグの中でbrでないただの改行コードがあった場合、半角スペースに置き換えます。</li>
</ol>
<p>となるとpreタグの中に別のタグがあった場合、別のタグの要素として判断され改行コードを半角スペースに置き換えてしまいます。</p>
<p>ということは、preタグの中のspanタグの中の改行コードは、半角スペースに変更されてしまうということです。（spanタグの中の改行コードと判断される為）</p>
<p>なのでこれを対策する為にFCKEditorのコアファイルに修正を加えました。</p>
<p>修正内容）</p>
<div class="syntax">
<table>
<tbody>
<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
</pre>
</td>
<td class="code">
<pre class="php">
*** original/fckxhtml.js	<span style="color: rgb(204, 102, 204);">2008</span><span style="color: rgb(204, 102, 204);">-10</span><span style="color: rgb(204, 102, 204);">-07</span> <span style="color: rgb(204, 102, 204);">13</span>:<span style="color: rgb(204, 102, 204);">52</span>:<span style="color: rgb(204, 102, 204);">24.000000000</span> <span style="color: rgb(204, 102, 204);">+0900</span>
--- fckxhtml.js	<span style="color: rgb(204, 102, 204);">2009</span><span style="color: rgb(204, 102, 204);">-02</span><span style="color: rgb(204, 102, 204);">-12</span> <span style="color: rgb(204, 102, 204);">09</span>:<span style="color: rgb(204, 102, 204);">47</span>:<span style="color: rgb(204, 102, 204);">39.000000000</span> <span style="color: rgb(204, 102, 204);">+0900</span>
***************
*** <span style="color: rgb(204, 102, 204);">189</span>,<span style="color: rgb(204, 102, 204);">195</span> ****
  			<span style="color: rgb(128, 128, 128); font-style: italic;">// This is a workaround for the Gecko bug here: https://bugzilla.mozilla.org/show_bug.cgi?id=92921</span>
  			<span style="color: rgb(177, 177, 0);">if</span> <span style="color: rgb(102, 204, 102);">(</span> FCKBrowserInfo.IsGecko
  					&amp;&amp; htmlNode.tagName.toLowerCase<span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(102, 204, 102);">)</span> == <span style="color: rgb(255, 0, 0);">'br'</span>
! 					&amp;&amp; htmlNode.parentNode.tagName.toLowerCase<span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(102, 204, 102);">)</span> == <span style="color: rgb(255, 0, 0);">'pre'</span> <span style="color: rgb(102, 204, 102);">)</span>
  			<span style="color: rgb(102, 204, 102);">{</span>
  				<span style="color: rgb(0, 0, 0); font-weight: bold;">var</span> val = <span style="color: rgb(255, 0, 0);">'<span style="color: rgb(0, 0, 153); font-weight: bold;">\r</span>'</span> ;
  				<span style="color: rgb(177, 177, 0);">if</span> <span style="color: rgb(102, 204, 102);">(</span> htmlNode == htmlNode.parentNode.firstChild <span style="color: rgb(102, 204, 102);">)</span>
--- <span style="color: rgb(204, 102, 204);">189</span>,<span style="color: rgb(204, 102, 204);">199</span> ----
  			<span style="color: rgb(128, 128, 128); font-style: italic;">// This is a workaround for the Gecko bug here: https://bugzilla.mozilla.org/show_bug.cgi?id=92921</span>
  			<span style="color: rgb(177, 177, 0);">if</span> <span style="color: rgb(102, 204, 102);">(</span> FCKBrowserInfo.IsGecko
  					&amp;&amp; htmlNode.tagName.toLowerCase<span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(102, 204, 102);">)</span> == <span style="color: rgb(255, 0, 0);">'br'</span>
! 					&amp;&amp; <span style="color: rgb(102, 204, 102);">(</span>
! 						htmlNode.parentNode.tagName.toLowerCase<span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(102, 204, 102);">)</span> == <span style="color: rgb(255, 0, 0);">'pre'</span> ||
! 						<span style="color: rgb(102, 204, 102);">(</span> htmlNode.parentNode &amp;&amp; htmlNode.parentNode.parentNode &amp;&amp; htmlNode.parentNode.parentNode.nodeName.IEquals<span style="color: rgb(102, 204, 102);">(</span> <span style="color: rgb(255, 0, 0);">'pre'</span> <span style="color: rgb(102, 204, 102);">)</span> <span style="color: rgb(102, 204, 102);">)</span>
! 					 <span style="color: rgb(102, 204, 102);">)</span>
! 			<span style="color: rgb(102, 204, 102);">)</span>
  			<span style="color: rgb(102, 204, 102);">{</span>
  				<span style="color: rgb(0, 0, 0); font-weight: bold;">var</span> val = <span style="color: rgb(255, 0, 0);">'<span style="color: rgb(0, 0, 153); font-weight: bold;">\r</span>'</span> ;
  				<span style="color: rgb(177, 177, 0);">if</span> <span style="color: rgb(102, 204, 102);">(</span> htmlNode == htmlNode.parentNode.firstChild <span style="color: rgb(102, 204, 102);">)</span>
***************
*** <span style="color: rgb(204, 102, 204);">270</span>,<span style="color: rgb(204, 102, 204);">276</span> ****
&nbsp;
  		<span style="color: rgb(128, 128, 128); font-style: italic;">// Text Node.</span>
  		<span style="color: rgb(177, 177, 0);">case</span> <span style="color: rgb(204, 102, 204);">3</span> :
! 			<span style="color: rgb(177, 177, 0);">if</span> <span style="color: rgb(102, 204, 102);">(</span> htmlNode.parentNode &amp;&amp; htmlNode.parentNode.nodeName.IEquals<span style="color: rgb(102, 204, 102);">(</span> <span style="color: rgb(255, 0, 0);">'pre'</span> <span style="color: rgb(102, 204, 102);">)</span> <span style="color: rgb(102, 204, 102);">)</span>
  				<span style="color: rgb(177, 177, 0);">return</span> this._AppendTextNode<span style="color: rgb(102, 204, 102);">(</span> xmlNode, htmlNode.nodeValue <span style="color: rgb(102, 204, 102);">)</span> ;
  			<span style="color: rgb(177, 177, 0);">return</span> this._AppendTextNode<span style="color: rgb(102, 204, 102);">(</span> xmlNode, htmlNode.nodeValue.ReplaceNewLineChars<span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(255, 0, 0);">' '</span><span style="color: rgb(102, 204, 102);">)</span> <span style="color: rgb(102, 204, 102);">)</span> ;
&nbsp;
--- <span style="color: rgb(204, 102, 204);">274</span>,<span style="color: rgb(204, 102, 204);">283</span> ----
&nbsp;
  		<span style="color: rgb(128, 128, 128); font-style: italic;">// Text Node.</span>
  		<span style="color: rgb(177, 177, 0);">case</span> <span style="color: rgb(204, 102, 204);">3</span> :
! 			<span style="color: rgb(177, 177, 0);">if</span> <span style="color: rgb(102, 204, 102);">(</span>
! 				<span style="color: rgb(102, 204, 102);">(</span> htmlNode.parentNode &amp;&amp; htmlNode.parentNode.nodeName.IEquals<span style="color: rgb(102, 204, 102);">(</span> <span style="color: rgb(255, 0, 0);">'pre'</span> <span style="color: rgb(102, 204, 102);">)</span> <span style="color: rgb(102, 204, 102);">)</span> ||
! 				<span style="color: rgb(102, 204, 102);">(</span> htmlNode.parentNode &amp;&amp; htmlNode.parentNode.parentNode &amp;&amp; htmlNode.parentNode.parentNode.nodeName.IEquals<span style="color: rgb(102, 204, 102);">(</span> <span style="color: rgb(255, 0, 0);">'pre'</span> <span style="color: rgb(102, 204, 102);">)</span> <span style="color: rgb(102, 204, 102);">)</span>
! 			 <span style="color: rgb(102, 204, 102);">)</span>
  				<span style="color: rgb(177, 177, 0);">return</span> this._AppendTextNode<span style="color: rgb(102, 204, 102);">(</span> xmlNode, htmlNode.nodeValue <span style="color: rgb(102, 204, 102);">)</span> ;
  			<span style="color: rgb(177, 177, 0);">return</span> this._AppendTextNode<span style="color: rgb(102, 204, 102);">(</span> xmlNode, htmlNode.nodeValue.ReplaceNewLineChars<span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(255, 0, 0);">' '</span><span style="color: rgb(102, 204, 102);">)</span> <span style="color: rgb(102, 204, 102);">)</span> ;</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>対象の要素の親の親のタグがpreかどうか判断するという方法に修正しました。<br />
これで修正が完璧かというと完璧ではないと思います。</p>
<p>なのでそれぞれの環境に合うように修正して使用してください。</p>
<p>それでは、修正の反映方法です。</p>
<p><span id="more-420"></span></p>
<ol>
<li>まず、FCKEditorのルートフォルダ「fckeditor」フォルダに移動します。<br />
    （ここには「fckconfig.js」などのソースファイルが格納されています。）</li>
<li>そのフォルダから「fckeditor\editor\_source\internals」フォルダに移動します。</li>
<li>「fckxhtml.js」ファイルを開き、189～195行目、270～276行目を上記内容に修正します。</li>
<li><a href="http://svn.fckeditor.net/FCKpackager/trunk/fckpackager.exe">fckpackager.exe</a>をダウンロードしてきます<br />
    （これは、FCKEditorのソースファイルを圧縮するためのツールです。詳しくは<a href="http://www.fckeditor.net/fckpackager">こちら</a>）</li>
<li>ダウンロードしてきたファイルをfckeditorのルートフォルダにコピーします。</li>
<li>「fckpackager.exe」を実行します。</li>
<li>実行が成功すると、「fckeditor\editor\js」フォルダの「fckeditorcode_ie.js」と「fckeditorcode_gecko.js」が更新されるのでその２つのファイルをFCKEditorを使用しているフォルダにアップロードします。</li>
<li>これでFCKEditorの修正は完了です<img src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/sign03.gif" alt="" /></li>
</ol>
<p>設定方法が、もしわからん<img src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/sign02.gif" alt="" />かったら連絡もらえたら教えますよ<img src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/note.gif" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/programing/cms/wordpress/wordpress-fckeditor-pre/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPressの当サイトのテーマ『veryposi』</title>
		<link>http://blog.veryposi.info/programing/cms/wordpress/wordpress-theme-veryposi/</link>
		<comments>http://blog.veryposi.info/programing/cms/wordpress/wordpress-theme-veryposi/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 07:06:29 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=99</guid>
		<description><![CDATA[このサイトで使用しているWordPressのテーマを公開します。 ダウンロードファイル：テーマ（veryposi） 設置方法 上記リンクのファイルをダウンロードします。 ダウンロードしたファイルを解凍してできたフォルダを [...]]]></description>
			<content:encoded><![CDATA[<p>このサイトで使用しているWordPressのテーマを公開します。</p>
<p>ダウンロードファイル：<a href="http://blog.veryposi.info/wp-content/uploads/2009/02/veryposi.zip">テーマ（veryposi）</a></p>
<p>設置方法</p>
<ol>
<li>上記リンクのファイルをダウンロードします。</li>
<li>ダウンロードしたファイルを解凍してできたフォルダをWordPressのthemeフォルダにアップロードします。</li>
<li>管理画面からテーマ「veryposi」を有効にします。</li>
</ol>
<p>これでこのサイトで使用しているテーマを使用できます。</p>
<p>よかったら使ってみてください<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/note.gif" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/programing/cms/wordpress/wordpress-theme-veryposi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FCKEditorのプラグインGeshiProを改造</title>
		<link>http://blog.veryposi.info/programing/cms/wordpress/fckeditor-plugin-geshipro/</link>
		<comments>http://blog.veryposi.info/programing/cms/wordpress/fckeditor-plugin-geshipro/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 20:37:36 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[fckeditor]]></category>
		<category><![CDATA[geshipro]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=58</guid>
		<description><![CDATA[&#160; FCKEditorのプラグインGeghiProを改造しました。 行番号とソースコードをテーブル組みに変えてソースコードのみを選択コピーできるようにしました。 &#160; 例えば &#160; 1 2 3  [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>FCKEditorのプラグインGeghiProを改造しました。</p>
<p>行番号とソースコードをテーブル組みに変えてソースコードのみを選択コピーできるようにしました。</p>
<p>&nbsp;</p>
<p>例えば</p>
<p>&nbsp;</p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1
2
3
4
5
</pre>
</td>
<td class="code">
<pre class="html4strict"><span style="color: rgb(0, 153, 0);"><a href="http://december.com/html/4/element/div.html"><span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;div</span></a> <span style="color: rgb(0, 0, 102);">style</span>=<span style="color: rgb(255, 0, 0);">&quot;width: 300px;&quot;</span><span style="color: rgb(0, 0, 0); font-weight: bold;">&gt;</span></span>
    <span style="color: rgb(0, 153, 0);"><a href="http://december.com/html/4/element/div.html"><span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;div</span></a> <span style="color: rgb(0, 0, 102);">style</span>=<span style="color: rgb(255, 0, 0);">&quot;margin: 0px auto; width:20px; border:1px solid red;&quot;</span><span style="color: rgb(0, 0, 0); font-weight: bold;">&gt;</span></span>
        ○
    <span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;/div&gt;</span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;/div&gt;</span></span></pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<p>こんな感じです。</p>
<p>後は、スタイルシートでデザインすればOK！！</p>
<p>その他、行数を1以外からもはじめられるように修正しました。</p>
<p>&nbsp;</p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
100
101
102
103
104
</pre>
</td>
<td class="code">
<pre class="html4strict"><span style="color: rgb(0, 153, 0);"><a href="http://december.com/html/4/element/div.html"><span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;div</span></a> <span style="color: rgb(0, 0, 102);">style</span>=<span style="color: rgb(255, 0, 0);">&quot;width: 300px;&quot;</span><span style="color: rgb(0, 0, 0); font-weight: bold;">&gt;</span></span>
    <span style="color: rgb(0, 153, 0);"><a href="http://december.com/html/4/element/div.html"><span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;div</span></a> <span style="color: rgb(0, 0, 102);">style</span>=<span style="color: rgb(255, 0, 0);">&quot;margin: 0px auto; width:20px; border:1px solid red;&quot;</span><span style="color: rgb(0, 0, 0); font-weight: bold;">&gt;</span></span>
        ○
    <span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;/div&gt;</span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;/div&gt;</span></span></pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<p>こんな感じです。</p>
<p>よかったら使ってみてください<img src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/happy01.gif" alt="" /></p>
<p>ダウンロードファイルは、「<a href="http://www.deanlee.cn/wordpress/fckeditor-for-wordpress-plugin/">Dean&rsquo;s FCKEditor for WordPress plugin</a>」というプラグインにGeshiProを同梱してあります。</p>
<p>インストール方法：</p>
<p><span id="more-58"></span></p>
<ol>
<li>以下のリンクからWordPressのプラグインの圧縮ファイルをダウンロードします。</li>
<li>ダウンロードした圧縮したダウンロードファイルを解凍します。</li>
<li>解凍してできたフォルダをWordPressのプラグインのフォルダにまるごとアップロードします（「wp-content\plugins」へアップロード)</li>
<li>WordPressの管理画面から「Dean&#8217;s FCKEditor For WordPress」のプラグインを有効にします。</li>
<li>これで完了です。</li>
</ol>
<p>あとは、新規作成ボタンを押下するとFCKEditorが立ち上がるので、</p>
<p><a href="http://blog.veryposi.info/wp-content/uploads/2009/02/geshipro.jpg" rel="lightbox[58]"><img height="88" width="300" class="aligncenter size-medium wp-image-60" title="geshipro" alt="geshipro" src="http://blog.veryposi.info/wp-content/uploads/2009/02/geshipro-300x88.jpg" /></a></p>
<p>このアイコンをクリックするとGeshiProの改造版が使用できます。</p>
<p>ダウンロードファイル：<a href="http://blog.veryposi.info/wp-content/uploads/2009/02/fckeditor-for-wordpress-plugin.zip">GeshiPro(改造版)</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/programing/cms/wordpress/fckeditor-plugin-geshipro/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPressにソーシャルブックマークへ追加ボタンを表示</title>
		<link>http://blog.veryposi.info/programing/htmlcss/wordpress-sbm/</link>
		<comments>http://blog.veryposi.info/programing/htmlcss/wordpress-sbm/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 10:05:40 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[HTML／CSS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.veryposi.info/blog/?p=53</guid>
		<description><![CDATA[WordPressにソーシャルブックマークへの追加ボタンの表示方法を調べました。 &#160; 1 2 3 4 5 6 7 8 9 10 11 12 13 ■はてなブックマーク &#60;a href=&#34;http [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressにソーシャルブックマークへの追加ボタンの表示方法を調べました。</p>
<p>&nbsp;</p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1
2
3
4
5
6
7
8
9
10
11
12
13
</pre>
</td>
<td class="code">
<pre class="div">
■はてなブックマーク
&lt;a href=<span style="color: rgb(255, 0, 0);">&quot;http://b.hatena.ne.jp/entry/&lt;?php the_permalink(); ?&gt;&quot;</span>&gt;&lt;img src=<span style="color: rgb(255, 0, 0);">&quot;http://demo.veryposi.info/images/b_entry.gif&quot;</span> width=<span style="color: rgb(255, 0, 0);">&quot;16&quot;</span> height=<span style="color: rgb(255, 0, 0);">&quot;12&quot;</span> style=<span style="color: rgb(255, 0, 0);">&quot;border: none;&quot;</span> alt=<span style="color: rgb(255, 0, 0);">&quot;この記事をはてなブックマーク&quot;</span> title=<span style="color: rgb(255, 0, 0);">&quot;この記事をはてなブックマーク&quot;</span> /&gt;&lt;/a&gt;
&lt;a href=<span style="color: rgb(255, 0, 0);">&quot;http://b.hatena.ne.jp/entry/&lt;?php the_permalink(); ?&gt;&quot;</span>&gt;&lt;img src=<span style="color: rgb(255, 0, 0);">&quot;http://b.hatena.ne.jp/entry/image/&lt;?php the_permalink(); ?&gt;&quot;</span> style=<span style="color: rgb(255, 0, 0);">&quot;border: none;&quot;</span> alt=<span style="color: rgb(255, 0, 0);">&quot;はてなブックマーク - &lt;?php the_title(); ?&gt;&quot;</span> title=<span style="color: rgb(255, 0, 0);">&quot;はてなブックマーク - &lt;?php the_title(); ?&gt;&quot;</span>&gt;&lt;/a&gt;
■Livedoor Clip
&lt;a href=<span style="color: rgb(255, 0, 0);">&quot;http://clip.livedoor.com/redirect?link=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php bloginfo(&rsquo;name&rsquo;); ?&gt;%20-%20&lt;?php the_title(); ?&gt;&amp;ie=utf-8&quot;</span> title=<span style="color: rgb(255, 0, 0);">&quot;この記事をlivedoorクリップ&quot;</span>&gt;&lt;img src=<span style="color: rgb(255, 0, 0);">&quot;http://parts.blog.livedoor.jp/img/cmn/clip_16_16_w.gif&quot;</span> width=<span style="color: rgb(255, 0, 0);">&quot;16&quot;</span> height=<span style="color: rgb(255, 0, 0);">&quot;16&quot;</span> alt=<span style="color: rgb(255, 0, 0);">&quot;この記事をlivedoorクリップ&quot;</span> style=<span style="color: rgb(255, 0, 0);">&quot;border: none;vertical-align: middle;&quot;</span> /&gt;&lt;/a&gt;
&lt;a href=<span style="color: rgb(255, 0, 0);">&quot;http://clip.livedoor.com/page/&lt;?php the_permalink(); ?&gt;&quot;</span>&gt;&lt;img src=<span style="color: rgb(255, 0, 0);">&quot;http://image.clip.livedoor.com/counter/medium/&lt;?php the_permalink(); ?&gt;&quot;</span> style=<span style="color: rgb(255, 0, 0);">&quot;border: none;&quot;</span> alt=<span style="color: rgb(255, 0, 0);">&quot;livedoorクリップ - &lt;?php the_title(); ?&gt;&quot;</span> /&gt;&lt;/a&gt;
■Yahoo!ブックマーク
&lt;a href=<span style="color: rgb(255, 0, 0);">&quot;http://bookmarks.yahoo.co.jp/action/bookmark?t=&lt;?php urlencode(the_title()) ?&gt;&amp;u=&lt;?php urlencode(the_permalink()) ?&gt;&quot;</span>&gt;&lt;img src=<span style="color: rgb(255, 0, 0);">&quot;http://i.yimg.jp/images/sicons/ybm16.gif&quot;</span> width=<span style="color: rgb(255, 0, 0);">&quot;16&quot;</span> height=<span style="color: rgb(255, 0, 0);">&quot;16&quot;</span> alt=<span style="color: rgb(255, 0, 0);">&quot;この記事をYahoo!ブックマーク&quot;</span> style=<span style="color: rgb(255, 0, 0);">&quot;border:none;&quot;</span>&gt;&lt;/a&gt;
&lt;a href=<span style="color: rgb(255, 0, 0);">&quot;http://bookmarks.yahoo.co.jp/url?url=&lt;?php urlencode(the_permalink()) ?&gt;&quot;</span>&gt;&lt;img src=<span style="color: rgb(255, 0, 0);">&quot;http://num.bookmarks.yahoo.co.jp/image/small/&lt;?php the_permalink() ?&gt;&quot;</span> style=<span style="color: rgb(255, 0, 0);">&quot;border: none;&quot;</span> alt=<span style="color: rgb(255, 0, 0);">&quot;Yahoo!ブックマーク - &lt;?php the_title(); ?&gt;&quot;</span> title=<span style="color: rgb(255, 0, 0);">&quot;Yahoo!ブックマーク - &lt;?php the_title(); ?&gt;&quot;</span> /&gt;&lt;/a&gt;
■del.icio.us
&lt;a href=<span style="color: rgb(255, 0, 0);">&quot;http://delicious.com/save&quot;</span> onclick=<span style="color: rgb(255, 0, 0);">&quot;window.open(&lsquo;http://delicious.com/save?v=5&amp;amp;noui&amp;amp;jump=close&amp;amp;url=&rsquo;+encodeURIComponent(&lsquo;&lt;?php the_permalink() ?&gt;&lsquo;)+&rsquo;&amp;amp;title=&rsquo;+encodeURIComponent(&rsquo;&lt;?php the_title() ?&gt;&lsquo;),&rsquo;delicious&rsquo;, &lsquo;toolbar=no,width=550,height=550&prime;); return false;&quot;</span>&gt;&lt;img src=<span style="color: rgb(255, 0, 0);">&quot;http://static.delicious.com/img/delicious.small.gif&quot;</span> height=<span style="color: rgb(255, 0, 0);">&quot;10&quot;</span> width=<span style="color: rgb(255, 0, 0);">&quot;10&quot;</span> style=<span style="color: rgb(255, 0, 0);">&quot;border: none;&quot;</span> alt=<span style="color: rgb(255, 0, 0);">&quot;この記事をdel.icio.usへ登録する&quot;</span> /&gt;&lt;/a&gt;
■Googleブックマーク
&lt;a href=<span style="color: rgb(255, 0, 0);">&quot;http://www.google.com/bookmarks/mark?op=edit&amp;hl=ja&amp;bkmk=&lt;?php urlencode(the_permalink()) ?&gt;&amp;title=&lt;?php urlencode(the_title()) ?&gt;&quot;</span>&gt;&lt;img src=<span style="color: rgb(255, 0, 0);">&quot;http://www.google.co.jp/favicon.ico&quot;</span> style=<span style="color: rgb(255, 0, 0);">&quot;border: none;&quot;</span> alt=<span style="color: rgb(255, 0, 0);">&quot;この記事をGoogleブックマーク&quot;</span> title=<span style="color: rgb(255, 0, 0);">&quot;この記事をGoogleブックマーク&quot;</span> /&gt;&lt;/a&gt;</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>調べたのは</p>
<p>はてなブックマーク、livedoorクリップ、Yahoo!ブックマーク、del.icio.us、Googleブックマークの5つです。</p>
<p>よかったら使ってみてください。</p>
<p>俺は「<a href="http://www.addclips.org/">AddClips</a>」っていう便利なWebサービスがあるのでそちらつかいます<img src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/catface.gif" alt="" /></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/programing/htmlcss/wordpress-sbm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TinyMCE AdvancedっていうプラグインにTypePad絵文字追加したよ</title>
		<link>http://blog.veryposi.info/programing/cms/wordpress/tintmceadvanced-typepad-emoji/</link>
		<comments>http://blog.veryposi.info/programing/cms/wordpress/tintmceadvanced-typepad-emoji/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 09:50:18 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.veryposi.info/blog/programing/cms/wordpress/41/</guid>
		<description><![CDATA[前の投稿で紹介した、TinyMCE用TypePad絵文字プラグインを「TinyMCE Advanced」っていうプラグインで簡単にボタン追加できるようにしたよ こんな感じ この絵文字追加プラグインのファイルは、以下からダ [...]]]></description>
			<content:encoded><![CDATA[<p>前の投稿で紹介した、TinyMCE用TypePad絵文字プラグインを「<a href="http://www.laptoptips.ca/projects/tinymce-advanced/">TinyMCE Advanced</a>」っていうプラグインで簡単にボタン追加できるようにしたよ<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/happy02.gif" /><img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/up.gif" /><img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/up.gif" /></p>
<p>こんな感じ</p>
<p><a href="http://blog.veryposi.info/wp-content/uploads/2009/02/tinymce-advanced.png" rel="lightbox[41]"><img height="149" width="300" src="http://blog.veryposi.info/wp-content/uploads/2009/02/tinymce-advanced-300x149.png" alt="TinyMCE Advancedのスナップショット" title="TinyMCE Advancedのスナップショット" class="alignnone size-medium wp-image-39" /></a></p>
<p><span id="more-41"></span>この絵文字追加プラグインのファイルは、以下からダウンロードできます。</p>
<p>Download：<a href="http://blog.veryposi.info/wp-content/uploads/2009/02/tinymce-advancedemoji.zip">tinymce-advancedemoji.zip</a></p>
<p>インストール方法：</p>
<ol>
<li>上記ダウンロードファイルを解凍してできたフォルダを、全てWordPressのプラグインフォルダに入れます<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/up.gif" /></li>
<li>管理画面のプラグインの設定から「TinyMCE Advanced」のプラグインを有効にします<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/sign01.gif" /></li>
</ol>
<p>これで、インストール完了です<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/good.gif" /></p>
<p>あとは、プラグインの設定画面を見てもらうと「Typepad Emoji」という項目が追加されていますので、<br />
それを、上の「Drag and Drop領域」にドラッグアンドドロップして「Save Changes」を押下してください。そうすると編集画面のTinyMCEに新しいアイコンが表示されるようになります。</p>
<p>これで編集画面にアイコンが表示されない場合は、ブラウザのキャッシュを一度削除してから再度編集画面を表示してみてください。</p>
<p>よかったら使ってみてください。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/programing/cms/wordpress/tintmceadvanced-typepad-emoji/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>WordPressのTinyMCEにTypePadの絵文字を追加したよ！！</title>
		<link>http://blog.veryposi.info/programing/cms/wordpress/wordpress-tinymce-typepad/</link>
		<comments>http://blog.veryposi.info/programing/cms/wordpress/wordpress-tinymce-typepad/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 09:22:03 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.veryposi.info/blog/?p=29</guid>
		<description><![CDATA[この記事の内容は「TinyMCE Advanced」で簡単に絵文字を追加できるようになりました。 詳しくは、記事：TinyMCE AdvancedっていうプラグインにTypePad絵文字追加したよをご覧ください。 Wor [...]]]></description>
			<content:encoded><![CDATA[<h4>この記事の内容は「TinyMCE Advanced」で簡単に絵文字を追加できるようになりました。<br />
詳しくは、記事：<a href="http://blog.veryposi.info/programing/cms/wordpress/tintmceadvanced-typepad-emoji/">TinyMCE AdvancedっていうプラグインにTypePad絵文字追加したよ</a>をご覧ください。</h4>
<p>WordPressの現在のデフォルトの投稿用エディタ「TinyMCE」にTypePadを追加しました<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/up.gif" /><img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/up.gif" /><img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/note.gif" /></p>
<p>最初は、FCKEditorを使用しようかと思ったのですが「iG:Syntax Hiliter」というプラグインとの相性が悪く記事のメンテナンス性が著しく低下した為にデフォルトのエディタTinyMCEを使用することにしました。</p>
<p>FCKEditorを使用していた時に、TypePadの絵文字を追加し使用していたのでTinyMCEでも同じように絵文字を追加したいなと思ってサイトにソースが落ちてない探していたのですが&hellip;ない<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/crying.gif" /></p>
<p>なので、作っちゃいました<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/happy01.gif" />（実際は、FCKEditor用の落ちてたソースをTinyMCE用にカスタマイズしただけだけどね）</p>
<p>こんな感じです。</p>
<p style="text-align: center;"><a href="http://blog.veryposi.info/wp-content/uploads/2009/02/typepadimg.png" rel="lightbox[29]"><img height="181" width="300" src="http://blog.veryposi.info/wp-content/uploads/2009/02/typepadimg-300x181.png" alt="TInyMCEにTypePadの絵文字を表示" title="TInyMCEにTypePadの絵文字を表示" class="alignnone size-medium wp-image-30" /></a></p>
<p>で、これがソースになります。</p>
<p>Download：<a href="http://blog.veryposi.info/wp-content/uploads/2009/02/emoji.zip">TinyMCEでTypePadの絵文字を使う為のTinyMCE用プラグイン</a></p>
<p>設定方法：</p>
<p><span id="more-29"></span></p>
<ol>
<li>「WordPressのインストールフォルダwp-includes\js\tinymce\plugins」のフォルダに解凍してできた「emoji」フォルダをそのままアップロードします。</li>
<li>「WordPressのインストールフォルダwp-admin\includes\post.php」の1130～1134行、1217～1233行を以下の内容で修正しアップロードします。(変更している行は、1130、1134、1218、1222の4行のみです)</li>
</ol>
<p>【1130～1134行の修正内容】</p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1130
1131
1132
1133
1134
</pre>
</td>
<td class="code">
<pre class="javascript"><span style="color: rgb(0, 0, 102); font-weight: bold;">if</span> <span style="color: rgb(102, 204, 102);">(</span> $teeny <span style="color: rgb(102, 204, 102);">)</span> <span style="color: rgb(102, 204, 102);">{</span>
	$plugins = apply_filters<span style="color: rgb(102, 204, 102);">(</span> <span style="color: rgb(51, 102, 204);">'teeny_mce_plugins'</span>, array<span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(51, 102, 204);">'safari'</span>, <span style="color: rgb(51, 102, 204);">'inlinepopups'</span>, <span style="color: rgb(51, 102, 204);">'media'</span>, <span style="color: rgb(51, 102, 204);">'autosave'</span>, <span style="color: rgb(51, 102, 204);">'fullscreen'</span>, <span style="color: rgb(51, 102, 204);">'emoji'</span><span style="color: rgb(102, 204, 102);">)</span> <span style="color: rgb(102, 204, 102);">)</span>;
	$ext_plugins = <span style="color: rgb(51, 102, 204);">''</span>;
<span style="color: rgb(102, 204, 102);">}</span> <span style="color: rgb(0, 0, 102); font-weight: bold;">else</span> <span style="color: rgb(102, 204, 102);">{</span>
	$plugins = array<span style="color: rgb(102, 204, 102);">(</span> <span style="color: rgb(51, 102, 204);">'safari'</span>, <span style="color: rgb(51, 102, 204);">'inlinepopups'</span>, <span style="color: rgb(51, 102, 204);">'autosave'</span>, <span style="color: rgb(51, 102, 204);">'spellchecker'</span>, <span style="color: rgb(51, 102, 204);">'paste'</span>, <span style="color: rgb(51, 102, 204);">'wordpress'</span>, <span style="color: rgb(51, 102, 204);">'media'</span>, <span style="color: rgb(51, 102, 204);">'fullscreen'</span>, <span style="color: rgb(51, 102, 204);">'wpeditimage'</span>, <span style="color: rgb(51, 102, 204);">'wpgallery'</span>, <span style="color: rgb(51, 102, 204);">'emoji'</span> <span style="color: rgb(102, 204, 102);">)</span>;</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<p>【1217～1233行の修正内容】</p>
<pre lang="php" line="1217">
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
</pre>
</td>
<td class="code">
<pre class="php"><span style="color: rgb(177, 177, 0);">if</span> <span style="color: rgb(102, 204, 102);">(</span> <span style="color: rgb(0, 0, 255);">$teeny</span> <span style="color: rgb(102, 204, 102);">)</span> <span style="color: rgb(102, 204, 102);">{</span>
	<span style="color: rgb(0, 0, 255);">$mce_buttons</span> = apply_filters<span style="color: rgb(102, 204, 102);">(</span> <span style="color: rgb(255, 0, 0);">'teeny_mce_buttons'</span>, <a href="http://www.php.net/array"><span style="color: rgb(0, 0, 102);">array</span></a><span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(255, 0, 0);">'bold, italic, underline, blockquote, separator, strikethrough, bullist, numlist,justifyleft, justifycenter, justifyright, undo, redo, link, unlink, fullscreen, emoji'</span><span style="color: rgb(102, 204, 102);">)</span> <span style="color: rgb(102, 204, 102);">)</span>;
	<span style="color: rgb(0, 0, 255);">$mce_buttons</span> = <a href="http://www.php.net/implode"><span style="color: rgb(0, 0, 102);">implode</span></a><span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(0, 0, 255);">$mce_buttons</span>, <span style="color: rgb(255, 0, 0);">','</span><span style="color: rgb(102, 204, 102);">)</span>;
	<span style="color: rgb(0, 0, 255);">$mce_buttons_2</span> = <span style="color: rgb(0, 0, 255);">$mce_buttons_3</span> = <span style="color: rgb(0, 0, 255);">$mce_buttons_4</span> = <span style="color: rgb(255, 0, 0);">''</span>;
<span style="color: rgb(102, 204, 102);">}</span> <span style="color: rgb(177, 177, 0);">else</span> <span style="color: rgb(102, 204, 102);">{</span>
	<span style="color: rgb(0, 0, 255);">$mce_buttons</span> = apply_filters<span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(255, 0, 0);">'mce_buttons'</span>, <a href="http://www.php.net/array"><span style="color: rgb(0, 0, 102);">array</span></a><span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(255, 0, 0);">'bold'</span>, <span style="color: rgb(255, 0, 0);">'italic'</span>, <span style="color: rgb(255, 0, 0);">'strikethrough'</span>, <span style="color: rgb(255, 0, 0);">'|'</span>, <span style="color: rgb(255, 0, 0);">'bullist'</span>, <span style="color: rgb(255, 0, 0);">'numlist'</span>, <span style="color: rgb(255, 0, 0);">'blockquote'</span>, <span style="color: rgb(255, 0, 0);">'|'</span>, <span style="color: rgb(255, 0, 0);">'justifyleft'</span>, <span style="color: rgb(255, 0, 0);">'justifycenter'</span>, <span style="color: rgb(255, 0, 0);">'justifyright'</span>, <span style="color: rgb(255, 0, 0);">'|'</span>, <span style="color: rgb(255, 0, 0);">'link'</span>, <span style="color: rgb(255, 0, 0);">'unlink'</span>, <span style="color: rgb(255, 0, 0);">'wp_more'</span>, <span style="color: rgb(255, 0, 0);">'|'</span>, <span style="color: rgb(255, 0, 0);">'spellchecker'</span>, <span style="color: rgb(255, 0, 0);">'fullscreen'</span>, <span style="color: rgb(255, 0, 0);">'wp_adv'</span>, <span style="color: rgb(255, 0, 0);">'|'</span>, <span style="color: rgb(255, 0, 0);">'emoji'</span> <span style="color: rgb(102, 204, 102);">)</span><span style="color: rgb(102, 204, 102);">)</span>;
	<span style="color: rgb(0, 0, 255);">$mce_buttons</span> = <a href="http://www.php.net/implode"><span style="color: rgb(0, 0, 102);">implode</span></a><span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(0, 0, 255);">$mce_buttons</span>, <span style="color: rgb(255, 0, 0);">','</span><span style="color: rgb(102, 204, 102);">)</span>;
&nbsp;
	<span style="color: rgb(0, 0, 255);">$mce_buttons_2</span> = apply_filters<span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(255, 0, 0);">'mce_buttons_2'</span>, <a href="http://www.php.net/array"><span style="color: rgb(0, 0, 102);">array</span></a><span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(255, 0, 0);">'formatselect'</span>, <span style="color: rgb(255, 0, 0);">'underline'</span>, <span style="color: rgb(255, 0, 0);">'justifyfull'</span>, <span style="color: rgb(255, 0, 0);">'forecolor'</span>, <span style="color: rgb(255, 0, 0);">'|'</span>, <span style="color: rgb(255, 0, 0);">'pastetext'</span>, <span style="color: rgb(255, 0, 0);">'pasteword'</span>, <span style="color: rgb(255, 0, 0);">'removeformat'</span>, <span style="color: rgb(255, 0, 0);">'|'</span>, <span style="color: rgb(255, 0, 0);">'media'</span>, <span style="color: rgb(255, 0, 0);">'charmap'</span>, <span style="color: rgb(255, 0, 0);">'|'</span>, <span style="color: rgb(255, 0, 0);">'outdent'</span>, <span style="color: rgb(255, 0, 0);">'indent'</span>, <span style="color: rgb(255, 0, 0);">'|'</span>, <span style="color: rgb(255, 0, 0);">'undo'</span>, <span style="color: rgb(255, 0, 0);">'redo'</span>, <span style="color: rgb(255, 0, 0);">'wp_help'</span> <span style="color: rgb(102, 204, 102);">)</span><span style="color: rgb(102, 204, 102);">)</span>;
	<span style="color: rgb(0, 0, 255);">$mce_buttons_2</span> = <a href="http://www.php.net/implode"><span style="color: rgb(0, 0, 102);">implode</span></a><span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(0, 0, 255);">$mce_buttons_2</span>, <span style="color: rgb(255, 0, 0);">','</span><span style="color: rgb(102, 204, 102);">)</span>;
&nbsp;
	<span style="color: rgb(0, 0, 255);">$mce_buttons_3</span> = apply_filters<span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(255, 0, 0);">'mce_buttons_3'</span>, <a href="http://www.php.net/array"><span style="color: rgb(0, 0, 102);">array</span></a><span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(102, 204, 102);">)</span><span style="color: rgb(102, 204, 102);">)</span>;
	<span style="color: rgb(0, 0, 255);">$mce_buttons_3</span> = <a href="http://www.php.net/implode"><span style="color: rgb(0, 0, 102);">implode</span></a><span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(0, 0, 255);">$mce_buttons_3</span>, <span style="color: rgb(255, 0, 0);">','</span><span style="color: rgb(102, 204, 102);">)</span>;
&nbsp;
	<span style="color: rgb(0, 0, 255);">$mce_buttons_4</span> = apply_filters<span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(255, 0, 0);">'mce_buttons_4'</span>, <a href="http://www.php.net/array"><span style="color: rgb(0, 0, 102);">array</span></a><span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(102, 204, 102);">)</span><span style="color: rgb(102, 204, 102);">)</span>;
	<span style="color: rgb(0, 0, 255);">$mce_buttons_4</span> = <a href="http://www.php.net/implode"><span style="color: rgb(0, 0, 102);">implode</span></a><span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(0, 0, 255);">$mce_buttons_4</span>, <span style="color: rgb(255, 0, 0);">','</span><span style="color: rgb(102, 204, 102);">)</span>;
<span style="color: rgb(102, 204, 102);">}</span></pre>
</td>
</tr>
</tbody>
</table>
</div>
</pre>
<p>設定は、以上でおわりになります。</p>
<p>私は、ver2.7でやったのでもしかすると修正箇所が異なる人がいるかもしれませんがそのときはすみません<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/sweat01.gif" /></p>
<p>WordPressのプラグイン化できたらよかったのですが、やり方がわからないので簡単にできる方法でやってしまいました<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/coldsweats01.gif" /><br />
時間があったらWordPressのプラグイン化も検討したいですが&hellip;今のところ未定です<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/catface.gif" /></p>
<p>もしよかったら使ってみてください。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/programing/cms/wordpress/wordpress-tinymce-typepad/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: blog.veryposi.info @ 2026-04-13 09:10:28 -->