[問題] 有關虛擬形象資料庫安裝
版主: 版主管理群
[問題] 有關虛擬形象資料庫安裝
問題外掛:虛擬形象
參考連結:艾力測試論壇
使用版本:phpBB 2.0.19
網站位置:艾力測試論壇
狀況描述:
其實我是完全正確無誤地安裝了,只是可能因為空間的主機是在美國那邊,所以在安裝資料庫文字檔後,顯示出來的便完全變做亂碼了。
其實我知道若果把資料庫文字檔改作php檔來作資料庫安裝的話,亂碼的問題應該就能解決,只是我是php的完全初手,所以根本不懂得怎樣改檔案喔。
希望這邊有前輩高人能夠把該資料庫文字檔改作php的安裝檔,讓我能夠解決亂碼的問題。
我已把該文字檔貼在自己的測試板上了︰這邊
而且我也把那邊弄到訪客也可以上載檔案的,所以如果有熱心的前輩高人熱心地為我做了檔案,那便可以在我那邊上載,無須用上前輩們的寶貴空間。
另外,我當然也會在這邊放上連結,讓一些和我一樣遇到同樣問題的大大能夠解決問題。
謝謝。
參考連結:艾力測試論壇
使用版本:phpBB 2.0.19
網站位置:艾力測試論壇
狀況描述:
其實我是完全正確無誤地安裝了,只是可能因為空間的主機是在美國那邊,所以在安裝資料庫文字檔後,顯示出來的便完全變做亂碼了。
其實我知道若果把資料庫文字檔改作php檔來作資料庫安裝的話,亂碼的問題應該就能解決,只是我是php的完全初手,所以根本不懂得怎樣改檔案喔。
希望這邊有前輩高人能夠把該資料庫文字檔改作php的安裝檔,讓我能夠解決亂碼的問題。
我已把該文字檔貼在自己的測試板上了︰這邊
而且我也把那邊弄到訪客也可以上載檔案的,所以如果有熱心的前輩高人熱心地為我做了檔案,那便可以在我那邊上載,無須用上前輩們的寶貴空間。
另外,我當然也會在這邊放上連結,讓一些和我一樣遇到同樣問題的大大能夠解決問題。
謝謝。
也許你誤會了
意思應該是:
只要你用 轉碼器, 像convertz, 把外掛的include語系檔從 big-5轉成 utf-8就可以啦
你目前的論壇是 utf-8
而不需要進入資料庫再轉
另外, 在修改的時候, 他會要求你去改 lang_main和 lang_admin
那些ADD字以後, 請你用 convertz去檢查 有沒有出現亂碼情況
代碼: 選擇全部
其實我知道若果把資料庫文字檔改作php檔來作資料庫安裝的話,亂碼的問題應該就能解決,只是我是php的完全初手,所以根本不懂得怎樣改檔案喔。 只要你用 轉碼器, 像convertz, 把外掛的include語系檔從 big-5轉成 utf-8就可以啦
你目前的論壇是 utf-8
而不需要進入資料庫再轉
另外, 在修改的時候, 他會要求你去改 lang_main和 lang_admin
那些ADD字以後, 請你用 convertz去檢查 有沒有出現亂碼情況
目前本人帳號嚴重地被盜用!MSN已經被盜!
想問個問題並不打擾, 但沒有發文格式, 其他人不能知道你的情況!
請尊守竹貓各區裡的發文格式, 謝謝合作!
[必看]請配合發問格式及明確主題發問(04 02/16更新) phpBB!
所有新手必看的
[教學]認識、安裝和參考PHPBB的新手基本教學通
PS:感謝各位大大的幫助和教導^^
Q168.net空間技術交流
個人小品(Blog) │My phpBB-Blog │免費空間討論區
To alexlmlo:
關於美國主機資料庫 face.sql 的匯入
建議您:
參考這個主題.
http://phpbb-tw.net/phpbb/viewtopic.php?t=40885
至於, 您在測試論壇的問題
我猜想:
和此 (face mod) 外掛無關;
相關的外掛, 應該是 attach mod.
建議您:
檢視 templates/subSilver/viewtopic_body.tpl 的修改.
關於美國主機資料庫 face.sql 的匯入
建議您:
參考這個主題.
http://phpbb-tw.net/phpbb/viewtopic.php?t=40885
至於, 您在測試論壇的問題
我猜想:
和此 (face mod) 外掛無關;
相關的外掛, 應該是 attach mod.
建議您:
檢視 templates/subSilver/viewtopic_body.tpl 的修改.
感謝上面的大大的幫忙,不過看來顯示方面的問題還比亂馬的問題嚴重呢。
經過我多翻測試,我發現是viewtopic.php的以下一段code讓畫面變樣的︰
這是去除該段code前︰

