問題外掛: MX_portal 2.7.6
參考連結: http://www.mx-system.com/
使用版本: phpBB 2.0.18
網站位置: http://www.mylovelypet.net/phpBB2/index.php
狀況描述:
1. 我安裝phpBB之後安裝MX_portal外掛, 安裝完後MX_porral 的首頁是 http://www.mylovelypet.net/MX_Portal/index.php , phpBB論壇的位置則是 http://www.mylovelypet.net/phpBB2/index.php , 我希望如果輸入
http://www.mylovelypet.net/ 這個網址的時候, 出現的首頁是MX_Portal 的那個頁面, 請問該去怎麼修改? 改哪些檔案呢?
2. MX_portal 的頁面中文都會顯示亂碼, 雖然更改瀏覽器的編碼為UTF-8 之後中文可以正常顯示, 但有沒有辦法更改哪些地方, 使得使用者一進來就可看到中文?
PS: 我使用虛擬主機
[問題] MX_portal 首頁設定與搭配phpbb2.0.18出現亂碼
版主: 版主管理群
一,在根目錄下放一個 index.php 導向到 MX_portal/ 就行了。
請參考小竹子的說明:http://phpbb-tw.net/phpbb/viewtopic.php?t=16434。
二,請將 MX_portal/index.php 當中的:
iso-8859-1
改為\r
utf-8
這樣應該就可以了。
請參考小竹子的說明:http://phpbb-tw.net/phpbb/viewtopic.php?t=16434。
二,請將 MX_portal/index.php 當中的:
iso-8859-1
改為\r
utf-8
這樣應該就可以了。
有任何關於 phpBB 或是架站的問題,請在論壇上公開發表出來,大家一起討論。
請不要丟私人訊息問我,因為私訊是用來聊私事的。
這樣作對於解決您的問題一點幫助也沒有,也很沒有效率,小弟我一概謝絕。
搜尋是一種美德,在發問之前,請多加利用頂端的文章搜尋功能,搜尋可能的關鍵字。
確定您想問的問題找不到答案後,再發問。
請不要丟私人訊息問我,因為私訊是用來聊私事的。
這樣作對於解決您的問題一點幫助也沒有,也很沒有效率,小弟我一概謝絕。
搜尋是一種美德,在發問之前,請多加利用頂端的文章搜尋功能,搜尋可能的關鍵字。
確定您想問的問題找不到答案後,再發問。
感謝依夢兒...
不過在index.php中找不到 iso-8859-1 ...
下面是index.php的內容...
不過在index.php中找不到 iso-8859-1 ...
下面是index.php的內容...
<?php
/***************************************************************************
* mx-portal.php
* -------------------
* begin : Juillet, 2002
* copyright : (C) 2002 MX-System
* email : support@mx-system.com
*
* $Id: index.php,v 1.11 2004/05/21 08:32:23 jonohlsson Exp $
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PORTAL', 1);
$mx_root_path = './';
include_once($mx_root_path . 'extension.inc');
include_once($mx_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
mx_init_userprefs($userdata);
//
//
//
$cache_dir = $mx_root_path . 'cache/';
if ( $HTTP_SESSION_VARS['cache_read'] != TRUE && file_exists($cache_dir . 'block_config.xml') )
{
include_once($mx_root_path . "cache/mx_cache.php"); // file of easy_parser class
read_cache_config();
}
//
// End session management
//
$view_page = FALSE;
//
// Load default header
//
$page_id = $mx_request_vars->request('page', MX_TYPE_INT, 1);
$page_row = get_info(PAGE_TABLE, "page_id", $page_id);
$page_title .= $page_row['page_name'];
include($mx_root_path . 'includes/page_header.'.$phpEx);
$is_auth_ary = array();
$is_auth_ary = page_auth(AUTH_VIEW, $userdata, $page_row['auth_view'], $page_row['auth_view_group'] );
if ( ! $is_auth_ary['auth_view'] )
{
$message = empty($lang['Page_Not_Authorised']) ? "Sorry, but you don't have privilege to access this page." : $lang['Page_Not_Authorised'];
mx_message_die(GENERAL_MESSAGE, $message, "", __LINE__, __FILE__, "");
}
if ( !empty($HTTP_SESSION_VARS['page_column_' . $page_id]) )
{
$column_rows = $HTTP_SESSION_VARS['page_column_' . $page_id];
$total_column = count($HTTP_SESSION_VARS['page_column_' . $page_id]);
}
else
{
$sql = "SELECT col.column_id, col.column_title, col.column_order, col.column_size
FROM " . COLUMN_TABLE . " col
WHERE page_id = $page_id
ORDER BY column_order";
if( !$q_column = $db->sql_query($sql) )
{
mx_message_die(GENERAL_ERROR, "Could not query column list", "", __LINE__, __FILE__, $sql);
}
if( $total_column = $db->sql_numrows($q_column) )
{
$column_rows = $db->sql_fetchrowset($q_column);
}
$HTTP_SESSION_VARS['page_column_' . $page_id] = $column_rows;
}
if ( !empty($HTTP_SESSION_VARS['page_block_' . $page_id]) )
{
$block_rows = $HTTP_SESSION_VARS['page_block_' . $page_id];
$total_block = count( $HTTP_SESSION_VARS['page_block_' . $page_id] );
}
else
{
$sql = "SELECT blk.block_id, blk.auth_view_group, blk.auth_edit_group, bct.column_id, module_path, function_file, auth_view
FROM " . COLUMN_BLOCK_TABLE . " bct,
" . BLOCK_TABLE . " blk,
" . FUNCTION_TABLE . " fnc,
" . MODULE_TABLE . " modu
WHERE blk.function_id = fnc.function_id
AND blk.block_id = bct.block_id
AND fnc.module_id = modu.module_id
ORDER BY column_id, block_order";
// AND bct.column_id = " . $column_rows[$column]['column_id'] . "
if( !$q_modules = $db->sql_query($sql) )
{
mx_message_die(GENERAL_ERROR, "Could not query modules information", "", __LINE__, __FILE__, $sql);
}
if( $total_block = $db->sql_numrows($q_modules) )
{
$block_rows = $db->sql_fetchrowset($q_modules);
$HTTP_SESSION_VARS['page_block_' . $page_id] = $block_rows;
}
}
ECHO '<table border="0" cellspacing="4" cellpadding="0" width="100%"><tr valign="top">';
for($column = 0; $column < $total_column; $column++)
{
$block_size = $column_rows[$column]['column_size'];
ECHO '<td width="' . $block_size . '" >';
for($block = 0; $block < $total_block; $block++)
{
if ( $column_rows[$column]['column_id'] == $block_rows[$block]['column_id'] )
{
//
// Find which blocks are visible for this user
//
$block_id = $block_rows[$block]['block_id'];
$block_row = get_info(BLOCK_TABLE, "block_id", $block_id);
$is_auth_ary = array();
$is_auth_ary = block_auth(AUTH_VIEW, $block_id, $userdata, $block_rows[$block], $block_row['auth_view_group']);
if ( $is_auth_ary['auth_view'] )
{
$template = new Template($template->root, $board_config, $db);
$module_root_path = $block_rows[$block]['module_path'];
$block_file = $block_rows[$block]['function_file'];
include( $module_root_path . $block_file );
}
}
} // for ... modules
ECHO '</td>';
} // for ... column
ECHO '</tr></table>';
//
\n//
//
include($mx_root_path . 'includes/page_tail.'.$phpEx);
exit;
?>
我是從你網站上的首頁按滑鼠右鍵 > 檢視原始檔來判斷的。
抱歉我沒有安裝過 Mx-portal ,如果在 index.php 中找不到,可能是放在其他相關檔案上,可能要麻煩你自己尋找了。^^"
抱歉我沒有安裝過 Mx-portal ,如果在 index.php 中找不到,可能是放在其他相關檔案上,可能要麻煩你自己尋找了。^^"
有任何關於 phpBB 或是架站的問題,請在論壇上公開發表出來,大家一起討論。
請不要丟私人訊息問我,因為私訊是用來聊私事的。
這樣作對於解決您的問題一點幫助也沒有,也很沒有效率,小弟我一概謝絕。
搜尋是一種美德,在發問之前,請多加利用頂端的文章搜尋功能,搜尋可能的關鍵字。
確定您想問的問題找不到答案後,再發問。
請不要丟私人訊息問我,因為私訊是用來聊私事的。
這樣作對於解決您的問題一點幫助也沒有,也很沒有效率,小弟我一概謝絕。
搜尋是一種美德,在發問之前,請多加利用頂端的文章搜尋功能,搜尋可能的關鍵字。
確定您想問的問題找不到答案後,再發問。
我不知道您是不是指這個
1.
http://www.mylovelypet.net/phpBB2/language/index.htm
還是管理後台中的"基本組態" 中的 "預設語系"--Chinese [ Traditaonal - Taiwan ]
3.
或者是指 File Url: http://www.mylovelypet.net/phpBB2/langu ... _admin.php
1.
http://www.mylovelypet.net/phpBB2/language/index.htm
2.<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
還是管理後台中的"基本組態" 中的 "預設語系"--Chinese [ Traditaonal - Taiwan ]
3.
或者是指 File Url: http://www.mylovelypet.net/phpBB2/langu ... _admin.php
(內容太長只貼一點.....)<?php
/***************************************************************************
* lang_admin.php [English]
* -------------------
* begin : Sat Dec 16 2000
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: lang_admin.php,v 1.35.2.9 2003/06/10 00:31:19 psotfx Exp $
*
****************************************************************************/
/***************************************************************************
* Traditional Chinese Translation [正體中文語系]
* -------------------
* begin : Thu Nov 26 2001
* by : 小竹子, OOHOO, 皇家騎士, 思
* email : kyo.yoshika@msa.hinet.net
* webdev@phpbb-tw.net
* sjwu1@ms12.hinet.net
* f8806077@mail.dyu.edu.tw
*
* last modify : Tue Jun 25 2003
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
/* CONTRIBUTORS
2002-12-15 Philip M. White (pwhite@mailhaven.com)
Fixed many minor grammatical mistakes
*/
//
// Format is same as lang_main
//
//
// Modules, this replaces the keys used
// in the modules[][] arrays in each module file
//
$lang['General'] = '一般管理';
$lang['Users'] = '會員管理';
$lang['Groups'] = '群組管理';
$lang['Forums'] = '版面管理';
$lang['Styles'] = 'é¢¨æ ¼ç®¡ç†';
$lang['Configuration'] = '基本組態';
$lang['Permissions'] = '權限設定';
$lang['Manage'] = 'ç®¡ç†é¸é …';
$lang['Disallow'] = '禁用帳號';
$lang['Prune'] = '快速刪文';
$lang['Mass_Email'] = '電子郵件通知';
$lang['Ranks'] = '等級管理';
$lang['Smilies'] = '表情符號';
$lang['Ban_Management'] = '封鎖控制';
$lang['Word_Censor'] = '文字過濾';
$lang['Export'] = '輸出';
$lang['Create_new'] = '建立';
$lang['Add_new'] = '新增';
$lang['Backup_DB'] = '備份資料庫';
$lang['Restore_DB'] = '還原資料庫';
都不是,我指的是 phpBB 原來的 lang_chinese_traditional_taiwan/lang_main.php 。
應該是長這個樣子:
$lang['ENCODING'] = 'utf-8'; 這一句是關鍵,編碼應該指向 utf-8 。
你的 phpBB 已經 UTF-8 化了吧?是自己弄的,還是直接下載竹貓提供的 UTF-8 版呢?
應該是長這個樣子:
代碼: 選擇全部
<?php
/***************************************************************************
* lang_main.php [English]
* -------------------
* begin : Sat Dec 16 2000
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: lang_main.php,v 1.85.2.15 2003/06/10 00:31:19 psotfx Exp $
*
****************************************************************************/
/***************************************************************************
* Traditional Chinese Translation [正體中文語系]
* -------------------
* begin : Thu Nov 26 2001
* by : 小竹子(yoshika), OOHOO, Mac, 皇家騎士, 思,
* email : phpbbtw@gmail.com
*
* last modify : Tue Oct 27 2005
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
//
// CONTRIBUTORS:
// Add your details here if wanted, e.g. Name, username, email address, website
// 2002-08-27 Philip M. White - fixed many grammar problems
//
//
// The format of this file is ---> $lang['message'] = 'text';
//
// You should also try to set a locale and a character encoding (plus direction). The encoding and direction
// will be sent to the template. The locale may or may not work, it's dependent on OS support and the syntax
// varies ... give it your best guess!
//
$lang['ENCODING'] = 'utf-8';
$lang['DIRECTION'] = 'LTR';
$lang['LEFT'] = 'LEFT';
$lang['RIGHT'] = 'RIGHT';
$lang['DATE_FORMAT'] = 'Y-m-d'; // This should be changed to the default date format for your language, php date() format你的 phpBB 已經 UTF-8 化了吧?是自己弄的,還是直接下載竹貓提供的 UTF-8 版呢?
有任何關於 phpBB 或是架站的問題,請在論壇上公開發表出來,大家一起討論。
請不要丟私人訊息問我,因為私訊是用來聊私事的。
這樣作對於解決您的問題一點幫助也沒有,也很沒有效率,小弟我一概謝絕。
搜尋是一種美德,在發問之前,請多加利用頂端的文章搜尋功能,搜尋可能的關鍵字。
確定您想問的問題找不到答案後,再發問。
請不要丟私人訊息問我,因為私訊是用來聊私事的。
這樣作對於解決您的問題一點幫助也沒有,也很沒有效率,小弟我一概謝絕。
搜尋是一種美德,在發問之前,請多加利用頂端的文章搜尋功能,搜尋可能的關鍵字。
確定您想問的問題找不到答案後,再發問。
我是直接下載竹貓提供的 UTF-8 版
lang_chinese_traditional_taiwan/lang_main.php 的內容是\r
lang_chinese_traditional_taiwan/lang_main.php 的內容是\r
<?php
/***************************************************************************
* lang_main.php [English]
* -------------------
* begin : Sat Dec 16 2000
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: lang_main.php,v 1.85.2.15 2003/06/10 00:31:19 psotfx Exp $
*
****************************************************************************/
/***************************************************************************
* Traditional Chinese Translation [正體中文語系]
* -------------------
* begin : Thu Nov 26 2001
* by : 小竹子(yoshika), OOHOO, Mac, 皇家騎士, 思,
* email : phpbbtw@gmail.com
*\r
* last modify : Tue Oct 27 2005
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
//
// CONTRIBUTORS:
// Add your details here if wanted, e.g. Name, username, email address, website
// 2002-08-27 Philip M. White - fixed many grammar problems
//
//
// The format of this file is ---> $lang['message'] = 'text';
//
// You should also try to set a locale and a character encoding (plus direction). The encoding and direction
// will be sent to the template. The locale may or may not work, it's dependent on OS support and the syntax
// varies ... give it your best guess!
//
$lang['ENCODING'] = 'utf-8';
$lang['DIRECTION'] = 'LTR';
$lang['LEFT'] = 'LEFT';
$lang['RIGHT'] = 'RIGHT';
$lang['DATE_FORMAT'] = 'Y-m-d'; // This should be changed to the default date format for your language, php date() format
http://www.mylovelypet.net
現在看中文顯示似乎已經正常了!
我改了所有MX_portal 目錄下的所有 index.php 首頁
還有 overall_header.tpl 跟 overall_noheader.tpl
改為 utf-8
不知不覺就好了...
現在看中文顯示似乎已經正常了!
我改了所有MX_portal 目錄下的所有 index.php 首頁
還有 overall_header.tpl 跟 overall_noheader.tpl
改為 utf-8
不知不覺就好了...

