[問題] 性別外掛問題(已順利解決^^)
發表於 : 2005-09-24 03:26
●架設主機作業系統:WindowsXP
●快速架站程式:Appserv 2.3.0
●您的上網方式:ADSL
●您安裝的程式:Apache + php + MySql
●您的 phpBB2 版本:phpBB2.0.17
●錯誤代碼:請使用 BBcode 標籤將錯誤代碼標註,範例如下(這是為了避免語法衝突):
●問題外掛:性別外掛
●參考連結:http://phpbb-tw.net/phpbb/viewtopic.php?t=14574
●網站位置:http://fuamosa.sytes.net/phpbb2/index.php
●補充以裝外掛:1.跑馬燈 2.禁止發言
●狀況描述:
-------------------------------------------------------------------------------------
裝了性別的外掛..完全都有照著步驟一步一步來,但是裝完後卻在討論版出現
-------------------------------------------------------------------------------------
一般錯誤
Could not update users table
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 ' user_gender = 1, '1', user_active = 1, user_actkey = '', user_
UPDATE phpbb_users SET user_email = 'iong824@hotmail.com', user_icq = '', user_website = '', user_occ = '', user_from = '', user_interests = '', user_sig = '', user_sig_bbcode_uid = '', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = '', user_attachsig = 0, user_allowsmile = 1, user_allowhtml = 0, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 0, user_notify_pm = 1, user_popup_pm = 1, user_timezone = 0, user_dateformat = 'd M Y h:i a', user_lang = 'chinese_traditional_taiwan', user_style, user_gender = 1, '1', user_active = 1, user_actkey = '', user_gender=1 WHERE user_id = 2
Line : 524
File : usercp_register.php
-------------------------------------------------------------------------------------
然後所有的討論版都進不去QQ......都會出現
Parse error: parse error, unexpected T_ELSE in c:\appserv\www\phpbb2\viewtopic.php on line 971
--------------------------------------------------------------------------------------
該如何解決比較好QQ
我的討論版網址: http://fuamosa.sytes.net/phpbb2/index.php
--------------------------------------------------------------------------------------
viewtopic.php裡的971內容
●快速架站程式:Appserv 2.3.0
●您的上網方式:ADSL
●您安裝的程式:Apache + php + MySql
●您的 phpBB2 版本:phpBB2.0.17
●錯誤代碼:請使用 BBcode 標籤將錯誤代碼標註,範例如下(這是為了避免語法衝突):
●問題外掛:性別外掛
●參考連結:http://phpbb-tw.net/phpbb/viewtopic.php?t=14574
●網站位置:http://fuamosa.sytes.net/phpbb2/index.php
●補充以裝外掛:1.跑馬燈 2.禁止發言
●狀況描述:
-------------------------------------------------------------------------------------
裝了性別的外掛..完全都有照著步驟一步一步來,但是裝完後卻在討論版出現
-------------------------------------------------------------------------------------
一般錯誤
Could not update users table
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 ' user_gender = 1, '1', user_active = 1, user_actkey = '', user_
UPDATE phpbb_users SET user_email = 'iong824@hotmail.com', user_icq = '', user_website = '', user_occ = '', user_from = '', user_interests = '', user_sig = '', user_sig_bbcode_uid = '', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = '', user_attachsig = 0, user_allowsmile = 1, user_allowhtml = 0, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 0, user_notify_pm = 1, user_popup_pm = 1, user_timezone = 0, user_dateformat = 'd M Y h:i a', user_lang = 'chinese_traditional_taiwan', user_style, user_gender = 1, '1', user_active = 1, user_actkey = '', user_gender=1 WHERE user_id = 2
Line : 524
File : usercp_register.php
-------------------------------------------------------------------------------------
然後所有的討論版都進不去QQ......都會出現
Parse error: parse error, unexpected T_ELSE in c:\appserv\www\phpbb2\viewtopic.php on line 971
--------------------------------------------------------------------------------------
該如何解決比較好QQ
我的討論版網址: http://fuamosa.sytes.net/phpbb2/index.php
--------------------------------------------------------------------------------------
viewtopic.php裡的971內容
Arioo 寫:
$msn = ( $postrow[$i]['user_msnm'] ) ? '<a
970->href="' . $temp_url . '">' . $lang['MSNM'] . '</a>' : '';
971->
972-> $yim_img = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
$yim = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&.src=pg">' . $lang['YIM'] . '</a>' : '';
}
else
{
$profile_img = '';
$profile = '';
$pm_img = '';
$pm = '';
$email_img = '';
$email = '';
$www_img = '';
$www = '';
$icq_status_img = '';
$icq_img = '';
$icq = '';
$aim_img = '';