這是去除該段code後︰

但是該段碼是虛擬形象所必須的喔。不知有甚麼辦法可以解決這問題呢?感謝了。
經過我多翻測試,我發現是viewtopic.php的以下一段code讓畫面變樣的︰
代碼: 選擇全部
$poster_avatar = "
<!-- 虛擬形象開始-->
<DIV id=Show
style=\"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; LEFT: 0px; PADDING-BOTTOM: 0px; WIDTH: 140px; PADDING-TOP: 0px; POSITION: relative; TOP: 0px; HEIGHT: 226px\"></DIV>
<SCRIPT language=JavaScript>
var currface = \"$userface\";
var currwear = \"$userwear\";
start_face($face);
</SCRIPT>
<!-- 虛擬形象結束-->
";
這是去除該段code後︰

但是該段碼是虛擬形象所必須的喔。不知有甚麼辦法可以解決這問題呢?感謝了。
這段代碼是顯示虛擬形象所必須的,alexlmlo 寫:感謝上面的大大的幫忙,不過看來顯示方面的問題還比亂馬的問題嚴重呢。
經過我多翻測試,我發現是viewtopic.php的以下一段code讓畫面變樣的︰
代碼: 選擇全部
$poster_avatar = " <!-- 虛擬形象開始--> <DIV id=Show style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; LEFT: 0px; PADDING-BOTTOM: 0px; WIDTH: 140px; PADDING-TOP: 0px; POSITION: relative; TOP: 0px; HEIGHT: 226px"></DIV> <SCRIPT language=JavaScript> var currface = "$userface"; var currwear = "$userwear"; start_face($face); </SCRIPT> <!-- 虛擬形象結束-->
而且它絕對不會影響到版面的編排.
建議您:
將下列檔案壓縮後, 貼出下載連結.
viewtopic.php
templates/subSilver/viewtopic_body.tpl
viewtopic.php 沒問題alexlmlo 寫:感謝你的熱心回應喔,這是我板上的檔案︰檔案心靈捕手 寫: 這段代碼是顯示虛擬形象所必須的,
而且它絕對不會影響到版面的編排.
建議您:
將下列檔案壓縮後, 貼出下載連結.
viewtopic.php
templates/subSilver/viewtopic_body.tpl
萬分感謝。
viewtopic_body.tpl 有問題
以閜的修改提供您參考:
#
#-----[ FIND ]-----
#
代碼: 選擇全部
<!-- BEGIN medal -->
<table border="0" cellspacing="0" cellpadding="5">
<!-- BEGIN medal_row -->
<tr align="left" valign="middle">
<!-- BEGIN medal_col -->
<td><img src="{postrow.medal.medal_row.medal_col.MEDAL_IMAGE}" border="0" alt="{postrow.medal.medal_row.medal_col.MEDAL_NAME} {postrow.medal.medal_row.medal_col.MEDAL_COUNT}" title="{postrow.medal.medal_row.medal_col.MEDAL_NAME} {postrow.medal.medal_row.medal_col.MEDAL_COUNT}" {postrow.medal.medal_row.medal_col.MEDAL_WIDTH} {postrow.medal.medal_row.medal_col.MEDAL_HEIGHT} /></td>
<!-- END medal_col -->
</tr>
<!-- END medal_row -->
</table>
<!-- END medal -->
</span><br /></td>
</span><br /></td>
#-----[ REPLACE WITH ]-----
#
代碼: 選擇全部
<!-- BEGIN medal -->
<table border="0" cellspacing="0" cellpadding="5">
<!-- BEGIN medal_row -->
<tr align="left" valign="middle">
<!-- BEGIN medal_col -->
<td><img src="{postrow.medal.medal_row.medal_col.MEDAL_IMAGE}" border="0" alt="{postrow.medal.medal_row.medal_col.MEDAL_NAME} {postrow.medal.medal_row.medal_col.MEDAL_COUNT}" title="{postrow.medal.medal_row.medal_col.MEDAL_NAME} {postrow.medal.medal_row.medal_col.MEDAL_COUNT}" {postrow.medal.medal_row.medal_col.MEDAL_WIDTH} {postrow.medal.medal_row.medal_col.MEDAL_HEIGHT} /></td>
<!-- END medal_col -->
</tr>
<!-- END medal_row -->
</table>
<!-- END medal -->
</span><br /></td>
#-----[ FIND ]-----
#
代碼: 選擇全部
<tr>
<td colspan="2"><span class="postbody">
<table border="0" cellpadding="0" cellspacing="0" style="table-layout:break-all">
<tr>
<td width="30" height="9" nowrap="nowrap"><img src="templates/subSilver/images/frame/bubble_tl.gif" width="30" height="9" /></td>
<td width="100%" height="9" nowrap="nowrap" background="templates/subSilver/images/frame/bubble_tb.gif"></td>
<td width="11" height="9" nowrap="nowrap"><img src="templates/subSilver/images/frame/bubble_tr.gif" width="11" height="9" /></td>
</tr>
<tr>
<td width="30" nowrap="nowrap" valign="top" background="templates/subSilver/images/frame/bubble_lb.gif"><img src="templates/subSilver/images/frame/bubble.gif" width="30" height="70" /></td>
<td style="word-wrap:break-word" bgcolor="#FFFFFF"><span class="postbody">{postrow.MESSAGE}</span></td>
<td width="11" nowrap="nowrap" background="templates/subSilver/images/frame/bubble_rb.gif"></td>
</tr>
<tr>
<td width="30" height="11" nowrap="nowrap"><img src="templates/subSilver/images/frame/bubble_bl.gif" width="30" height="11" /></td>
<td width="100%" height="11" nowrap="nowrap" background="templates/subSilver/images/frame/bubble_bb.gif"></td>
<td width="11" height="11" nowrap="nowrap"><img src="templates/subSilver/images/frame/bubble_br.gif" width="11" height="11" /></td>
</tr>
</table>
{postrow.JUDGMENT_FIELD}</span>{postrow.ATTACHMENTS}<span class="postbody">{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
</tr>
#-----[ REPLACE WITH ]-----
#
代碼: 選擇全部
<tr>
<td colspan="2">
<table border="0" cellpadding="0" cellspacing="0" style="table-layout:break-all">
<tr>
<td width="30" height="9" nowrap="nowrap"><img src="templates/subSilver/images/frame/bubble_tl.gif" width="30" height="9" /></td>
<td width="100%" height="9" nowrap="nowrap" background="templates/subSilver/images/frame/bubble_tb.gif"></td>
<td width="11" height="9" nowrap="nowrap"><img src="templates/subSilver/images/frame/bubble_tr.gif" width="11" height="9" /></td>
</tr>
<tr>
<td width="30" nowrap="nowrap" valign="top" background="templates/subSilver/images/frame/bubble_lb.gif"><img src="templates/subSilver/images/frame/bubble.gif" width="30" height="70" /></td>
<td style="word-wrap:break-word" bgcolor="#FFFFFF"><span class="postbody">{postrow.MESSAGE}</span></td>
<td width="11" nowrap="nowrap" background="templates/subSilver/images/frame/bubble_rb.gif"></td>
</tr>
<tr>
<td width="30" height="11" nowrap="nowrap"><img src="templates/subSilver/images/frame/bubble_bl.gif" width="30" height="11" /></td>
<td width="100%" height="11" nowrap="nowrap" background="templates/subSilver/images/frame/bubble_bb.gif"></td>
<td width="11" height="11" nowrap="nowrap"><img src="templates/subSilver/images/frame/bubble_br.gif" width="11" height="11" /></td>
</tr>
</table><br>
<span class="postbody">{postrow.JUDGMENT_FIELD}</span>{postrow.ATTACHMENTS}<span class="postbody">{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
</tr>
提供測試用帳號與密碼.
喔喔!心靈捕手 寫: 我猜想:
有可能是和某外掛相衝.
建議您:
貼出所有已經安裝外掛的名稱以及參考連結, 方便測試.
(ps. 至少貼出有修改過 viewtopic.php 或 viewtopic_body.tpl 的外掛)
要找回所有有入過的外掛真困難喔,幸好我每入一個外掛時也會有更新紀錄的。
viewtop.php紀錄
viewtop_body.tpl紀錄
這些是我在此兩邊所入過的外掛︰
增加欄位
金錢外掛
勳章外掛
線上狀態外掛
文章合併外掛
上載外掛
書籤外掛
預設頭像外掛
簡易子板面外掛
ebay按鈕外掛
論壇公告外掛
板主刪文不扣回應者文章數外掛
板主管理按鈕置上外掛
等級風格外掛
文章報告外掛
快速回覆外掛
問卷外掛
感謝文章外掛
塗鴉板外掛
板主評語外掛
差點忘了我還入了blog外掛︰這邊
我以把這些外掛上載在這裡了。
感謝你的幫忙。
因為您測試過的外掛很多,alexlmlo 寫:喔喔!心靈捕手 寫: 我猜想:
有可能是和某外掛相衝.
建議您:
貼出所有已經安裝外掛的名稱以及參考連結, 方便測試.
(ps. 至少貼出有修改過 viewtopic.php 或 viewtopic_body.tpl 的外掛)
要找回所有有入過的外掛真困難喔,幸好我每入一個外掛時也會有更新紀錄的。
viewtop.php紀錄
viewtop_body.tpl紀錄
這些是我在此兩邊所入過的外掛︰
增加欄位
金錢外掛
勳章外掛
線上狀態外掛
文章合併外掛
上載外掛
書籤外掛
預設頭像外掛
簡易子板面外掛
ebay按鈕外掛
論壇公告外掛
板主刪文不扣回應者文章數外掛
板主管理按鈕置上外掛
等級風格外掛
文章報告外掛
快速回覆外掛
問卷外掛
感謝文章外掛
塗鴉板外掛
板主評語外掛
差點忘了我還入了blog外掛︰這邊
我以把這些外掛上載在這裡了。
感謝你的幫忙。
所以得花點時間試試.
請問:
您將文章內容給 '包' 起來的外掛是哪一個?
噢…那個忘了放上去。那是在竹貓找到的外掛,忘了是哪篇文章,我想是加上了類似下面的code的︰心靈捕手 寫: 因為您測試過的外掛很多,
所以得花點時間試試.
請問:
您將文章內容給 '包' 起來的外掛是哪一個?
代碼: 選擇全部
talking bubble
viewtopic.tpl
找尋:
代碼:
{postrow.MESSAGE}
替換:
代碼:
<td colspan="2"><span class="postbody">
<table border="0" cellpadding="0" cellspacing="0" style="table-layout:break-all">
<tr>
<td width="30" height="9" nowrap="nowrap"><img src="templates/subSilver/images/frame/bubble_tl.gif" width="30" height="9" /></td>
<td width="100%" height="9" nowrap="nowrap" background="templates/subSilver/images/frame/bubble_tb.gif"></td>
<td width="11" height="9" nowrap="nowrap"><img src="templates/subSilver/images/frame/bubble_tr.gif" width="11" height="9" /></td>
</tr>
<tr>
<td width="30" nowrap="nowrap" valign="top" background="templates/subSilver/images/frame/bubble_lb.gif"><img src="templates/subSilver/images/frame/bubble.gif" width="30" height="70" /></td>
<td style="word-wrap:break-word" bgcolor="#FFFFFF"><span class="postbody">{postrow.MESSAGE}</span></td>
<td width="11" nowrap="nowrap" background="templates/subSilver/images/frame/bubble_rb.gif"></td>
</tr>
<tr>
<td width="30" height="11" nowrap="nowrap"><img src="templates/subSilver/images/frame/bubble_bl.gif" width="30" height="11" /></td>
<td width="100%" height="11" nowrap="nowrap" background="templates/subSilver/images/frame/bubble_bb.gif"></td>
<td width="11" height="11" nowrap="nowrap"><img src="templates/subSilver/images/frame/bubble_br.gif" width="11" height="11" /></td>
</tr>
</table>找到了,在這邊
我應入了以下的code︰
我應入了以下的code︰
代碼: 選擇全部
找尋:
代碼:
{postrow.MESSAGE}
替換:
代碼:
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout:fixed">
<tr>
<td width="30" height="9" nowrap="nowrap"><img src="templates/Appalachia/images/frame/bubble_tl.gif" width="30" height="9" /></td>
<td width="100%" height="9" nowrap="nowrap" background="templates/Appalachia/images/frame/bubble_tb.gif"></td>
<td width="11" height="9" nowrap="nowrap"><img src="templates/Appalachia/images/frame/bubble_tr.gif" width="11" height="9" /></td>
</tr>
<tr>
<td width="30" nowrap="nowrap" valign="top" background="templates/Appalachia/images/frame/bubble_lb.gif"><img src="templates/Appalachia/images/frame/bubble.gif" width="30" height="70" /></td>
<td style="word-wrap:break-word" bgcolor="#FFFFFF"><span class="postbody">{postrow.MESSAGE}</span></td>
<td width="11" nowrap="nowrap" background="templates/Appalachia/images/frame/bubble_rb.gif"></td>
</tr>
<tr>
<td width="30" height="11" nowrap="nowrap"><img src="templates/Appalachia/images/frame/bubble_bl.gif" width="30" height="11" /></td>
<td width="100%" height="11" nowrap="nowrap" background="templates/Appalachia/images/frame/bubble_bb.gif"></td>
<td width="11" height="11" nowrap="nowrap"><img src="templates/Appalachia/images/frame/bubble_br.gif" width="11" height="11" /></td>
</tr>
</table>
To alexlmlo:
您安裝外掛, 相當細心.
原先, 我以為是外掛相衝.
所以在測試論壇, 針對較可疑的幾個外掛進行測試.
但是, 發現都沒有問題,...
後來, 終於發現了問題的癥結,...
主要是因為您的論壇中文語系是 utf-8 編碼,
所以您必須做以下的修正:
#
#-----[ OPEN ]-----
#
viewtopic.php
#
#-----[ FIND ]-----
#
#
#-----[ REPLACE WITH ]-----
#
ps.
0. 當然, 您也可以將其轉 (utf-8) 碼後, 儲存, 即可.
1. 這個檔案 includes/usercp_viewprofile.php 您也必須比照處理.
2. 為有效解決購物中心的亂碼, 建議您:
刪除 week9_data 資料表後, 重新建立.
您安裝外掛, 相當細心.
原先, 我以為是外掛相衝.
所以在測試論壇, 針對較可疑的幾個外掛進行測試.
但是, 發現都沒有問題,...
後來, 終於發現了問題的癥結,...
主要是因為您的論壇中文語系是 utf-8 編碼,
所以您必須做以下的修正:
#
#-----[ OPEN ]-----
#
viewtopic.php
#
#-----[ FIND ]-----
#
代碼: 選擇全部
$poster_avatar = "
<!-- 虛擬形象開始-->
<DIV id=Show
style=\"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; LEFT: 0px; PADDING-BOTTOM: 0px; WIDTH: 140px; PADDING-TOP: 0px; POSITION: relative; TOP: 0px; HEIGHT: 226px\"></DIV>
<SCRIPT language=JavaScript>
var currface = \"$userface\";
var currwear = \"$userwear\";
start_face($face);
</SCRIPT>
<!-- 虛擬形象結束-->
";
#-----[ REPLACE WITH ]-----
#
代碼: 選擇全部
$poster_avatar = "
<DIV id=Show
style=\"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; LEFT: 0px; PADDING-BOTTOM: 0px; WIDTH: 140px; PADDING-TOP: 0px; POSITION: relative; TOP: 0px; HEIGHT: 226px\"></DIV>
<SCRIPT language=JavaScript>
var currface = \"$userface\";
var currwear = \"$userwear\";
start_face($face);
</SCRIPT>
";
0. 當然, 您也可以將其轉 (utf-8) 碼後, 儲存, 即可.
1. 這個檔案 includes/usercp_viewprofile.php 您也必須比照處理.
2. 為有效解決購物中心的亂碼, 建議您:
刪除 week9_data 資料表後, 重新建立.


