[問題]文章太長,無法 po[尚待解決]
版主: 版主管理群
版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
痾 這篇文章的內容很短阿\r
就這樣而已捏 sh85216s大大 是不是弄錯篇文嚕?
http://pb.idv.tw/phpBB2/viewtopic.php?t=867
2.0.11上測試 正常
http://pb.idv.tw/Flyff/viewtopic.php?p=73
就這樣而已捏 sh85216s大大 是不是弄錯篇文嚕?
在2.0.8A上的測試 正常
http://pb.idv.tw/phpBB2/viewtopic.php?t=867
2.0.11上測試 正常
http://pb.idv.tw/Flyff/viewtopic.php?p=73
-.-
這個唷 我想應該是 語法上的衝突 我家也是這樣子 @@"
http://pb.idv.tw/phpBB2/viewtopic.php?p=1915#1915
在竹貓也會出現 語法上的衝突 用Code包起來也是沒有作用的@@
所以通常他們 都是打包成文字檔@@ 天霜他家(休站中)
之前也是因為 某些文章的語法的關聯 所以 特定的文字 像空格 這樣的問題
但是竹貓的可以貼@@"
我想問題應該是在這裡吧\r
找到那篇修改文件的內容拿掉旁邊的[ ]
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# code 標籤內的某些中文字變成 ?#91; ?#93; ?#123; ?#125; 問題
#
http://pb.idv.tw/phpBB2/viewtopic.php?p=1915#1915
在竹貓也會出現 語法上的衝突 用Code包起來也是沒有作用的@@
所以通常他們 都是打包成文字檔@@ 天霜他家(休站中)
之前也是因為 某些文章的語法的關聯 所以 特定的文字 像空格 這樣的問題
但是竹貓的可以貼@@"
我想問題應該是在這裡吧\r
找到那篇修改文件的內容拿掉旁邊的[ ]
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# code 標籤內的某些中文字變成 ?#91; ?#93; ?#123; ?#125; 問題
#
最後由 神川小羽 於 2004-11-25 21:28 編輯,總共編輯了 1 次。
-.-
確實如您所說,這個部份已經OK.神川小羽 寫: 我想問題應該是在這裡吧\r
找到那篇修改文件的內容拿掉旁邊的[ ]
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# code 標籤內的某些中文字變成 ?#91; ?#93; ?#123; ?#125; 問題
#
另:在2.0.11下無法 po 文的部份將在檢查看看,多謝幫忙!!
架設主機︰Fedora Core 5
上網方式:Hinet ADSL (2M/512K)
安裝程式:Apache + php + MySql
phpBB2 版本: phpBB 2.0.21
phpBB2 連結網址: 小站
上網方式:Hinet ADSL (2M/512K)
安裝程式:Apache + php + MySql
phpBB2 版本: phpBB 2.0.21
phpBB2 連結網址: 小站
剛剛打開除錯模式
得到錯誤的訊息如下:
請幫忙診斷一下!!
忘了貼網址
得到錯誤的訊息如下:
代碼: 選擇全部
Error in posting
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near 'add_poll_option_text'])));[/code:1:9d4fb5ed01] # #-----[ REPLACE WITH 替換' at line 1
INSERT INTO phpbb_posts_text (post_id, post_subject, bbcode_uid, post_text) VALUES (567, '', '9d4fb5ed01', 'Error in posting 下載檔案: [url]http://myweb.hinet.net/home6/riot/Multi-Language_Fix_2.0.11.txt[/url] # #-----[ OPEN 打開 ]------------------------------------------------ # posting.php # #-----[ FIND 尋找 ]------------------------------------------------ #618 列 [code:1:9d4fb5ed01]$poll_options = array();[/code:1:9d4fb5ed01] # #-----[ BEFORE ADD 之前, 加上 ]------------------------------------ # 預覽標題、預覽後欄框文章內容及標題、投票議題 # [code:1:9d4fb5ed01] $subject = ereg_replace("&","&",$subject); $message = ereg_replace("&","&",$message); $poll_title = ereg_replace("&","&",$poll_title);[/code:1:9d4fb5ed01] # #-----[ FIND 尋找 ]------------------------------------------------ #633 列 [code:1:9d4fb5ed01]$poll_options[$option_id] = htmlspecialchars(trim(stripslashes($option_text)));[/code:1:9d4fb5ed01] # #-----[ REPLACE WITH 替換 ]---------------------------------------- # 預覽之後的投票選項 (option)、增加選項之後的舊選項、更新選項 # [code:1:9d4fb5ed01]$poll_options[$option_id] = ereg_replace("&","&",htmlspecialchars(trim(stripslashes($option_text))));[/code:1:9d4fb5ed01] # #-----[ FIND 尋找 ]------------------------------------------------ #640 列 [code:1:9d4fb5ed01]$poll_options[] = htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['add_poll_option_text'])));[/code:1:9d4fb5ed01] # #-----[ REPLACE WITH 替換 ]---------------------------------------- # 新增投票選項之後欄框裡面的選項內容 # [code:1:9d4fb5ed01]$poll_options[] = ereg_replace("&","&",htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['add_poll_option_text']))));[/code:1:9d4fb5ed01] # #-----[ OPEN 打開 ]------------------------------------------------ # includesfunctions_post.php # #-----[ FIND 尋找 ]------------------------------------------------ #152 列 [code:1:9d4fb5ed01]$subject = htmlspecialchars(trim($subject));[/code:1:9d4fb5ed01] # #-----[ REPLACE WITH 替換 ]---------------------------------------- # 發表之後的主題標題 # [code:1:9d4fb5ed01]$subject = ereg_replace("&","&",htmlspecialchars(trim($subject)));[/code:1:9d4fb5ed01] # #-----[ FIND 尋找 ]------------------------------------------------ #179 列 [code:1:9d4fb5ed01]$poll_title = htmlspecialchars(trim($poll_title));[/code:1:9d4fb5ed01] # #-----[ REPLACE WITH 替換 ]---------------------------------------- # 發表之後的投票議題 # [code:1:9d4fb5ed01]$poll_title = ereg_replace("&","&",htmlspecialchars(trim($poll_title)));[/code:1:9d4fb5ed01] # #-----[ FIND 尋找 ]------------------------------------------------ #331 列 [code:1:9d4fb5ed01]$option_text = str_replace("''", "''", htmlspecialchars($option_text));[/code:1:9d4fb5ed01] # #-----[ AFTER, ADD 之後, 加上 ]------------------------------------ # 發表之後的投票選項 (2.0.4 起新產生的問題) # [code:1:9d4fb5ed01]$option_text = str_replace("&","&", $option_text);[/code:1:9d4fb5ed01] # #-----[ OPEN 打開 ]------------------------------------------------ # includesusercp_register.php # #-----[ FIND 尋找 ]------------------------------------------------ #108 列 [code:1:9d4fb5ed01]$$var = trim(htmlspecialchars($HTTP_POST_VARS[$param]));[/code:1:9d4fb5ed01] # #-----[ REPLACE WITH 替換 ]---------------------------------------- # 使用者名稱 (2.0.4 起新產生的問題) # [code:1:9d4fb5ed01]$$var = str_replace("&","&",trim(htmlspecialchars($HTTP_POST_VARS[$param])));[/code:1:9d4fb5ed01] # #-----[ OPEN 打開 ]------------------------------------------------ # includesbbcode.php # #-----[ FIND 尋找 ]------------------------------------------------ # [code:1:9d4fb5ed01]$curr_pos = strpos($text, "[", $curr_pos);[/code:1:9d4fb5ed01] # #-----[ REPLACE WITH 替換 ]---------------------------------------- # 引言修正 # http://phpbb-tw.net/phpbb/viewtopic.php?p=102297#102297 # [code:1:9d4fb5ed01] if ( ord(substr($text, $curr_pos, 1)) > 0xa0 ) { $curr_pos += 2; continue; } else if ( substr($text, $curr_pos, 1) != '[' ) { $curr_pos++; continue; }[/code:1:9d4fb5ed01] # #-----[ FIND 尋找 ]------------------------------------------------ #483 列 [code:1:9d4fb5ed01]$code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\[#', '#\]#', '#\(#', '#\)#', '#\{#', '#\}#'); $code_entities_replace = array('<', '>', '&', ':', '[', ']', '(', ')', '{', '}');[/code:1:9d4fb5ed01] # #-----[ REPLACE WITH 替換 ]---------------------------------------- # code 標籤內的某些中文字變成 ?#91; ?#93; ?#123; ?#125; 問題 # [code:1:9d4fb5ed01]$code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\(#', '#\)#'); $code_entities_replace = array('<', '>', '&', ':', '(', ')');[/code:1:9d4fb5ed01] # #-----[ OPEN 打開 ]------------------------------------------------ # adminadmin_users.php # #-----[ FIND 尋找 ]------------------------------------------------ #219 列 [code:1:9d4fb5ed01]$username = ( !empty($HTTP_POST_VARS['username']) ) ? trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['username']))) : '';[/code:1:9d4fb5ed01] # #-----[ REPLACE WITH 替換 ]---------------------------------------- # [code:1:9d4fb5ed01]$username = ( !empty($HTTP_POST_VARS['username']) ) ? ereg_replace("&","&",trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['username'])))) : '';[/code:1:9d4fb5ed01] # #-----[ FIND 尋找 ]------------------------------------------------ #285 列 [code:1:9d4fb5ed01]$location = htmlspecialchars(stripslashes($location)); $occupation = htmlspecialchars(stripslashes($occupation)); $interests = htmlspecialchars(stripslashes($interests)); $signature = htmlspecialchars(stripslashes($signature));[/code:1:9d4fb5ed01] # #-----[ REPLACE WITH 替換 ]---------------------------------------- # [code:1:9d4fb5ed01]$location = ereg_replace("&","&",htmlspecialchars(stripslashes($location))); $occupation = ereg_replace("&","&",htmlspecialchars(stripslashes($occupation))); $interests = ereg_replace("&","&",htmlspecialchars(stripslashes($interests))); $signature = ereg_replace("&","&",htmlspecialchars(stripslashes($signature)));[/code:1:9d4fb5ed01] # #-----[ FIND 尋找 ]------------------------------------------------ #708 列 [code:1:9d4fb5ed01]$username = htmlspecialchars(stripslashes($username));[/code:1:9d4fb5ed01] # #-----[ REPLACE WITH 替換 ]---------------------------------------- # [code:1:9d4fb5ed01]$username = ereg_replace("&","&",htmlspecialchars(stripslashes($username)));[/code:1:9d4fb5ed01] # #-----[ FIND 尋找 ]------------------------------------------------ # [code:1:9d4fb5ed01]$location = htmlspecialchars(stripslashes($location)); $occupation = htmlspecialchars(stripslashes($occupation)); $interests = htmlspecialchars(stripslashes($interests)); $signature = htmlspecialchars(stripslashes($signature));[/code:1:9d4fb5ed01] # #-----[ REPLACE WITH 替換 ]---------------------------------------- #719 列 [code:1:9d4fb5ed01]$location = ereg_replace("&","&",htmlspecialchars(stripslashes($location))); $occupation = ereg_replace("&","&",htmlspecialchars(stripslashes($occupation))); $interests = ereg_replace("&","&",htmlspecialchars(stripslashes($interests))); $signature = ereg_replace("&","&",htmlspecialchars(stripslashes($signature)));[/code:1:9d4fb5ed01] # #-----[ FIND 尋找 ]------------------------------------------------ #741 列 [code:1:9d4fb5ed01]$location = htmlspecialchars($this_userdata['user_from']); $occupation = htmlspecialchars($this_userdata['user_occ']); $interests = htmlspecialchars($this_userdata['user_interests']);[/code:1:9d4fb5ed01] # #-----[ REPLACE WITH 替換 ]---------------------------------------- # 從管理控制台編輯會員資料時,來自、 職業、 興趣三個欄位的多國文字顯示問題 # [code:1:9d4fb5ed01] $location = ereg_replace("&","&",htmlspecialchars($this_userdata['user_from'])); $occupation = ereg_replace("&","&",htmlspecialchars($this_userdata['user_occ'])); $interests = ereg_replace("&","&",htmlspecialchars($this_userdata['user_interests']));[/code:1:9d4fb5ed01] # #-----[ OPEN 打開 ]------------------------------------------------ # includes/functions.php # #-----[ FIND 尋找 ]------------------------------------------------ # (2.0.11 起新產生的問題) [code:1:9d4fb5ed01]$username = htmlspecialchars(rtrim(trim($username), "\\\"));[/code:1:9d4fb5ed01] # #-----[ REPLACE WITH 替換 ]---------------------------------------- # [code:1:9d4fb5ed01]$username = ereg_replace("&","&",htmlspecialchars(trim(trim($username), "\\\")));[/code:1:9d4fb5ed01] # #-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]------------------- # # EoM 外掛修正結束')
Line : 302
File : /var/www/html/phpBB208a/includes/functions_post.php忘了貼網址
最後由 sh85216s 於 2004-11-26 08:51 編輯,總共編輯了 1 次。
架設主機︰Fedora Core 5
上網方式:Hinet ADSL (2M/512K)
安裝程式:Apache + php + MySql
phpBB2 版本: phpBB 2.0.21
phpBB2 連結網址: 小站
上網方式:Hinet ADSL (2M/512K)
安裝程式:Apache + php + MySql
phpBB2 版本: phpBB 2.0.21
phpBB2 連結網址: 小站

