歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 25, 2024, 12:13:47 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  開發  |  外掛程式  |  请问有没有文章内容过滤的外挂? « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 请问有没有文章内容过滤的外挂?  (閱讀 11112 次)
jim.zwz
新手見習
*
文章: 4


檢視個人資料
« 於: 七月 30, 2005, 06:27:20 下午 »

contentfilter 这个外挂可以过滤comment,为什么不支持文章内容过滤呢?能够修改来达到目的?怎么做?谢谢
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #1 於: 七月 30, 2005, 07:01:45 下午 »

引用自: jim.zwz
contentfilter 这个外挂可以过滤comment,为什么不支持文章内容过滤呢?能够修改来达到目的?怎么做?谢谢


Content Filter 的目的是為了防制垃圾迴響來使用,所以我們才會設計出這樣的插件。

另外,這是很多大陸朋友問到的問題,不管是在中文或英文論壇!所以我必須要作一個正式說明!

大陸政府對於『言論』的管制,使得大陸的網站管理者或多或少都必須要對網站文章進行過濾!但是 pLog 並非為了去限制社群朋友發言所設計出來的,所以這個部分 pLog 官方開發團隊不會也不願設計這樣的插件,這是我們開發成員的共識  開懷大笑

所以,很不好意思!這部分你可能要參考 Content Filter 自己去撰寫了。

Mark
已記錄

jim.zwz
新手見習
*
文章: 4


檢視個人資料
« 回覆文章 #2 於: 七月 30, 2005, 08:38:01 下午 »

我修改contentfilter.class.php里面的代码,并不成功。请问应该怎么做?
是否另外需要实现 addPost与contentfilter的binding?在AddComment的时候为什么会执行contentfilter.class.php?谢谢!!!

if( $request->getValue( "op" ) != "AddComment" and $request->getValue( "op" ) != "addPost") {
               $result = new PipelineResult();
                return $result;
            }

            //
            // get the content that has been globally blocked by the admin(s)
            //
            $filteredContents = new FilteredContents();
            $globalFilteredContents = $filteredContents->getGlobalFilteredContents();
            // text and topic of the comment
           
            if($request->getValue( "op" ) != "postText"){
                  $commentText = $request->getValue( "commentText" );
                  $commentTopic = $request->getValue( "commentTopic" );
                  $userName = $request->getValue( "userName" );
                  $userEmail = $request->getValue( "userEmail" );
                  $userUrl = $request->getValue( "userUrl" );
           
           
               
               }else{
                  
                  $commentText = $request->getValue( "postText" );
                  $commentTopic = $request->getValue( "postTopic" );
                  $userName = $request->getValue( "postExtendedText" );
                  $userEmail = $request->getValue( "userEmail" );
                  $userUrl = $request->getValue( "userUrl" );
                  
            }
。。。。。
。。。。。
已記錄
頁: [1]
LifeType 中文開發論壇  |  開發  |  外掛程式  |  请问有没有文章内容过滤的外挂? « 上篇主題 下篇主題 »
    前往: