4: 2007-06-24 (日) 12:00:32 nao-pon |
5: 2008-01-26 (土) 10:10:13 nao-pon |
| ここ XOOPSマニア のサイトでは、xpWiki のWikiレンダリング機能を使って、テキスト整形するように変更が加えられています。 | | ここ XOOPSマニア のサイトでは、xpWiki のWikiレンダリング機能を使って、テキスト整形するように変更が加えられています。 |
| | | |
- | - &ref(module.textsanitizer.php){XOOPS_ROOT_PATH/class/module.textsanitizer.php};(XOOPS 2.0.16a JP用) | + | ** XOOPS 2.0.16a JP 用 [#e3d11b6d] |
- | - 2007/06/15 07:55:33 に修正しました。 :-P | + | - &ref(module.textsanitizer.php){XOOPS_ROOT_PATH/class/module.textsanitizer.php}; |
| + | - 2008/1/26 に修正しました。(BBコードの[siteurl]に対応。要 xpWiki 3.59 以上) |
| #code(module.textsanitizer.php) | | #code(module.textsanitizer.php) |
- | -&font(b,Red){※}; xpWiki を xpwiki という名前以外でインストールしている場合は、307行目の&br; function &renderWikistyle($text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1, $use_cache = 0, $wikidir = '&font(b){xpwiki};') の xpwiki を適宜変更してください。 | + | -- &font(b,Red){※}; xpWiki を xpwiki という名前以外でインストールしている場合は、307行目の&br; function &renderWikistyle($text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1, $use_cache = 0, $wikidir = '&font(b){xpwiki};') の xpwiki を適宜変更してください。 |
| + | |
| + | ** XOOPS Cube Legacy 2.1.1 用 [#w210a13d] |
| + | |
| + | XOOPS Cube Legacy 用には、本来ならプリロードだけで完結するようにすべきだとは思いますが、X2用モジュールとの互換性を保つために、module.textsanitizer.php を書き換える方法にしました。 |
| + | |
| + | Cube に対応させるために、[[XUGJ にて Marijuana さんにいろいろ教えていただきました。:http://www.xugj.org/modules/d3forum/index.php?topic_id=413]] :ok: |
| + | - 2008/1/26 に修正しました。(BBコードの[siteurl]に対応。要 xpWiki 3.59 以上) |
| + | - &ref(SetupHyp_TextFilter.class.php){XOOPS_ROOT_PATH/class/preload/SetupHyp_TextFilter.class.php}; |
| + | #code(SetupHyp_TextFilter.class.php) |
| + | -- &font(b,Red){※}; xpWiki を xpwiki という名前以外でインストールしている場合は、38行目の&br; function &renderWikistyle($text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1, $use_cache = 0, $wikidir = '&font(b){xpwiki};') の xpwiki を適宜変更してください。 |
| + | - &ref(cube_module.textsanitizer.php){XOOPS_ROOT_PATH/class/module.textsanitizer.php}; |
| + | -- 変更箇所のみ |
| + | #code(php){{ |
| + | /** |
| + | * Filters textarea form data in DB for display |
| + | * |
| + | * @param string $text |
| + | * @param bool $html allow html? |
| + | * @param bool $smiley allow smileys? |
| + | * @param bool $xcode allow xoopscode? |
| + | * @param bool $image allow inline images? |
| + | * @param bool $br convert linebreaks? |
| + | * @return string |
| + | **/ |
| + | function &displayTarea($text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1) |
| + | { |
| + | //$text = $this->_ToShowTarea($text, $html, $smiley, $xcode, $image, $br); |
| + | $text = $this->mTextFilter->ToShowTarea($text, $html, $smiley, $xcode, $image, $br, true, 1); |
| + | return $text; |
| + | } |
| + | |
| + | /** |
| + | * Filters textarea form data submitted for preview |
| + | * |
| + | * @param string $text |
| + | * @param bool $html allow html? |
| + | * @param bool $smiley allow smileys? |
| + | * @param bool $xcode allow xoopscode? |
| + | * @param bool $image allow inline images? |
| + | * @param bool $br convert linebreaks? |
| + | * @return string |
| + | **/ |
| + | function &previewTarea($text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1) |
| + | { |
| + | $text =& $this->stripSlashesGPC($text); |
| + | //$text = $this->_ToShowTarea($text, $html, $smiley, $xcode, $image, $br); |
| + | $text = $this->mTextFilter->ToShowTarea($text, $html, $smiley, $xcode, $image, $br, true, 0); |
| + | return $text; |
| + | } |
| + | }} |
| + | -- ダウンロード後に module.textsanitizer.php にリネームしてください。 |
| | | |
| #navi(../) | | #navi(../) |