[問題]phpBB 2.0.11 多國語言修正

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
webspirit
竹貓忠實會員
竹貓忠實會員
文章: 1354
註冊時間: 2004-02-16 12:01
來自: 精靈國度

文章 webspirit »

#
#-----[ OPEN 打開 ]------------------------------------------------
#
posting.php

#
#-----[ FIND 尋找 ]------------------------------------------------
#618 列
$poll_options = array();

#
#-----[ BEFORE ADD 之前, 加上 ]------------------------------------
# 預覽標題、預覽後欄框文章內容及標題、投票議題
#
$subject = ereg_replace("&","&",$subject);
$message = ereg_replace("&","&",$message);
$poll_title = ereg_replace("&","&",$poll_title);

#
#-----[ FIND 尋找 ]------------------------------------------------
#633
$poll_options[$option_id] = htmlspecialchars(trim(stripslashes($option_text)));

#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 預覽之後的投票選項 (option)、增加選項之後的舊選項、更新選項
#
$poll_options[$option_id] = ereg_replace("&","&",htmlspecialchars(trim(stripslashes($option_text))));

#
#-----[ FIND 尋找 ]------------------------------------------------
#640
$poll_options[] = htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['add_poll_option_text'])));

#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 新增投票選項之後欄框裡面的選項內容
#
$poll_options[] = ereg_replace("&","&",htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['add_poll_option_text']))));

#
#-----[ OPEN 打開 ]------------------------------------------------
#
includes\functions_post.php

#
#-----[ FIND 尋找 ]------------------------------------------------
#152
$subject = htmlspecialchars(trim($subject));

#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 發表之後的主題標題
#
$subject = ereg_replace("&","&",htmlspecialchars(trim($subject)));

#
#-----[ FIND 尋找 ]------------------------------------------------
#179
$poll_title = htmlspecialchars(trim($poll_title));

#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 發表之後的投票議題
#
$poll_title = ereg_replace("&","&",htmlspecialchars(trim($poll_title)));

#
#-----[ FIND 尋找 ]------------------------------------------------
#331
$option_text = str_replace("\'", "''", htmlspecialchars($option_text));

#
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
# 發表之後的投票選項 (2.0.4 新產生的問題)
#
$option_text = str_replace("&","&", $option_text);

#
#-----[ OPEN 打開 ]------------------------------------------------
#
includes\usercp_register.php

#
#-----[ FIND 尋找 ]------------------------------------------------
#108
$$var = trim(htmlspecialchars($HTTP_POST_VARS[$param]));

#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 使用者名稱 (2.0.4 新產生的問題)
#
$$var = str_replace("&","&",trim(htmlspecialchars($HTTP_POST_VARS[$param])));

#
#-----[ OPEN 打開 ]------------------------------------------------
#
includes\bbcode.php

#
#-----[ FIND 尋找 ]------------------------------------------------
#
$curr_pos = strpos($text, "[", $curr_pos);

#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 引言修正
# http://phpbb-tw.net/phpbb/viewtopic.php?p=102297#102297
#

if ( ord(substr($text, $curr_pos, 1)) > 0xa0 )
{
$curr_pos += 2;
continue;
}
else if ( substr($text, $curr_pos, 1) != '[' )
{
$curr_pos++;
continue;
}

#
#-----[ FIND 尋找 ]------------------------------------------------
#483
$code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\[#', '#\]#', '#\(#', '#\)#', '#\{#', '#\}#');
$code_entities_replace = array('<', '>', '"', ':', '[', ']', '(', ')', '{', '}');

#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#

代碼: 選擇全部

 標籤內的某些中文字變成 ?#91; ?#93; ?#123; ?#125; 問題
#
$code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\(#', '#\)#');
$code_entities_replace = array('<', '>', '"', ':', '(', ')');

# 
#-----[ OPEN 打開 ]------------------------------------------------
#
admin\admin_users.php

# 
#-----[ FIND 尋找 ]------------------------------------------------
#219
$username = ( !empty($HTTP_POST_VARS['username']) ) ? trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['username']))) : '';

#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 
$username = ( !empty($HTTP_POST_VARS['username']) ) ? ereg_replace("&","&",trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['username'])))) : '';

