To 澀男人:
以下的修改, 提供您參考:
#
#-----[ OPEN ]-----
#
privmsg.php
#
#-----[ FIND ]-----
#
代碼: 選擇全部
$template->assign_block_vars('switch_privmsg', array());
#
#-----[ REPLACE WITH ]-----
#
代碼: 選擇全部
if ( $userdata['user_level'] == ADMIN )
{
$template->assign_block_vars('switch_level_privmsg', array());
}
else
{
$template->assign_block_vars('switch_privmsg', array());
}
#
#-----[ OPEN ]-----
#
templates/YOUR_THEME/posting_body.tpl
#
#-----[ FIND ]-----
#
代碼: 選擇全部
<!-- BEGIN switch_privmsg -->
<tr>
<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
<td class="row2"><span class="genmed"><input type="text" class="post" name="username" maxlength="25" size="25" tabindex="1" value="{USERNAME}" /> <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></span></td>
</tr>
<!-- END switch_privmsg -->
#
#-----[ REPLACE WITH ]-----
#
代碼: 選擇全部
<!-- BEGIN switch_privmsg -->
<tr>
<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
<td class="row2"><span class="genmed"><input type="text" class="post" name="username" maxlength="25" size="25" tabindex="1" value="{USERNAME}" /></span></td>
</tr>
<!-- END switch_privmsg -->
<!-- BEGIN switch_level_privmsg -->
<tr>
<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
<td class="row2"><span class="genmed"><input type="text" class="post" name="username" maxlength="25" size="25" tabindex="1" value="{USERNAME}" /> <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></span></td>
</tr>
<!-- END switch_level_privmsg -->
#
#-----[ SAVE & CLOSE ]-----
#
若要版面管理員也可以看到的話\r
那麼只要將
代碼: 選擇全部
if ( $userdata['user_level'] == ADMIN )
取代成
代碼: 選擇全部
if ( $userdata['user_level'] > 0 )
ps.
1. 記得補齊"
發問格式":
http://phpbb-tw.net/phpbb/viewtopic.php?t=15329
2. 移動到" phpbb 使用問答區" 版面.