空間類型:付費網頁空間
phpBB2 版本:PHPBB 2.0.10 完整繁體中文版
請教的問題:多國語系支援\r
我是phpbb的初學者,最近架了一個phpbb 2.0.10 的論壇,但是發現不能顯示日文、西歐語言、簡體中文等其他語系的文字。
所以想要做一些多國語系的修正,令這些非繁體中文的文字可以正常顯示,我有搜尋過相關的教學與文章,但是有些不太明瞭的疑問,想請教各位大大,希望各位大大可以幫忙解答。
問題如下:
(一) 多國語系修正的功能\r
看過搜尋到的相關文章與教學,都是說加裝了修正後,可以讓會員自由選擇不同的語系,令版面變成其他語系,並且不會因此而出現亂碼。
如果我的討論區只能使用繁體中文的版面,不提供其他語系選擇,版面只能用繁體中文顯示,但在瀏覽/發表文章時又可能看到/輸入其他國家的文字(如:日文、簡體中文、法文...等),我需要做的修正應該是那一種?
(二) 多國語系修正的安裝程序
是否只能在剛架好的論壇做修正?如果我的論壇已經加裝其他的MOD...是否會與這個修正有所衝突?這個算不算是外掛程式?
(三) 針對PHPBB2.0.10的修正
我只能搜尋到針對2.0.0~2.0.8的相關修正方法,而且很多連結都已經連不上了,所以想請問一下,有沒有針對2.0.10版本的多國語系修正?
請各位大大多多幫忙指教,謝謝!
[問題] 2.0.10 多國語系修正
版主: 版主管理群
版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
代碼: 選擇全部
##############################################################
## MOD Title: Multi-Language Fix
## MOD Author: Scorpion <formosa@ms20.url.com.tw> http://ibf.myweb.hinet.net/
## Update to 2.0.10: WeiChou
## Conflation: William Leung <admin@ke5475.net> http://ke5475.net
## MOD Description: Fix the display problems on multi-language
## MOD Version: 2.0.10
##
## Installation Level: Easy
## Installation Time: 10 Minutes
## Files To Edit: 7
## login.php
## posting.php
## includes/functions.php
## includes/functions_post.php
## includes/usercp_register.php
## includes/bbcode.php
## admin/admin_users.php
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
login.php
#
#-----[ FIND ]------------------------------------------
#
$username = isset($HTTP_POST_VARS['username']) ? trim(htmlspecialchars($HTTP_POST_VARS['username'])) : '';
#
#-----[ REPLACE WITH ]----------------------------------
#
$username = isset($HTTP_POST_VARS['username']) ? str_replace("&","&",trim(htmlspecialchars($HTTP_POST_VARS['username']))) : '';
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
$poll_options = array();
if ( !empty($HTTP_POST_VARS['poll_option_text']) )
#
#-----[ BEFORE, ADD ]-----------------------------------
#
$subject = ereg_replace("&","&",$subject);
$message = ereg_replace("&","&",$message);
$poll_title = ereg_replace("&","&",$poll_title);
#
#-----[ FIND ]------------------------------------------
#
$poll_options[$option_id] = htmlspecialchars(trim(stripslashes($option_text)));
#
#-----[ REPLACE WITH ]----------------------------------
#
$poll_options[$option_id] = ereg_replace("&","&",htmlspecialchars(trim(stripslashes($option_text))));
#
#-----[ FIND ]------------------------------------------
#
$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.php
#
#-----[ FIND ]------------------------------------------
#
$user = trim(htmlspecialchars($user));
#
#-----[ REPLACE WITH ]----------------------------------
#
$user = str_replace("&","&",trim(htmlspecialchars($user)));
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
$subject = htmlspecialchars(trim($subject));
#
#-----[ REPLACE WITH ]----------------------------------
#
$subject = ereg_replace("&","&",htmlspecialchars(trim($subject)));
#
#-----[ FIND ]------------------------------------------
#
$poll_title = htmlspecialchars(trim($poll_title));
#
#-----[ REPLACE WITH ]----------------------------------
#
$poll_title = ereg_replace("&","&",htmlspecialchars(trim($poll_title)));
#
#-----[ FIND ]------------------------------------------
#
$option_text = str_replace("\'", "''", htmlspecialchars($option_text));
#
#-----[ AFTER, ADD ]------------------------------------
#
$option_text = str_replace("&","&", $option_text);
#
#-----[ OPEN ]------------------------------------------
#
includes\usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
$$var = trim(htmlspecialchars($HTTP_POST_VARS[$param]));
#
#-----[ REPLACE WITH ]----------------------------------
#
$$var = str_replace("&","&",trim(htmlspecialchars($HTTP_POST_VARS[$param])));
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
$code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\[#', '#\]#', '#\(#', '#\)#', '#\{#', '#\}#');
$code_entities_replace = array('<', '>', '"', ':', '[', ']', '(', ')', '{', '}');
#
#-----[ REPLACE WITH ]----------------------------------
#
$code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\(#', '#\)#');
$code_entities_replace = array('<', '>', '"', ':', '(', ')');
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]------------------------------------------
#
$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 ]------------------------------------------
#
$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 ]------------------------------------------
#
$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 ]----------------------------------
#
$location = ereg_replace("&","&",htmlspecialchars(stripslashes($location)));
$occupation = ereg_replace("&","&",htmlspecialchars(stripslashes($occupation)));
$interests = ereg_replace("&","&",htmlspecialchars(stripslashes($interests)));
$signature = ereg_replace("&","&",htmlspecialchars(stripslashes($signature)));
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
# EoM 
