3 頁 (共 3 頁)

發表於 : 2007-11-30 23:15
yll
http://yll.loxa.edu.tw/phpBB2/viewtopic ... 140#158140

請問為什麼我之前用
[外掛] WYSIWYG - Rich Text Editor 3.0(所見即所得)
http://phpbb-tw.net/phpbb/viewtopic.php?t=42226
貼的文
會是亂碼

該如何做修正????

發表於 : 2007-11-30 23:30
Meowmeow
看來是部份符號出現異常,好似是你使用 big5 的關係,以及那個外掛使用太多的 HTML。

發表於 : 2007-11-30 23:35
yll
Meowmeow 寫:看來是部份符號出現異常,好似是你使用 big5 的關係。

但新裝[外掛] WYSIWYG - Rich Text Editor 4.2
貼的文便沒問題

有救嗎???

發表於 : 2007-11-30 23:48
Meowmeow
其實你應該要測試都沒問題再用上去的......

發表於 : 2007-11-30 23:50
yll
Meowmeow 寫:其實你應該要測試都沒問題再用上去的......
沒關係
我有備份

但這問題真的頭痛...

發表於 : 2007-11-30 23:53
Meowmeow
你先檢查舊版的網頁模組上使用 WYSIWYG 的話原始碼會呈現怎麼樣。

發表於 : 2007-12-01 00:15
yll
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

發表於 : 2007-12-01 00:24
yll
我解決了
在viewtopic.php中加上這段即可
還是感謝您的幫忙 :mrgreen:

代碼: 選擇全部

			//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&nbsp; />","<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

發表於 : 2007-12-07 20:44
yll
http://yll.loxa.edu.tw/phpBB2/memberlist.php

按下會員列表的依序排列鍵
沒有反應

是bug???

ps 安裝的外掛均未動到相關檔案

縮圖外掛(防版面被撐破)
http://www.phpbbhacks.com/download/3957
縮圖顯示不出來
不知問題為何???

感謝

發表於 : 2007-12-07 21:32
Meowmeow
剛釋出的 1.0.3 解決了會員列表的問題。