1 頁 (共 1 頁)

[問題]個人資料顯示RPG

發表於 : 2004-02-26 21:44
小花兒
參考..http://phpbb-tw.net/phpbb/viewtopic.php?t=20666
裝完後點會員資料去看出現..

Parse error: parse error, unexpected T_STRING, expecting ')' in d:\appserv\www\includes\usercp_viewprofile.php on line 269

因為只改二個檔...
我很確定沒有貼錯地方,而且也重貼二次了...

謝謝大大囉...

發表於 : 2004-02-26 23:21
shihchieh
請把那幾行貼出來吧,不然大家也是束手無策~

發表於 : 2004-02-27 02:21
小花兒
includes/usercp_viewprofile.php

就在$msn = $msn_img;底下加:

代碼: 選擇全部

$aim_img = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $images['icon_aim'] . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" border="0" /></a>' : ' ';
$aim = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?">' . $lang['AIM'] . '</a>' : ' ';

$msn_img = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : ' ';
$msn = $msn_img;
//ViewRPGinfo in viewprofile by MasasiOnituka 
$rpg_medals = $profiledata['rpg_medals']; 
$rpg_level = $profiledata['rpg_level']; 
$rpg_cur_hp = $profiledata['rpg_cur_hp']; 
$rpg_max_hp = $profiledata['rpg_max_hp']; 
$rpg_cur_mp = $profiledata['rpg_cur_mp']; 
$rpg_max_mp = $profiledata['rpg_max_mp']; 
$rpg_cur_exp = $profiledata['rpg_cur_exp']; 
$rpg_max_exp = $profiledata['rpg_max_exp']; 
$rpg_attack = $profiledata['rpg_attack']; 
$rpg_defense = $profiledata['rpg_defense']; 
$rpg_magic = $profiledata['rpg_magic']; 
$rpg_speed = $profiledata['rpg_speed']; 
//ViewRPGinfo in viewprofile by MasasiOnituka 

$yim_img = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
\r
及在'YIM' => $yim,底下加

代碼: 選擇全部

'YIM_IMG' => $yim_img,
	'YIM' => $yim,
//ViewRPGinfo in viewprofile by MasasiOnituka 
     //Language 
   'L_RPG_MEDALS' => '執照', 
   'L_RPG_LEVEL' => '等級', 
   'L_RPG_HP' => 'HP', 
   'L_RPG_MP' => 'MP', 
   'L_RPG_EXP' => '經驗', 
   'L_RPG_ATTACK' => '攻擊, 
   'L_RPG_DEFENSE' => '防禦', 
   'L_RPG_MAGIC' => '魔力', 
   'L_RPG_SPEED' => '速度', 
     //ViewRPGinfo in viewprofile by MasasiOnituka 
   'RPG_MEDALS' => $rpg_medals, 
   'RPG_LEVEL' => $rpg_level, 
   'RPG_HP' => $rpg_cur_hp . "/" . $rpg_max_hp , 
就出現錯誤了..

Parse error: parse error, unexpected T_STRING, expecting ')' in d:\appserv\www\includes\usercp_viewprofile.php on line 269

發表於 : 2004-02-27 02:29
Mac
這邊呢:

代碼: 選擇全部

 'L_RPG_ATTACK' => '攻擊, 
應該是:

代碼: 選擇全部

'L_RPG_ATTACK' => '攻擊', 
~Mac

發表於 : 2004-02-27 15:10
小花兒
:-P
謝謝大大喔..