參考範例..Link to User Admin in View Profile (會員管理連結)
將一部分的安裝碼給簡化了,應該不會影響功能!
代碼: 選擇全部
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
$page_title = $lang['Viewing_profile'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// The member jurisdiction management links
if( $userdata['user_level'] == ADMIN )
{
$template->assign_block_vars("switch_user_auth", array());
$template->assign_vars(array(
'L_USER_AUTH' => $lang['User_auth'],
'U_AUTH' => append_sid("admin/admin_ug_auth.$phpEx?mode=user&u=" . $profiledata['user_id']))
);
}
#
#-----[ OPEN ]------------------------------------------
#
templates/fiapple/profile_view_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="catLeft" width="60%" align="center"><b><span class="gen">{L_ABOUT_USER}</span></b>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<span class="gen"> <a target="_admin" href="{U_AUTH}" class="gen">{L_USER_AUTH}</a></span></td>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="catRight" width="60%"><b><span class="gen">{L_ABOUT_USER}</span></b>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<span class="gen"><a href="{U_AUTH}" target="_autn">{L_USER_AUTH}</a>
</span></td>
#
#-----[ OPEN ]------------------------------------------
#
languages/lang_chinese_traditional_taiwan/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['About_user'] = '關於 %s'; // %s is username
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['User_auth'] = " %s的權限控制"; // The member jurisdiction management links
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
竹貓星球
http://www.animestationun.com/phpbb2/
http://www.animestationun.com/phpbb2/viewtopic.php?t=69