代碼: 選擇全部
#-----[ 打開 ]------------------------------------------
#
./viewtopic.php
#
#-----[ 尋找 ]------------------------------------------
#
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ 之後, 增加 ]------------------------------------------
#
include($phpbb_root_path . 'includes/level_mod.'.$phpEx); //added for Level Mod (Mac)
#
#-----[ 尋找 ]------------------------------------------
#
'L_MINI_POST_ALT' => $mini_post_alt,
#
#-----[ 之後, 增加 ]------------------------------------------
#
/* BEGIN LEVEL MOD */
"POSTER_HP" => $level_hp,
"POSTER_HP_WIDTH" => $level_hp_percent,
"POSTER_HP_EMPTY" => ( 100 - $level_hp_percent ),
"POSTER_MP" => $level_mp,
"POSTER_MP_WIDTH" => $level_mp_percent,
"POSTER_MP_EMPTY" => ( 100 - $level_mp_percent ),
"POSTER_EXP" => $level_exp,
"POSTER_EXP_WIDTH" => $level_exp_percent,
"POSTER_EXP_EMPTY" => ( 100 - $level_exp_percent ),
"POSTER_LEVEL" => $level_level,
"POSTER_LEVEL_CLASSNAME" => $level_classname,
"POSTER_LEVEL_SKILLRATIO" => $level_skillratio,
"POSTER_LEVEL_CLASSIMG" => $level_classimg,
"POSTER_LEVEL_ELEMENT" => $element,
/* END LEVEL MOD */
#
#-----[ 打開 ]------------------------------------------
#
./templates/YOUR_TEMPLATE_NAME/viewtopic_body.tpl
#
#-----[ 尋找 ]------------------------------------------
#
{postrow.POSTER_FROM}</span><br />
#
#-----[ 之後, 增加 ]------------------------------------------
#
<!-- [BEGIN LEVEL MOD] -->
<br />
<span class="postdetails">Level/Skill Ratio: <strong><font color=red>{postrow.POSTER_LEVEL}</font>/<font color=red>{postrow.POSTER_LEVEL_SKILLRATIO}</font></strong><br />Class: {postrow.POSTER_LEVEL_CLASSNAME}<br /><img src="{postrow.POSTER_LEVEL_CLASSIMG}" alt="{postrow.POSTER_LEVEL_CLASSNAME}" title="{postrow.POSTER_LEVEL_CLASSNAME}" border="0" /><br />Element: {postrow.POSTER_LEVEL_ELEMENT}<br />
<table width="143" border="0" cellpadding="0" cellspacing="0" style="background-image:url(templates/subSilver/images/level_mod/lm_bkg.gif)">
<tr>
<td><img src="images/spacer.gif" alt="" width="31" height="49" /></td>
<td width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/spacer.gif" alt="" width="20" height="6" /></td>
</tr>
<tr>
<td><img src="templates/subSilver/images/level_mod/lm_hp_bar.gif" alt="{postrow.POSTER_HP}" title="{postrow.POSTER_HP}" width="{postrow.POSTER_HP_WIDTH}" height="9" /><img src="templates/subSilver/images/level_mod/lm_hp_bar_end.gif" alt="" width="4" height="9" /></td>
</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="20" height="4" /></td>
</tr>
<tr>
<td><img src="templates/subSilver/images/level_mod/lm_mp_bar.gif" alt="{postrow.POSTER_MP}" title="{postrow.POSTER_MP}" width="{postrow.POSTER_MP_WIDTH}" height="9" /><img src="templates/subSilver/images/level_mod/lm_mp_bar_end.gif" alt="" width="4" height="9" /></td>
\n</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="20" height="4" /></td>
</tr>
<tr>
<td><img src="templates/subSilver/images/level_mod/lm_exp_bar.gif" alt="{postrow.POSTER_EXP}" title="{postrow.POSTER_EXP}" width="{postrow.POSTER_EXP_WIDTH}" height="9" /><img src="templates/subSilver/images/level_mod/lm_exp_bar_end.gif" alt="" width="4" height="9" /></td>
</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="20" height="8" /></td>
</tr>
</table>
</td>
</tr>
</table>
</span>
<!-- [END LEVEL MOD] -->
#
改了的如下(部分沒改的deleted):1152行開始
代碼: 選擇全部
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
include($phpbb_root_path . 'includes/level_mod.'.$phpEx); //added for Level Mod (Mac)
$template->assign_block_vars('postrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'POSTER_NAME' => $poster,
'POSTER_RANK' => $poster_rank,
'RANK_IMAGE' => $rank_image,
'POSTER_JOINED' => $poster_joined,
'POSTER_POSTS' => $poster_posts,
'POSTER_FROM' => $poster_from,
'POSTER_AVATAR' => $poster_avatar,
'POST_DATE' => $post_date,
'POST_SUBJECT' => $post_subject,
'MESSAGE' => $message,
'SIGNATURE' => $user_sig,
'EDITED_MESSAGE' => $l_edited_by,
'MINI_POST_IMG' => $mini_post_img,
'PROFILE_IMG' => $profile_img,
'PROFILE' => $profile,
'SEARCH_IMG' => $search_img,
'SEARCH' => $search,
'PM_IMG' => $pm_img,
\n 'PM' => $pm,
'EMAIL_IMG' => $email_img,
'EMAIL' => $email,
'WWW_IMG' => $www_img,
'WWW' => $www,
'ICQ_STATUS_IMG' => $icq_status_img,
'ICQ_IMG' => $icq_img,
'ICQ' => $icq,
'AIM_IMG' => $aim_img,
'AIM' => $aim,
'MSN_IMG' => $msn_img,
'MSN' => $msn,
'YIM_IMG' => $yim_img,
'YIM' => $yim,
'EDIT_IMG' => $edit_img,
'EDIT' => $edit,
'QUOTE_IMG' => $quote_img,
'QUOTE' => $quote,
'IP_IMG' => $ip_img,
'IP' => $ip,
'DELETE_IMG' => $delpost_img,
'DELETE' => $delpost,
'L_MINI_POST_ALT' => $mini_post_alt,
/* BEGIN LEVEL MOD */
"POSTER_HP" => $level_hp,
"POSTER_HP_WIDTH" => $level_hp_percent,
"POSTER_HP_EMPTY" => ( 100 - $level_hp_percent ),
"POSTER_MP" => $level_mp,
"POSTER_MP_WIDTH" => $level_mp_percent,
"POSTER_MP_EMPTY" => ( 100 - $level_mp_percent ),
"POSTER_EXP" => $level_exp,
"POSTER_EXP_WIDTH" => $level_exp_percent,
"POSTER_EXP_EMPTY" => ( 100 - $level_exp_percent ),
"POSTER_LEVEL" => $level_level,
"POSTER_LEVEL_CLASSNAME" => $level_classname,
"POSTER_LEVEL_SKILLRATIO" => $level_skillratio,
"POSTER_LEVEL_CLASSIMG" => $level_classimg,
"POSTER_LEVEL_ELEMENT" => $element,
/* END LEVEL MOD */