代碼: 選擇全部
Parse error: parse error in /home/gamesociety/public_html/forum/includes/usercp_viewprofile.php on line 271我也不知道是何時開始有此錯誤…不過照推算,應該是裝了「HP_MP_EXP_V2_120」後開始發生的:
性別外掛 gender_1.2.6em
HP_MP_EXP_V2_120
我的論壇位址:http://gamesociety.colota.com/forum
以下是我從「usercp_viewprofile.php」此檔案中找出來最後一段那些code,因為錯誤訊息說是在271行嘛~所以我找一些相關的都找出來…應該不是錯在哪些「,」吧?我已看過了…希望有大大可以幫我看一眼呢~先謝,謝謝!!^^
代碼: 選擇全部
'LOCATION' => ( $profiledata['user_from'] ) ? $profiledata['user_from'] : ' ',
'OCCUPATION' => ( $profiledata['user_occ'] ) ? $profiledata['user_occ'] : ' ',
'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',
// Start add - Gender MOD
'GENDER' => $gender,
// End add - Gender MOD
'AVATAR_IMG' => $avatar_img,
'L_VIEWING_PROFILE' => sprintf($lang['Viewing_user_profile'], $profiledata['username']),
'L_ABOUT_USER' => sprintf($lang['About_user'], $profiledata['username']),
'L_AVATAR' => $lang['Avatar'],
'L_POSTER_RANK' => $lang['Poster_rank'],
'L_JOINED' => $lang['Joined'],
'L_TOTAL_POSTS' => $lang['Total_posts'],
'L_SEARCH_USER_POSTS' => sprintf($lang['Search_user_posts'], $profiledata['username']),
'L_CONTACT' => $lang['Contact'],
'L_EMAIL_ADDRESS' => $lang['Email_address'],
'L_EMAIL' => $lang['Email'],
'L_PM' => $lang['Private_Message'],
'L_ICQ_NUMBER' => $lang['ICQ'],
'L_YAHOO' => $lang['YIM'],
'L_AIM' => $lang['AIM'],
'L_MESSENGER' => $lang['MSNM'],
'L_WEBSITE' => $lang['Website'],
'L_LOCATION' => $lang['Location'],
'L_OCCUPATION' => $lang['Occupation'],
'L_INTERESTS' => $lang['Interests'],
// Start add - Gender MOD
'L_GENDER' => $lang['Gender'],
// End add - Gender MOD
'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . $u_search_author),
'S_PROFILE_ACTION' => append_sid("profile.$phpEx"),
/* BEGIN LEVEL MOD */
'HP' => $level_hp,
'HP_WIDTH' => $level_hp_percent,
'HP_EMPTY' => ( 100 - $level_hp_percent ),
'MP' => $level_mp,
'MP_WIDTH' => $level_mp_percent,
'MP_EMPTY' => ( 100 - $level_mp_percent ),
'EXP' => $level_exp,
'EXP_WIDTH' => $level_exp_percent,
'EXP_EMPTY' => ( 100 - $level_exp_percent ),
'LEVEL' => $level_level,
'LEVEL_CLASSNAME' => $level_classname,
'LEVEL_SKILLRATIO' => $level_skillratio,
'LEVEL_CLASSIMG' => $level_classimg,
'LEVEL_ELEMENT' => $element,
/* END LEVEL MOD */
270 );
271
272 $cm_viewprofile->post_vars($template,$profiledata,$userdata);
273 $template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>

