Warning: mb_strpos() [function.mb-strpos]: Unknown encoding or conversion error. in /home/alexng/domains/hkbdc.info/public_html/includes/functions_validate.php on line 104
請問有沒有可能的解決方案?
另一個問題,請問該使用哪一種語法去解決 UTF-8 下切割主題字元出現的亂碼問題?
示例:
這個問題待主機的最高控制者回來才補回所用的 MOD 同相關資料。
●架設主機作業系統:Cent OS 4.4
●快速架站程式:不適用
●免費空間連結:不適用
●您的上網方式:香港寬頻 LAN Cable to home
●您安裝的程式:Apache 1.3.37 + php 4.4.7 + MySQL 4.1.21 + phpMyAdmin 2.10.1
●您的 phpBB 2 版本:phpBB 2.0.22 竹貓星球 UTF-8 版
●網站:www.hkbdc.info
●測試用戶口:fastwalker(臨時密碼 hkbdctest)
########################################################
## Mod Title: last_topic_title_index
## Mod Version: 1.0.0
## Author: Adam Ismay <admin@boardz.tk>
## Description: Gives the topic title in the last post box
## on index.
##
## Installation Level: fairly easy
## Installation Time: 3-5 minutes
## Files To Edit: index.php
## templates/????/index_body.tpl
########################################################
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites
##############################################################
## Notes: Does not do anything on Postgres or Oracle. The topic
## title is shortened to 25. This can be changed in the code
## or you can add $board_config['topic_title_index_size'] = ??;
## in the template config file which will override this
## value. Topic titles are not displayed if the user does
## not have the right to read the forum. The link goes to
## the start of the topic, the existing link to last post is
## unaffected.
#########################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#########################################################
...
...
...
...
...
# --- [ FIND (line 250) ] ----
#
$is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data);
#
#-----[ REPLACE WITH ] -----
#
$is_auth_ary = auth(AUTH_ALL, AUTH_LIST_ALL, $userdata, $forum_data);
if (!isset($board_config['topic_title_index_size'])){
$board_config['topic_title_index_size'] = 25; //Set this to size limit
}
#
# --- [ FIND (line 430) ] ----
#
'MODERATORS' => $moderator_list,
#
# ---- [ AFTER, ADD ] ---
#
'LAST_TOPIC' => $is_auth_ary[$forum_data[$j]['forum_id']]['auth_read'] ? (strlen($forum_data[$j]['topic_title']) > $board_config['topic_title_index_size']) ? substr($forum_data[$j]['topic_title'], 0, ($board_config['topic_title_index_size'] - 2)) . "..." : $forum_data[$j]['topic_title'] : "",
'U_LAST_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=" . $forum_data[$j]['topic_id']),