<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>[mA] myselfArchiver</title>
    <link>https://luvsic.net/</link>
    <description></description>
    <language>ja</language>
    <generator>Nucleus CMS v3.62</generator>
    <copyright>&#169; [mA] myselfArchiver</copyright>
    <category>Weblog</category>
    <docs>http://backend.userland.com/rss</docs>
    <image>
      <url>https://luvsic.net/media/nucleus2.gif</url>
      <title>[mA] myselfArchiver</title>
      <link>https://luvsic.net/</link>
    </image>
    <item>
 <title>Nucleus CMS サイトでのサーバ移転＋SSL化 備忘録</title>
 <link>https://luvsic.net/item/164</link>
<description><![CDATA[<p>Nucleus CMS でのサイトをいくつかヘテムルサーバ（共用）にあるのを、カラフルボックスサーバ（共用）へ移転した際の備忘録です。この際なのでSSL化とバージョンアップも行いました。慣れれば実作業１時間くらいで可能でした。</p>


<h4>１，元サイトをバックアップ</h4>

<p>ヘテムルサーバから移転。DBとファイル群のバックアップを行います。</p>

<ol>
<li>データベースのバックアップ</li>
<li>ファイル群バックアップ、転送</li>
</ol>

<p>元サーバではパーミッション、.htaccess、CRON、メールアドレスと転送設定をのちのち参考にすることがあるのを念頭に進める。</p>

<p>DBが大きくてエクスポートできない場合はSSHから。<br>
サンプルコード</p>

<div class="codeArea"><div><pre class="bash">mysqldump <span style="color: #660033;">-h</span> mysql24.heteml.jp <span style="color: #660033;">-u</span> _luvsic_nuc_db <span style="color: #660033;">-p123abcdefg</span> _luvsic_nuc_db <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>sites<span style="color: #000000; font-weight: bold;">/</span>heteml<span style="color: #000000; font-weight: bold;">/</span>users<span style="color: #000000; font-weight: bold;">/</span>u<span style="color: #000000; font-weight: bold;">/</span>s<span style="color: #000000; font-weight: bold;">/</span>e<span style="color: #000000; font-weight: bold;">/</span>username<span style="color: #000000; font-weight: bold;">/</span>web<span style="color: #000000; font-weight: bold;">/</span>_luvsic_nuc_db.sql.gz</pre></div></div>


<h4>２，移転先で準備</h4>

<p>移転先となるカラフルサーバで作業。ネームサーバーを切り替える前にいろいろ準備します。</p>

<ol>
<li>ファイル群アップロード</li>
<li>データベースを新規作成<br>
db_host: localhost<br>
db_name: user_luvsic_net<br>
db_user: user_luvsic_net<br>
db_pass: user_pass</li>
<li>ドメイン割当～DNS ManagerとcPanelの２ヶ所</li>
<li>PHPバージョン変更～MultiPHP マネージャー</li>
<li>.htaccess 変更<br>
PHPバージョン指定が書き込まれるので確認。先頭記載が良い</li>
<li>config.php DB情報とサーバのパスを新サーバのもので反映<br>
のちにパーミッション444<br>
※SFTPで変更できない場合もある。SSHかcPanelのファイルマネージャーから変更する</li>
<li>mediaディレクトリ777</li>
<li>データベースをインポート</li>
</ol>

<p>動作確認したい場合は次のような形でアクセス<br>
http://luvsic.net.username.cfbx.jp/</p>


<h4>NucleusCMS バージョンアップ</h4>

<p>ドメイン切り替え前にバージョンアップ動作確認。2015年末に v3.71 がラストリリースになっている。PHP7対応がされているようなので、サイトをもっと延命させるには導入しておきたい。</p>

<p><a href="http://japan.nucleuscms.org/" target="_blank" rel="noopener">http://japan.nucleuscms.org/</a></p>


<h4>３，SSL化</h4>

<p>ネームサーバーを移転先に切り替え完了後に証明書を通してから行うことになると思う。http://luvsic.net → https://luvsic.net のように変更・置換が必要</p>

<ol>
<li>index.php $CONF['Self'] を確認</li>
<li>skins ファイル郡を置換（  ）</li>
<li>phpMyAdmin で一括置換</li>
<li>NucleusCMSの「グローバル設定」と「ブログ設定（管理ホームにある気づきにくいアレ）」の２ヶ所で置換</li>
<li>cPanel の SSL/TLS Status で該当ドメインを AutoSSL実行</li>
<li>cPanel の リダイレクトでHTTPSへのリダイレクト設定を行う。
.htaccess にSSL用のリダイレクト用コードが追記される。NP_customURLのコードがある場合は、そのコード内で上位に置くか、NP_customURLのコードより先に記載する必要がある。</li>
<li>.htaccess 変更<br>
PHPバージョン指定が書き込まれるので確認。先頭記載が良い</li>
<li>https にアクセスして動作確認。問題なければSSLリダイレクトを設定</li>
</ol>

<p>SQLでの置換は全検索しテーブルひとつひとつ確認したほうがいい。問題なければ置換</p>

<div class="codeArea"><div><pre class="sql"><span style="color: #993333; font-weight: bold;">UPDATE</span> <span style="color: #ff0000;">`テーブル名`</span> <span style="color: #993333; font-weight: bold;">SET</span> カラム名<span style="color: #66cc66;">=</span><span style="color: #993333; font-weight: bold;">REPLACE</span> <span style="color: #66cc66;">&#40;</span>カラム名<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'旧ドメイン'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'新ドメイン'</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>例）</p>
<div class="codeArea"><div><pre class="sql"><span style="color: #993333; font-weight: bold;">UPDATE</span> <span style="color: #ff0000;">`nucleus_item`</span> <span style="color: #993333; font-weight: bold;">SET</span> ibody<span style="color: #66cc66;">=</span><span style="color: #993333; font-weight: bold;">REPLACE</span> <span style="color: #66cc66;">&#40;</span>ibody<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'http://luvsic.net'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'https://luvsic.net'</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">UPDATE</span> <span style="color: #ff0000;">`nucleus_item`</span> <span style="color: #993333; font-weight: bold;">SET</span> imore<span style="color: #66cc66;">=</span><span style="color: #993333; font-weight: bold;">REPLACE</span> <span style="color: #66cc66;">&#40;</span>imore<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'http://luvsic.net'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'https://luvsic.net'</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>


<h4>４，最終確認</h4>

<p>もう一度動作確認、投稿テストやコメント関連、メールアドレスやCRONを見直しましょう。</p>

<p>久しぶりにNucleusCMSをさわったのですが、動作速度は相変わらずかなり早くていいですね。管理画面のUIがコアをさわらずに変更できるかどうかと、WPみたいにフックがそこそこあればもっと使われていたんじゃないかなと感じました。</p>


<br />]]></description>
 <category>Nucleus</category>
