http://yll.loxa.edu.tw/phpBB2/viewtopic ... 140#158140
請問為什麼我之前用
[外掛] WYSIWYG - Rich Text Editor 3.0(所見即所得)
http://phpbb-tw.net/phpbb/viewtopic.php?t=42226
貼的文
會是亂碼
該如何做修正????
[釋出] prosilver 1.1.2
-
- 星球公民
- 文章: 149
- 註冊時間: 2002-09-08 15:26
- 來自: http://www.yll.url.tw/
- 聯繫:
-
- 星球公民
- 文章: 149
- 註冊時間: 2002-09-08 15:26
- 來自: http://www.yll.url.tw/
- 聯繫:
-
- 星球公民
- 文章: 149
- 註冊時間: 2002-09-08 15:26
- 來自: http://www.yll.url.tw/
- 聯繫:
大概找到問題了Meowmeow 寫:你先檢查舊版的網頁模組上使用 WYSIWYG 的話原始碼會呈現怎麼樣。
http://phpbb-tw.net/phpbb/viewtopic.php?p=259145
上面連結中的第4篇
[建議] 升級 phpbb 2.0.20 後的安裝應變
提到
//EDITOR START HERE
$privmsg_message = str_replace ("#ed_op#","<",$privmsg_message);
$privmsg_message = str_replace ("#ed_cl#",">",$privmsg_message);
$privmsg_message = str_replace ("&","&",$privmsg_message);
$privmsg_message = str_replace('"',""",$privmsg_message);
$privmsg_message = str_replace('\\',"&bkfls;",$privmsg_message);
$privmsg_message = str_replace ("<br />","",$privmsg_message);
但原本3.0的安裝法沒了....
http://home.gigigaga.com/wang5555adsl/p ... or_3.0.rar
-
- 星球公民
- 文章: 149
- 註冊時間: 2002-09-08 15:26
- 來自: http://www.yll.url.tw/
- 聯繫:
我解決了
在viewtopic.php中加上這段即可
還是感謝您的幫忙
在viewtopic.php中加上這段即可
還是感謝您的幫忙

代碼: 選擇全部
//EDITOR START HERE
$message =str_replace ("#ed_op#","<",$message);
$message =str_replace ("#ed_cl#",">",$message);
$message =str_replace ("&","&",$message);
$message =str_replace (""","\"",$message);
$message =str_replace ("<br />","<br>",$message);
// Clear all onClick onMouseOver onMouseOut onMouseDown onMouseUp onMouseMove onBlur cursor
// position absolute visibility visible z-index
// Example <span onClick=alert('BOOOO')>Click here</span>
// will be replaced to <span =alert('BOOOO')>Click here</span>
// in this way your board won't mess up. Hope this will help.
$message = str_replace("<","\n<",$message);
$message = str_replace(">",">\n",$message);
$array_mess = explode ("\n",$message);
$message = "";
foreach ($array_mess as $val){
if (preg_match("/</",$val) ){
$val = preg_replace("/onclick/si", "", $val);
$val = preg_replace("/onmouseover/si", "", $val);
$val = preg_replace("/onmouseout/si", "", $val);
$val = preg_replace("/onmousedown/si", "", $val);
$val = preg_replace("/onmouseup/si", "", $val);
$val = preg_replace("/onmousemove/si", "", $val);
$val = preg_replace("/onblur/si", "", $val);
$val = preg_replace("/cursor/si", "", $val);
$val = preg_replace("/position/si", "", $val);
$val = preg_replace("/absolute/si", "", $val);
$val = preg_replace("/visibility/si", "", $val);
$val = preg_replace("/visible/si", "", $val);
$val = preg_replace("/z-index/si", "", $val);
$val = preg_replace("/script/si", "", $val);
}
$message .=$val;
}
//EDITOR END HERE
-
- 星球公民
- 文章: 149
- 註冊時間: 2002-09-08 15:26
- 來自: http://www.yll.url.tw/
- 聯繫:
http://yll.loxa.edu.tw/phpBB2/memberlist.php
按下會員列表的依序排列鍵
沒有反應
是bug???
ps 安裝的外掛均未動到相關檔案
縮圖外掛(防版面被撐破)
http://www.phpbbhacks.com/download/3957
縮圖顯示不出來
不知問題為何???
感謝
按下會員列表的依序排列鍵
沒有反應
是bug???
ps 安裝的外掛均未動到相關檔案
縮圖外掛(防版面被撐破)
http://www.phpbbhacks.com/download/3957
縮圖顯示不出來
不知問題為何???
感謝