linksモジュール で FCK Editor を使う。
編集するファイル
■編集するテンプレート
links_submit.html
links_edit.html
■編集するファイル
xoops_trust_path/modules/links/class/links_Link.class.php
 
★link_submit.htmlの変更箇所
--最上部へ追加--
<script type="text/javascript" src="<{$smarty.const.XOOPS_URL}>/common/fckeditor/fckeditor.js"></script>
<script type="text/javascript"><!--
function fckeditor_exec() {
var oFCKeditor = new FCKeditor("desc", "100%", "500", "Default");
oFCKeditor.BasePath = "<{$smarty.const.XOOPS_URL}>/common/fckeditor/";
oFCKeditor.ReplaceTextarea();
}
//--></script>
--変更--
<{xoopsdhtmltarea name="desc" cols="50" rows="7" value=$desc pre_style="display:none;" post_style="display:none;"}>
から<textarea id="desc" name="desc"><{$desc}></textarea><script>fckeditor_exec();</script>
★link_edit.htmlの変更箇所
--最上部へ追加--
<script type="text/javascript" src="<{$smarty.const.XOOPS_URL}>/common/fckeditor/fckeditor.js"></script>
<script type="text/javascript"><!--
function fckeditor_exec() {
var oFCKeditor = new FCKeditor("desc", "100%", "500", "Default");
oFCKeditor.BasePath = "<{$smarty.const.XOOPS_URL}>/common/fckeditor/";
oFCKeditor.ReplaceTextarea();
}
//--></script>
--変更--
  <{xoopsdhtmltarea name="desc" cols="50" rows="7" pre_style="display:none;" post_style="display:none;" value=$link.description}>
から
<textarea id="desc" name="desc"><{$link.description}></textarea><script>fckeditor_exec();</script>
xoops_trust_path/modules/links/class/links_Link.class.php の変更
★} else {
$description = $myts->makeTareaData4Show($row['description'],0);から
$description = $myts->displayTarea($row['description'], 1, 1, 1, 1, 0);
- 
whois ansi のCreation Date  Registration Date   Expiry Date とは
(
xoopsズープス
)
[39795 view]
2011年09月23日
 - 
xxoops2.2.0でaltsysをインストールした後、エラーが出て、altsysモジュールが白紙のときの対処法
(
xoopsズープス
)
[33773 view]
2011年12月03日
 - 
bulletinモジュールの投稿者名とヒット数とコメント数を消す。 bulletin_item.html
(
xoopsズープス
)
[33495 view]
2010年06月20日
 - 
リストタグで横並びにして、かつ、フロート(回り込み)を解除する方法(崩れる 対処法)
(
xoopsズープス
)
[31815 view]
2011年04月05日
 - 
「ページを開けません。サーバーが応答を停止しています。」の問題について
(
xoopsズープス
)
[31274 view]
2012年09月19日
 - 
xoops2.2.0でaltsysをインストールした後、ブロック部分と管理ページの日付が文字化けしたときの対処法
(
xoopsズープス
)
[31253 view]
2011年07月23日
 - 
light box 2.04 close.gif loading.gifが表示されない lightbox.js
(
xoopsズープス
)
[30490 view]
2010年06月21日
 - 
Picoモジュールの 「コンテンツ内容」ブロックを利用して、スマーティーを利用できるカスタムブロックを実現する方法
(
xoopsズープス
)
[29424 view]
2011年07月29日
 - 
Smartyにtruncateという文字列修正の関数がある。指定した文字数で文字列を切り捨てるという便利なものなのだが、マルチバイト文字列に対してこれを使うと文字化けが起こって...
(
xoopsズープス
)
[28812 view]
2011年04月04日
 - 
モジュールUTF8化
(
xoopsズープス
)
[28117 view]
2010年03月30日
 