<comments>https://luvsic.net/item/164</comments>
 <pubDate>Fri, 19 Feb 2021 00:34:46 +0900</pubDate>
</item><item>
 <title>不動産プラグイン（WordPress）メモ</title>
 <link>https://luvsic.net/item/163</link>
<description><![CDATA[<p>WordPress 不動産プラグイン利用での覚書です。<br>
バージョン 1.1.2 にて。</p>

<h4>ダッシュボードにある「株式会社日本コンピュータ開発」のアクセス解析を止める</h4>
<p>SSLに向かない、そもそも不要であるため。<br>
インストール前に <em>admin_fudou.php</em> より下記を削除またはコメントアウト</p>

<div class="codeArea"><div><pre class="php"><span style="color: #666666; font-style: italic;">// ダッシュボードウィジェット</span><br />
<span style="color: #000000; font-weight: bold;">function</span> fudodl_add_dashboard_widgets<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// Right Now</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; wp_add_dashboard_widget<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'dashboard_right_now3'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'不動産プラグイン'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wp_dashboard_right_now3'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #666666; font-style: italic;">//admin_init</span><br />
<span style="color: #666666; font-style: italic;">//add_action('wp_dashboard_setup', 'fudodl_add_dashboard_widgets' );</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> wp_dashboard_right_now3<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;table table_content&quot;&gt;'</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;iframe src=&quot;http://nendeb.jp/fudou_dl.html&quot; height=&quot;350&quot; width=&quot;100%&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;'</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/div&gt;'</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>インストール前に <em>fudou.php</em> より下記を削除またはコメントアウト</p>
<div class="codeArea"><div><pre class="php">add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_dashboard_setup'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'fudodl_add_dashboard_widgets'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>


<h4>カスタムフィールドを利用可能にする</h4>

<p>不動産プラグインをインストールすると、独自の投稿画面、投稿一覧画面になる。カスタムフィールドも非表示になるため、それをもとに戻す方法。<em>admin_fudou.php</em> の「custom-fields」がコメントアウトされているので、元に戻す。</p>



<div class="codeArea"><div><pre class="php"><span style="color: #666666; font-style: italic;">//管理画面投稿表示</span><br />
<span style="color: #000000; font-weight: bold;">function</span> my_fudo_stuff<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> FUDOU_TRA_COMMENT &nbsp;<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_post_type<span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'fudo'</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'物件'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'singular_label'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'投稿'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'public'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'show_ui'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'capability_type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'post'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'hierarchical'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'rewrite'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'query_var'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'menu_position'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'supports'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'title'</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'editor'</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'excerpt'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'trackbacks'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'comments'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//&nbsp; &nbsp; &nbsp; 'revisions',</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//&nbsp; &nbsp; &nbsp; 'custom-fields',</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'thumbnail'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_post_type<span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'fudo'</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'物件'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'singular_label'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'投稿'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'public'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'show_ui'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'capability_type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'post'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'hierarchical'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'rewrite'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'query_var'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'menu_position'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'supports'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'title'</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'editor'</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'excerpt'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//&nbsp; &nbsp; &nbsp; 'trackbacks',</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//&nbsp; &nbsp; &nbsp; 'comments',</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//&nbsp; &nbsp; &nbsp; 'revisions',</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//&nbsp; &nbsp; &nbsp; 'custom-fields',</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'thumbnail'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></pre></div></div><br />]]></description>
 <category>WordPress</category>
<comments>https://luvsic.net/item/163</comments>
 <pubDate>Tue, 16 Oct 2012 21:02:27 +0900</pubDate>
</item><item>
 <title>Chrome アドオンで、どのサイトにも広告が表示される</title>
 <link>https://luvsic.net/item/162</link>
<description><![CDATA[犯人 Web RSS Subscriber<br />]]></description>
 <category>Weblog</category>
<comments>https://luvsic.net/item/162</comments>
 <pubDate>Tue, 25 Sep 2012 08:43:54 +0900</pubDate>
</item><item>
 <title>Nucleus CMS 3.64 利用でのリスク</title>
 <link>https://luvsic.net/item/161</link>
<description><![CDATA[<p>よくわかってませんが可能性を自分用にメモっています。<br>
参考にしないでください。</p>

<p><a href="http://okamerin.com/nc/blogmaster/nucleus_wordpress_2011.htm">NucleusからWordpressへ移行できない7の理由 （2011) ｜ blog(ブログ)マスター</a>を読んで。</p>

<blockquote>PHP5.4またはMySQL5.5.xでNucleus 3.64って動かないそうですよ。<br>
PHP5.4にプラグインが対応していないものも多いらしく<br>
それをいれているとなんと「E_ERROR」Criticalエラー発生して白紙になるそうです。</blockquote>

<p>Nucleus CMS 3.64 を利用中の場合、次のリスクとタスクが発生する</p>
<br /><p style="font-weight:bold;"><a href="https://luvsic.net/item/161">[ Read More.. ]</a></p>]]></description>
 <category>Nucleus</category>
<comments>https://luvsic.net/item/161</comments>
 <pubDate>Thu, 20 Sep 2012 14:03:49 +0900</pubDate>
</item><item>
 <title>WP EDITボタン</title>
 <link>https://luvsic.net/item/160</link>
<description><![CDATA[<p>面倒なのでテンプレ</p>

<div class="codeArea"><div><pre class="php">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_user_logged_in<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;editlink&quot;&gt;&lt;span&gt;&lt;a href=&quot;'</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> admin_url<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'post.php?post='</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> get_the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&amp;action=edit&quot; class=&quot;small_button&quot;&gt;EDIT&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<ul>
<li><a href="http://coliss.com/articles/build-websites/operation/css/css-tutorial-patterned-buttons-by-red-team-design.html">[CSS]さまざまなバリエーションを簡単に利用できる美しいデザインのボタンを実装するチュートリアル | コリス</a></li>
</ul><br />]]></description>
 <category>WordPress</category>
<comments>https://luvsic.net/item/160</comments>
 <pubDate>Fri, 17 Aug 2012 07:05:39 +0900</pubDate>
</item><item>
 <title>Chromeでのアドレスバーから行う検索エンジンの設定</title>
 <link>https://luvsic.net/item/159</link>
<description><![CDATA[<p>Chromeでのアドレスバーから行う検索エンジンの設定。<br>
PC設定毎のコピペ用</p>


<h4>Chromeでの初期設定</h4>

<div class="codeArea"><div><pre class="txt">{google:baseURL}search?{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}{google:searchFieldtrialParameter}{google:instantFieldTrialGroupParameter}sourceid=chrome&amp;ie={inputEncoding}&amp;q=%s</pre></div></div>


<h4>SSL対応と、その他余計なクエリを送らないように省く</h4>

<p>2012-05-07版</p>
<div class="codeArea"><div><pre class="txt">https://www.google.co.jp/search?hl=ja&amp;q=%s&amp;pws=0</pre></div></div>

<p>2012-06-26版</p>
<div class="codeArea"><div><pre class="txt">https://www.google.com/search?hl=ja#hl=ja&amp;newwindow=1&amp;safe=off&amp;sourceid=chrome&amp;ie=UTF-8&amp;q=%s&amp;pws=0</pre></div></div>

<p>2012-06-26版</p>
<div class="codeArea"><div><pre class="txt">https://www.google.com/search?hl=ja#hl=ja&amp;newwindow=1&amp;safe=off&amp;sourceid=chrome&amp;ie=UTF-8&amp;q=%s&amp;pws=0</pre></div></div>

<p>2012-09-20版<br>
・50件表示<br>
・検索結果を新しいウィンドウで開く<br>
・セーフモードOFF<br>
・パーソナライズOFF</p>
<div class="codeArea"><div><pre class="txt">https://www.google.com/search?num=50&amp;hl=ja&amp;newwindow=1&amp;safe=off&amp;site=webhp&amp;sourceid=chrome&amp;ie=UTF-8&amp;q=%s&amp;pws=0</pre></div></div><br />]]></description>
 <category>Weblog</category>
<comments>https://luvsic.net/item/159</comments>
 <pubDate>Mon, 7 May 2012 11:24:23 +0900</pubDate>
</item><item>
 <title>DatePickerの日本語化 （WordPress カスタムフィールドテンプレート プラグイン）</title>
 <link>https://luvsic.net/item/158</link>
<description><![CDATA[<p>jQuery.UI の jquery.ui.datepicker-ja.js を利用すれば大丈夫でしょ、とおもいきや $.datepicker.regional['ja'] が使えないという…。jQuery.UIにバンドルされているDatePickerではないかもしれないので、妥当なのかもしれない。で、どう日本語化するか。</p><br /><p style="font-weight:bold;"><a href="https://luvsic.net/item/158">[ Read More.. ]</a></p>]]></description>
 <category>WordPress</category>
<comments>https://luvsic.net/item/158</comments>
 <pubDate>Sat, 17 Mar 2012 16:18:26 +0900</pubDate>
</item><item>
 <title>WordPress カスタムフィールドテンプレート 検索メモ（cftsearch）</title>
 <link>https://luvsic.net/item/157</link>
<description><![CDATA[<p>リファレンスが無いらしいので個人的にメモるエントリ</p><br /><p style="font-weight:bold;"><a href="https://luvsic.net/item/157">[ Read More.. ]</a></p>]]></description>
 <category>WordPress</category>
<comments>https://luvsic.net/item/157</comments>
 <pubDate>Thu, 1 Mar 2012 14:00:47 +0900</pubDate>
</item><item>
 <title>heliumスキンでのNP_AccessAnalyzeデザイン調整</title>
 <link>https://luvsic.net/item/156</link>
<description><![CDATA[<p><a href="http://japan.nucleuscms.org/wiki/plugins:accessanalyze">NP_AccessAnalyze</a>（ver1.3）をNP_znCustomAdminのheliumスキンで利用している際に、デザインが見づらくなるのを調整するCSSコード。</p>
<br /><p style="font-weight:bold;"><a href="https://luvsic.net/item/156">[ Read More.. ]</a></p>]]></description>
 <category>Weblog</category>
<comments>https://luvsic.net/item/156</comments>
 <pubDate>Tue, 21 Feb 2012 10:45:22 +0900</pubDate>
</item><item>
 <title>HTMLの間違った書き方でSEOペナルティ</title>
 <link>https://luvsic.net/item/155</link>
<description><![CDATA[<p>HTMLの書き方を誤ってしまったり、文法ミスでSEOペナルティ...「可能性は無きにしも非ず」「正しく書けばとりあえずokです」という回答が多くて、ではどういう誤りをした場合にSEOペナルティの可能性があるか？という具体例は見たことがなかったのですが、今日ようやく、たまたまTwitter経由でみかけました。</p>
<br /><p style="font-weight:bold;"><a href="https://luvsic.net/item/155">[ Read More.. ]</a></p>]]></description>
 <category>Weblog</category>
<comments>https://luvsic.net/item/155</comments>
 <pubDate>Thu, 16 Feb 2012 10:30:49 +0900</pubDate>
</item>
  </channel>
</rss>