hypweb.net
XOOPSマニア  最新情報のRSS(サイト全体)
[ 自宅サーバーWebRing |ID=54 前後5表示乱移動サイト一覧 ]

TOP » xpwiki » keyword » MyTextSanitizer のバックアップ差分(No.5)
4: 2007-06-24 (日) 12:00:32 nao-pon ソース 5: 2008-01-26 (土) 10:10:13 nao-pon ソース
Line 9: Line 9:
ここ 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(../)


トップ   差分 バックアップ 複製 名前変更 リロード印刷に適した表示   ページ新規作成 全ページ一覧 単語検索 最新ページの一覧   ヘルプ   最新ページのRSS 1.0 最新ページのRSS 2.0 最新ページのRSS Atom Powered by xpWiki
Counter: 383, today: 2, yesterday: 0
このページのTopへ
メインメニュー
ログイン

ユーザー名:


パスワード:





パスワード紛失  |新規登録
オンライン状況
819 人のユーザが現在オンラインです。 (11 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 819

もっと...
サイト情報