3: 2007-11-25 (日) 11:37:49 nao-pon[6] [7] [8] | 4: 2007-11-25 (日) 11:45:56 nao-pon[6] [9] [10] | ||
---|---|---|---|
Line 10: | Line 10: | ||
** 組み込み手順 [#qf6be9b3] | ** 組み込み手順 [#qf6be9b3] | ||
- | + なにはともあれ、HypCommonFunc サーバーにアップロードしてください。 | + | + なにはともあれ、HypCommonFunc をサーバーにアップロードしてください。 |
+ サーバー上に XOOPS_ROOT_PATH/cache2/kakasi というディレクトリを作成してファイル作成権限を与えてください。 | + サーバー上に XOOPS_ROOT_PATH/cache2/kakasi というディレクトリを作成してファイル作成権限を与えてください。 | ||
Line 19: | Line 19: | ||
*** XOOPS 2 の場合 [#o79d4795] | *** XOOPS 2 の場合 [#o79d4795] | ||
- | + 以前に [[HypCommonFunc>../HypCommonFunc]], [[検索語マーカー>../検索語マーカー]], [[BBQあらしお断りシステム>../BBQあらしお断りシステム]] などを 組み込んでいた場合は、common.php を元の状態に戻します。 | + | + 以前に HypCommonFunc, 検索語マーカー, BBQあらしお断りシステム などを 組み込んでいた場合は、common.php を元の状態に戻します。 |
+ [[../検索語マーカー]] を組み込んでいた場合は、XOOPS_ROOT_PATH/footer.php を元の状態に戻します。 | + [[../検索語マーカー]] を組み込んでいた場合は、XOOPS_ROOT_PATH/footer.php を元の状態に戻します。 | ||
+ XOOPS_ROOT_PATH/include/common.php を編集します。 | + XOOPS_ROOT_PATH/include/common.php を編集します。 | ||
Line 48: | Line 48: | ||
#code(php){{ | #code(php){{ | ||
// 各種設定 | // 各種設定 | ||
+ | $this->configEncoding = 'EUC-JP'; // このファイルの文字コード | ||
+ | |||
$this->encodehint_word = 'ぷ'; // POSTエンコーディング判定用文字 | $this->encodehint_word = 'ぷ'; // POSTエンコーディング判定用文字 | ||
$this->encodehint_name = 'HypEncHint'; // POSTエンコーディング判定用 Filed name | $this->encodehint_name = 'HypEncHint'; // POSTエンコーディング判定用 Filed name | ||
Line 53: | Line 55: | ||
$this->use_set_query_words = 1; // 検索ワードを定数にセット | $this->use_set_query_words = 1; // 検索ワードを定数にセット | ||
$this->use_words_highlight = 1; // 検索ワードをハイライト表示 | $this->use_words_highlight = 1; // 検索ワードをハイライト表示 | ||
+ | $this->msg_words_highlight = 'これらのキーワードがハイライトされています'; | ||
$this->use_proxy_check = 1; // POST時プロキシチェックする | $this->use_proxy_check = 1; // POST時プロキシチェックする | ||
$this->no_proxy_check = '/^(127\.0\.0\.1|192\.168\.1\.)/'; // 除外IP | $this->no_proxy_check = '/^(127\.0\.0\.1|192\.168\.1\.)/'; // 除外IP | ||
- | $this->msg_proxy_check = '公開プロキシ経由での投稿はできません。'; | + | $this->msg_proxy_check = 'Can not post from public proxy.'; |
$this->use_dependence_filter = 1; // 機種依存文字フィルター | $this->use_dependence_filter = 1; // 機種依存文字フィルター | ||
Line 80: | Line 83: | ||
$this->q_word2 = 'XOOPS_QUERY_WORD2'; // 検索ワード分かち書き | $this->q_word2 = 'XOOPS_QUERY_WORD2'; // 検索ワード分かち書き | ||
$this->se_name = 'XOOPS_SEARCH_ENGINE_NAME'; // 検索元名 | $this->se_name = 'XOOPS_SEARCH_ENGINE_NAME'; // 検索元名 | ||
- | |||
- | // KAKASI のパスは、XOOPS_TRUST_PATH/class/hyp_common/hyp_kakasi.php で | ||
- | // 設定する。規定値: '/usr/bin/kakasi' | ||
// KAKASI での分かち書き結果のキャッシュ先 | // KAKASI での分かち書き結果のキャッシュ先 | ||
Line 93: | Line 93: | ||
// 65文字以上の英数文字のみで構成されている 15pt | // 65文字以上の英数文字のみで構成されている 15pt | ||
- | '/^[\x00-\x7f\s]{65,}$/' => 15, | + | // '/^[\x00-\x7f\s]{65,}$/' => 15, |
// 無効な文字コードがある 31pt | // 無効な文字コードがある 31pt |
(This host) = https://xoops.hypweb.net