# 
#-----[ FIND 尋找 ]------------------------------------------------
#285
$location = htmlspecialchars(stripslashes($location));
$occupation = htmlspecialchars(stripslashes($occupation));
$interests = htmlspecialchars(stripslashes($interests));
$signature = htmlspecialchars(stripslashes($signature));

#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 
$location = ereg_replace("&","&",htmlspecialchars(stripslashes($location)));
$occupation = ereg_replace("&","&",htmlspecialchars(stripslashes($occupation)));
$interests = ereg_replace("&","&",htmlspecialchars(stripslashes($interests)));
$signature = ereg_replace("&","&",htmlspecialchars(stripslashes($signature)));


# 
#-----[ FIND 尋找 ]------------------------------------------------
#708
$username = htmlspecialchars(stripslashes($username));

#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 
$username = ereg_replace("&","&",htmlspecialchars(stripslashes($username)));

# 
#-----[ FIND 尋找 ]------------------------------------------------
#
$location = htmlspecialchars(stripslashes($location));
$occupation = htmlspecialchars(stripslashes($occupation));
$interests = htmlspecialchars(stripslashes($interests));
$signature = htmlspecialchars(stripslashes($signature));

#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#719 
$location = ereg_replace("&","&",htmlspecialchars(stripslashes($location)));
$occupation = ereg_replace("&","&",htmlspecialchars(stripslashes($occupation)));
$interests = ereg_replace("&","&",htmlspecialchars(stripslashes($interests)));
$signature = ereg_replace("&","&",htmlspecialchars(stripslashes($signature)));


# 
#-----[ FIND 尋找 ]------------------------------------------------
#741
$location = htmlspecialchars($this_userdata['user_from']);
$occupation = htmlspecialchars($this_userdata['user_occ']);
$interests = htmlspecialchars($this_userdata['user_interests']); 

#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 從管理控制台編輯會員資料時,來自、 職業、 興趣三個欄位的多國文字顯示問題
#
		$location = ereg_replace("&","&",htmlspecialchars($this_userdata['user_from']));
		$occupation = ereg_replace("&","&",htmlspecialchars($this_userdata['user_occ']));
		$interests = ereg_replace("&","&",htmlspecialchars($this_userdata['user_interests']));

# 
#-----[ OPEN 打開 ]------------------------------------------------
#
includes/functions.php

# 
#-----[ FIND 尋找 ]------------------------------------------------
#
$username = htmlspecialchars(rtrim(trim($username), "\\\"));

#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
$username = ereg_replace("&","&",htmlspecialchars(trim(trim($username), "\\\")));

# 
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 »

webspirit 寫: $subject = ereg_replace("&","&",$subject);
$message = ereg_replace("&","&",$message);
$poll_title = ereg_replace("&","&",$poll_title);
我不直接貼出來的原因就是因為& a m p ;會變成&
不回答來自 私人訊息, 電子郵件, 及時通 的相關 phpBB 問題
除非是個人疏失所造成的問題

這世界還有拼命守護的價值嗎...
webspirit
竹貓忠實會員
竹貓忠實會員
文章: 1354
註冊時間: 2004-02-16 12:01
來自: 精靈國度

文章 webspirit »

呃...
沒注意到有這問題
看來還是得用文字檔 :P

http://ezshare.de/files-en/202984/Multi ... 1.txt.html
napoleon0319
星球普通子民
星球普通子民
文章: 20
註冊時間: 2003-11-28 10:19
來自: Mordor
聯繫:

文章 napoleon0319 »

感謝各位大大,因為我現在人在大陸,所以hinet連不到...
圖檔
webspirit
竹貓忠實會員
竹貓忠實會員
文章: 1354
註冊時間: 2004-02-16 12:01
來自: 精靈國度

文章 webspirit »

那我上面提供的那個可以嗎?
napoleon0319
星球普通子民
星球普通子民
文章: 20
註冊時間: 2003-11-28 10:19
來自: Mordor
聯繫:

文章 napoleon0319 »

webspirit 寫:那我上面提供的那個可以嗎?
可以~ :-D
圖檔
主題已鎖定

回到「phpBB 2 安裝與使用」