[問題]Advanced_Hide_Post

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
Raymond690
星球公民
星球公民
文章: 37
註冊時間: 2004-07-01 15:24

[問題]Advanced_Hide_Post

文章 Raymond690 »

我setup了後可以發表文章...但左下角會說網頁發生錯誤><....而所有功能(如quote,code等等)都用唔到><
●架設主機作業系統:XP
●快速架站程式:Appserv
●您的上網方式:香港區網netvigator
●您安裝的程式:Apache + php + MySql
●您的 phpBB2 版本:phpBB 2.0.10
●您的 phpBB2 連結網址:http://friendlyforever.no-ip.org:8080/phpbb/
Raymond690
星球公民
星球公民
文章: 37
註冊時間: 2004-07-01 15:24

文章 Raymond690 »

我把我setup前備份了的phpbb file還原便沒有事了~但再把我setup後的phpbb file貼上去又有問題了><
●架設主機作業系統:XP
●快速架站程式:Appserv
●您的上網方式:香港區網netvigator
●您安裝的程式:Apache + php + MySql
●您的 phpBB2 版本:phpBB 2.0.10
●您的 phpBB2 連結網址:http://friendlyforever.no-ip.org:8080/phpbb/
Raymond690
星球公民
星球公民
文章: 37
註冊時間: 2004-07-01 15:24

文章 Raymond690 »

唉~我setup多次了.......今次進了少少><當我發表文章要送出時,,,,,,,,一按送出就會:
Error in posting

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1

INSERT INTO phpbb_posts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, hiding_type, hiding_condition_value, hiding_cash_id) VALUES (49, 2, 2, '', 1092849460, 'cbdae283', 1, 0, 1, 0, 0, 0, )

Line : 271
File : d:\appserv\www\phpbb\includes\functions_post.php

我的fuctions_post.php line 266-276:
266
$edited_sql = ($mode == 'editpost' && !$post_data['last_post'] && $post_data['poster_post']) ? ", post_edit_time = $current_time, post_edit_count = post_edit_count + 1 " : "";267
$sql = ($mode != "editpost") ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, hiding_type, hiding_condition_value, hiding_cash_id) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '$user_ip', $bbcode_on, $html_on, $smilies_on, $attach_sig, $hiding_type, $hiding_value, $hiding_cash_id)" : "UPDATE " . POSTS_TABLE . " SET post_username = '$post_username', enable_bbcode = $bbcode_on, enable_html = $html_on, enable_smilies = $smilies_on, enable_sig = $attach_sig, hiding_type = $hiding_type, hiding_condition_value=$hiding_value, hiding_cash_id=$hiding_cash_id" . $edited_sql . " WHERE post_id = $post_id";268
if (!$db->sql_query($sql, BEGIN_TRANSACTION))269
{270
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);271
}272
273
if ($mode != 'editpost')274
{275
$post_id = $db->sql_nextid();276
●架設主機作業系統:XP
●快速架站程式:Appserv
●您的上網方式:香港區網netvigator
●您安裝的程式:Apache + php + MySql
●您的 phpBB2 版本:phpBB 2.0.10
●您的 phpBB2 連結網址:http://friendlyforever.no-ip.org:8080/phpbb/
Raymond690
星球公民
星球公民
文章: 37
註冊時間: 2004-07-01 15:24

文章 Raymond690 »

我只裝一開始那個Advanced Hide Post是沒有事的.........但一裝上[修正昇級]進階隱藏 for CashMod2 1.0.4便會這樣了><
●架設主機作業系統:XP
●快速架站程式:Appserv
●您的上網方式:香港區網netvigator
●您安裝的程式:Apache + php + MySql
●您的 phpBB2 版本:phpBB 2.0.10
●您的 phpBB2 連結網址:http://friendlyforever.no-ip.org:8080/phpbb/
頭像
不滅之火
星球公民
星球公民
文章: 54
註冊時間: 2003-05-08 17:33
來自: 澳門

文章 不滅之火 »

Raymond690 寫:唉~我setup多次了.......今次進了少少><當我發表文章要送出時,,,,,,,,一按送出就會:
Error in posting

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1

INSERT INTO phpbb_posts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, hiding_type, hiding_condition_value, hiding_cash_id) VALUES (49, 2, 2, '', 1092849460, 'cbdae283', 1, 0, 1, 0, 0, 0, )

Line : 271
File : d:\appserv\www\phpbb\includes\functions_post.php

我的fuctions_post.php line 266-276:
266
$edited_sql = ($mode == 'editpost' && !$post_data['last_post'] && $post_data['poster_post']) ? ", post_edit_time = $current_time, post_edit_count = post_edit_count + 1 " : "";267
$sql = ($mode != "editpost") ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, hiding_type, hiding_condition_value, hiding_cash_id) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '$user_ip', $bbcode_on, $html_on, $smilies_on, $attach_sig, $hiding_type, $hiding_value, $hiding_cash_id)" : "UPDATE " . POSTS_TABLE . " SET post_username = '$post_username', enable_bbcode = $bbcode_on, enable_html = $html_on, enable_smilies = $smilies_on, enable_sig = $attach_sig, hiding_type = $hiding_type, hiding_condition_value=$hiding_value, hiding_cash_id=$hiding_cash_id" . $edited_sql . " WHERE post_id = $post_id";268
if (!$db->sql_query($sql, BEGIN_TRANSACTION))269
{270
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);271
}272
273
if ($mode != 'editpost')274
{275
$post_id = $db->sql_nextid();276
我也有這樣的問題。
messagebox
竹貓忠實會員
竹貓忠實會員
文章: 981
註冊時間: 2003-02-24 23:34

文章 messagebox »

SQL語法錯誤~
INSERT INTO phpbb_posts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, hiding_type, hiding_condition_value, hiding_cash_id) VALUES (49, 2, 2, '', 1092849460, 'cbdae283', 1, 0, 1, 0, 0, 0, )
VALUE最後一項應為一個整數\r
不應該沒有任何東西~
如果為空~應為NULL或""

因為沒附上外掛網址~所以請自己判斷錯在哪~
主題已鎖定

回到「外掛問題討論」