忍者ブログ

刻ノ深淵

低周波音と耳鳴りに悩まされ不眠状態に陥る日々とアンチエイジング。只今、現状打破を試み奮闘中。

[PR]

[編集]
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

JavaScriptを外部ファイルにする。

[編集]
■JavaScriptを外部ファイルにする。
利用出来そうでしたので。

■Cat's-Paw*
http://necote.blog.shinobi.jp/Entry/15/ 

1) メモ帳にJavaScriptをコピペします。
    その際、スクリプト部分だけの記述でいいので、  下記の部分は除きます。

<script type="text/javascript">
<!--

// -->
</script>


2) 拡張子を「.js」に変更し、適当にわかりやすい名前をつけて保存し、ファイルアップロードで.jsファイルをアップロードします。

3) HTML内のあとは<head>~</head>に下記のように記述。
<script type="text/javascript" src="http://file.***.blog.shinobi.jp/sinobi_java.js"></script>

 了

拍手[0回]

PR

記事から直接編集画面に行けるようにする。

[編集]

■記事から直接編集画面に行けるようにする。
[管理画面]→[過去の記事を編集]で編集したい記事を検索し探し当ててから編集画面に行き編集という手順がとても面倒でした。

■助太刀忍者 [カスタマイズBBS] - 過去記事の編集について
http://csbbs.ninja.co.jp/Thread_View/18513/?q=%E9%81%8E%E5%8E%BB%E8%A8%98%E4%BA%8B%E3%81%AE%E7%B7%A8%E9%9B%86

□98~102行目辺り。
<!--if_cm_receipt-->
<span class="EntryComment">
<a href="<!--$entry_link-->#comment">Comment(<!--$entry_comment_num-->)</a></span>
<!--/if_cm_receipt-->
<a href="/hoge/EditEntry/<!--$entry_no-->/" target="_blank">編集</a>

赤文字部分を追加。

場所はお好みのまま。
<!--entry-->~~~<!--/entry-->の間であれば良いようです。
この場合は、コメントへのリンク部分の隣に持って行きました。

拍手[0回]

コメント記事のデザインの変更。

[編集]

■コメント記事のデザインの変更。
少々視覚的に見難いなぁと思った部分の変更。
空間を空けたり詰めたりしただけですが。

□コメントタイトルの前にマークを付ける。
177行目辺りの<!--comment-->~~~ <!--/comment-->内にある
<!--$comment_title-->

の前に"■"マークを付けました。

□コメントタイトルとコメント記事の間が開き過ぎていて見難かったのでコメントタイトルの高さや幅を変更。
CSSの221~231行目辺り。
/*コメントのタイトル、コメント、コメント情報の全ての背景部分*/
.CommentTextBox{
margin: 5px 0px;
padding: 5px;
}

赤文字部分を追加。

/*コメントのタイトル部分*/
.CommentTitle{
margin-left:15px;
height:30px;
text-align: left;
font-weight:bold;
}

赤文字部分を30px→15pxに変更。

拍手[0回]

記事の日付の表示の変更とリンク削除。

[編集]

■記事の日付の表示の変更とリンク削除。
記事の日付が年月日曜表示(yyyy/mm/dd (wday))になっているところに時分(hh:mm)を追加。
また、日付表示部分から日付カテゴリーにリンクされるようになっていたのでその部分を削除しました。
赤文字が追加、青文字が削除部分です。

□59~65行目辺り。
<div class="EntryInnerBlock">
<div class="EntryTitle">
<span class="EntryWriteDate">
<a href="/Date/<!--$entry_year--><!--$entry_mon--><!--$entry_day-->/"><!--$entry_year-->/<!--$entry_mon-->/<!--$entry_day--> (<!--$entry_wday-->)</a>
</span>
<span class="EntryTitleFont">
<a href="<!--$entry_link-->"><!--$entry_title--></a></span>
</div>

<div class="EntryInnerBlock">
<div class="EntryTitle">
<span class="EntryWriteDate">
<!--$entry_year-->/<!--$entry_mon-->/<!--$entry_day--> (<!--$entry_wday-->) <!--$entry_hour-->:<!--$entry_min--></span>
<span class="EntryTitleFont">
<a href="<!--$entry_link-->"><!--$entry_title--></a></span>
</div>

拍手[0回]

日付の表示とその周辺の変更。

[編集]

■日付の表示のとその周辺の変更。
デフォルトでは(mm/dd)と月日表示なっていたのですが、これを(yyyy/mm/dd hh:mm)と年月日時分の表示に変更。
管理画面の環境設定・プラグインの設定で各項目のHTML編集にて行います。

赤色文字が追加、青文字が削除した部分です。
日付は( )や[ ]内に表示されていたのですが、"---"の後に表示されるようにしました。
また、タイトルの前に"■"マークを入れました。
コメントに返信した場合に表示される画像を出ないようにしました。

■独自構文解説書/構文辞典INDEX
http://blog.ninja.co.jp/Tag/TagIndex/

□最新記事の日付の表示の変更。
<!--plugin_entry-->
<div class="plugin_data">
<a href="<!--$plugin_entry_link-->"><!--$plugin_entry_title--></a>
</div>
<div class="plugin_data_date">(<!--$plugin_entry_mon-->/<!--$plugin_entry_day-->)</div>
<!--/plugin_entry-->



<!--plugin_entry-->
<div class="plugin_data">
<a href="<!--$plugin_entry_link-->"><!--$plugin_entry_title--></a>
</div>
<div class="plugin_data_date">
---<!--$plugin_entry_year-->/<!--$plugin_entry_mon-->/<!--$plugin_entry_day--> <!--$plugin_entry_hour-->:<!--$plugin_entry_min-->
</div>
<!--/plugin_entry-->

□最新コメントの日付の表示の変更。
<!--plugin_comment-->
<div class="plugin_data">
<div class="plugin_cm<!--if_comment_res-->_with_res<!--/if_comment_res-->">
<a href="<!--$plugin_comment_link-->"><!--$plugin_comment_title--></a>
<!--if_comment_res--><img alt="" align="absMiddle" src="http://bfile.shinobi.jp/emoji/V/88.gif" /><!--/if_comment_res-->
</div>
</div>
<div class="plugin_data_date">[<!--$plugin_comment_mon-->/<!--$plugin_comment_day--> <!--$plugin_comment_name-->]
</div>
</div><!--/plugin_comment-->

<!--plugin_comment-->
<div class="plugin_data">
<div class="plugin_cm<!--if_comment_res-->_with_res<!--/if_comment_res-->">
<a href="<!--$plugin_comment_link-->"><!--$plugin_comment_title--></a>
</div>
</div>
<div class="plugin_data_date">---<!--$plugin_comment_year-->/<!--$plugin_comment_mon-->/<!--$plugin_comment_day--> <!--$comment_hour-->:<!--$comment_min-->*<!--$plugin_comment_name-->
</div>

拍手[0回]