Xwordsを導入してみた

モジュールXwords

 状態:  閲覧数:2,364  投稿日:2008-11-16  更新日:
■ハマッタところ
▽モジュールをインストールした後、「モジュールの管理画面」でアクティブのチェックを入れるのを忘れていたため、「ブロックのインストール画面」にモジュールが表示されなかった
 ↓
アクティブのチェックを入れたところ、表示されるようになった

▽表示テンプレートを変更した際、「themes/ ディレクトリからの自動アップデートを有効にする」と同じ仕様だと勘違いしていたため、変更内容が反映されなかった
 ↓
テンプレート変更後、「モジュールの管理画面」でアップデートをクリックしたところ、変更が反映されるようになった

▽PHPデバッグオフにしているのに、下記警告エラーが消えなかった
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /virtual/e1blue/public_html/ruby.e1blue.net/modules/xwords/class/xwords.textsanitizer.php on line 313

Warning: array_unique() [function.array-unique]: The argument should be an array in /virtual/e1blue/public_html/ruby.e1blue.net/modules/xwords/class/xwords.textsanitizer.php on line 313

Warning: sort() expects parameter 1 to be array, boolean given in /virtual/e1blue/public_html/ruby.e1blue.net/modules/xwords/class/xwords.textsanitizer.php on line 314

Warning: reset() [function.reset]: Passed variable is not an array or object in /virtual/e1blue/public_html/ruby.e1blue.net/modules/xwords/class/xwords.textsanitizer.php on line
 ↓
arrayでキャストしたところ、取りあえず、エラーは表示されなくなった(と思う)
□変更前
$q_arr = array_unique(array_merge($q_arr1[2],$q_arr2[1]));
□変更後
$q_arr = array_unique(array_merge($q_arr1[2],(array)$q_arr2[1]));
 


■その他設定
▽表示
・class/xwords.textsanitizer.php
▽管理者用の登録画面から用語を登録しても、正しくカテゴリIDが付与されるように修正
・admin/entry.php
▽頭文字(イニシャル)別が機能するよう修正
・letter_format*.php
・inculde/functions.php


■表示変更内容
▽class/xwords.textsanitizer.php
・修正前:function XwordsTextSanitizer()
{
}

・修正後:function XwordsTextSanitizer()
{
parent::MyTextSanitizer(); // この行を追加
}


■参考url
▽XOOPS/XWordsをXoopsCubeで動かす - SnakaWiki 2nd Edition
・http://f29.aaa.livedoor.jp/~snaka/PukiWiki/PukiWiki.php?XOOPS%2FXWords%A4%F2XoopsCube%A4%C7%C6%B0%A4%AB%A4%B9
▽XUGJの'XOOPS Dictionary'について/頭文字(イニシャル)別が機能していません
・http://www.xugj.org/modules/QandA/index.php?topic_id=777
▽ユーザーにはHTMLを使わせない
・http://xfield.info/modules/tautech/content0059.html
▽XCLでXWORDSを使う
・http://www.mc8.jp/X/modules/d3forum/index.php?topic_id=46
▽言語ファイルを UTF-8
・http://usadeki.jp/modules/d3forum/index.php?topic_id=130


Xwordsモジュール ディレクトリ名変更