Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/navi.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 44

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/navi.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 44

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/navi.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 44

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/navi.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 44

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/navi.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 44

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/navi.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 44

Warning: include() [function.include]: Failed opening '/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/navi.php' for inclusion (include_path='.:/usr/local/php/5.2/lib/php') in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 44

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 51

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 51

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 51

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 51

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 51

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 51

Warning: include() [function.include]: Failed opening '/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side.php' for inclusion (include_path='.:/usr/local/php/5.2/lib/php') in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 51

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side2.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 52

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side2.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 52

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side2.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 52

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side2.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 52

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side2.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 52

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side2.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 52

Warning: include() [function.include]: Failed opening '/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side2.php' for inclusion (include_path='.:/usr/local/php/5.2/lib/php') in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 52

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side1.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 53

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side1.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 53

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side1.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 53

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side1.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 53

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side1.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 53

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side1.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 53

Warning: include() [function.include]: Failed opening '/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side1.php' for inclusion (include_path='.:/usr/local/php/5.2/lib/php') in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 53

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/togaq.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 54

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/togaq.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 54

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/togaq.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 54

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/togaq.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 54

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/togaq.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 54

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/togaq.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 54

Warning: include() [function.include]: Failed opening '/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/togaq.php' for inclusion (include_path='.:/usr/local/php/5.2/lib/php') in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 54

TopMTカスタマイズ

« コメント時に絵文字表示 | メイン | スタイルシートを切り替える »

≪コメント時に絵文字表示 | MTカスタマイズ | スタイルシートを切り替える≫

エントリー時に絵文字表示

再構築の時にエラー表示になるぅ・・・・・どうしてくれよう
ま!どうにかなるでしょうって事で (って…結構焦ってたりしますが…)
エントリーに絵文字が使えてるのでよしという安易な考えです(バックアップととかなくちゃ…)

この絵文字表示の仕方をさっそく・・・・
Luna's*PaPa様::エントリー編集画面で絵文字を使う

実はどうしても「コメント表示…」がうまくいかなくて、当然それを基にて検索中、たくさん目にしたやむやむさんの所の記事が使えなかった…途中確認もせず、最後で…って感じ。途中確認は必要です…
また前置きがやたら長くて…いざ…

以下のJSファイルを作成(メモ帳などテキストエディタで)

Icon.js

function Icon(wIcon) {
document.entry_form.text.focus();
if (!document.selection) return;
var range = document.selection.createRange();
range.text='<img src="ブログのURL/画像をアップロードしたフォルダ/'+ wIcon +'" alt="'+ wIcon +'" style="margin:0px 1px; border-style:none;" align="middle" />';
}
if (document.selection) {
document.write('<table><tr><td>');


document.write('<a href="javascript:Icon(\'画像のファイル名\');"><img src="ブログのURL/画像をアップロードしたフォルダ/画像のファイル名" alt="代替テキスト" style="margin:0px 1px;border-style:none; float:left;" /></a>');
※ この太字の部分を絵文字の分だけ繰り返し。

document.write('</td></tr></table>');
} else {
document.write('');
}
IconMore.js

function moreIcon(wIcon) {
document.entry_form.text_more.focus();
if (!document.selection) return;
var range = document.selection.createRange();
range.text='<img src="ブログのURL/画像をアップロードしたフォルダ/'+ wIcon +'" alt="'+ wIcon +'" style="margin:0px 1px; border-style:none;" align="middle" />';
}
if (document.selection) {
document.write('<table><tr><td>');


document.write('<a href="javascript:moreIcon(\'画像のファイル名\');"><img src="ブログのURL/画像をアップロードしたフォルダ/画像のファイル名" alt="代替テキスト" style="margin:0px 1px;border-style:none; float:left;" /></a>');
※ この太字の部分を絵文字の分だけ繰り返して記載。

document.write('</td></tr></table>');
} else {
document.write('');
}

これらのファイルを、ブログURL/任意のフォルダ/ にアップロード後、下記のように各ファイルを編集(赤文字の部分を追加)。

MTフォルダ/tmpl/cms/edit_entry.tmpl

200行目付近(name="text" で検索)
<textarea class="full-width" name="text" id="text" tabindex="3" rows="<TMPL_IF NAME=DISP_PREFS_SHOW_EXTENDED>10<TMPL_ELSE>20</TMPL_IF>"><TMPL_VAR NAME=TEXT ESCAPE=HTML></textarea>
<script src="ブログURL/アップロードしたフォルダ/Icon.js"></script>


231行目付近(name="text_more" で検索)
<textarea class="full-width" name="text_more" id="text_more" tabindex="4" rows="15"><TMPL_VAR NAME=TEXT_MORE ESCAPE=HTML></textarea>
<script src="ブログURL/アップロードしたフォルダ/IconMore.js"></script>
MTフォルダ/tmpl/cms/bm_entry.tmpl

207行目付近(name="text" で検索)
<textarea name="text" id="text" style="width: 100%;" rows="<TMPL_IF NAME=SHOW_TEXT_MORE>6<TMPL_ELSE>14</TMPL_IF>"><TMPL_VAR NAME=TEXT ESCAPE=HTML></textarea>
<script src="ブログURL/アップロードしたフォルダ/Icon.js"></script>


213行目付近(name="text_more" で検索)
<textarea name="text_more" style="width: 100%;" rows="10"></textarea>
<script src="ブログURL/アップロードしたフォルダ/IconMore.js"></script>

編集後に保存して、各ファイルをアップロードすれば完了。

このちまちました作業が、やけに好きな私です007.gif
ちなみに私は、 alt=""の箇所は削除しちゃいました。(記載がエライ面倒だったもので…009.gif

コメント

この絵文字はいいわ~ん♪
色とりどりの絵文字使ってるところあるけど
ごちゃごちゃに見えて目がチカチカ読みづらい。
これならフォントの色と同じだし絵もシンプル、可愛いですわ^^

ありがとう~~~♪
一目ぼれですわぁ(⌒~⌒)ニンマリ

コメントを投稿

よろしければ、コメントを。。。
(重複投稿は、削除させて頂きますのでご連絡は不要です♪)


Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 224

Warning: include(http://mokyu.chu.jp/blog/pc/footer.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 224

Warning: include() [function.include]: Failed opening 'http://mokyu.chu.jp/blog/pc/footer.php' for inclusion (include_path='.:/usr/local/php/5.2/lib/php') in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_110916.php on line 224