http://starryhometown.net/forum/viewtopic.php?t=470
當你在 [ 由網址連結頭像圖檔 ] 中輸入的網址並不是有正確檔案名稱副檔名連結的話
例:http://smartor.is-root.com/album_pic.php?pic_id=160
就會出現空白無文字的錯誤訊息,照以下進行修正就可解決此問題。(phpBB 2.0.17中已解決此問題)
#
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼:
includes/usercp_avatar.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
function user_avatar_url($mode, &$error, &$error_msg, $avatar_filename)
{#
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#
代碼: 選擇全部
global $board_config, $db, $lang; #
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束
當你在 [ 由網址連結頭像圖檔 ] 中輸入的網址並是沒有包涵http://的話
例:home6/riot/D3.gif
則系統還是會正常更新個人資料,並不會出現錯誤訊息,照以下進行修正就可解決此問題。
#
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼:
includes/usercp_avatar.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
if ( !preg_match('#^(http)|(ftp)://#i', $avatar_filename) )
{
$avatar_filename = 'http://' . $avatar_filename;
} #
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
if ( !preg_match('#^(http)|(ftp)://#i', $avatar_filename) )
{
$error = true;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br>' . $lang['Incomplete_URL'] : $lang['Incomplete_URL'];
return;
} #-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束





