代碼: 選擇全部
###################################################################################
##
## 外掛名稱: Signature in Profile
## 外掛版本: 1.0.0
## 外掛作者: Rebellion < final.dante@msa.hinet.net > http://www.starryhometown.com/Starry_Forum/index.htm
##
## 外掛描述: 簽名檔顯示於會員個人公開資料頁面
## 會依照論壇和個人資料的設定是否顯示
## 如果簽名檔沒有輸入內容,也不會顯示出簽名檔的欄位
##
## 安裝難度: 簡單
## 安裝時間: 1 分鐘
##
## 需要編輯的檔案: 2
## includes/usercp_viewprofile.php
## templates/{YOUR_THEME}/profile_view_body.tpl
##############################################################
## 作者留言:
## 個人資料中的"在文章內附加個性簽名"的設定值將決定是否在個人公開資料頁面顯示簽名檔內容
##
## 如果你想在"關於 會員名稱"的欄位中顯示簽名檔內容
## 你必須使用在 EXTRA 中的安裝指示. 請勿使用以下的安裝指示!
## 你只能選其中一種的顯示方式.
##
##############################################################
## 版本歷史:
## 2004-02-19 - 版本 1.0.0
## - 首次發佈
##
###################################################################################
## 在增加此外掛前, 請務必備份所有需要修改的檔案
###################################################################################
#
#-----[ 打開 ]------------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ 尋找 ]------------------------------------------------
#
$search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';
#
#-----[ 之後, 加上 ]------------------------------------------
#
// View Profile Sig BEGIN
$user_sig = '';
if ( $board_config['allow_sig'] )
{
if ( $profiledata['user_attachsig'] )
{
include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx);
$user_sig = ( $profiledata['user_sig'] != '' ) ? $profiledata['user_sig'] : '';
$user_sig_bbcode_uid = $profiledata['user_sig_bbcode_uid'];
if ( $board_config['allow_bbcode'] )
{
if ( $user_sig != '' && $user_sig_bbcode_uid != '' )
{
$user_sig = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_sig);
}
}
if ( $user_sig != '' )
{
$user_sig = make_clickable($user_sig);
}
if ( $board_config['allow_smilies'] )
{
if ( $profiledata['user_allowsmile'] && $user_sig != '' )
{
$user_sig = smilies_pass($user_sig);
}
}
if ( $user_sig != '' )
{
$user_sig = str_replace("\n", "\n<br />\n", $user_sig);
$template->assign_block_vars('switch_user_sig_block', array(
'USER_SIG' => $user_sig,
'L_SIGNATURE' => $lang['Signature'])
);
}
}
}
// View Profile Sig END
#
#-----[ 打開 ]------------------------------------------------
#
templates/subSilver/profile_view_body.tpl
#
#-----[ 尋找 ]------------------------------------------------
#
//--></script><noscript>{ICQ_IMG}</noscript></td>
</tr>
</table>
</td>
#
#-----[ 之後, 加上 ]------------------------------------------
#
<!-- BEGIN switch_user_sig_block -->
<tr>
<td colspan="2" class="catLeft" align="center" height="28"><b><span class="gen">{switch_user_sig_block.L_SIGNATURE} </span></b></td>
</tr>
<tr>
<td colspan="2" class="row1"><span class="genmed">{switch_user_sig_block.USER_SIG}</span></td>
</tr>
<!-- END switch_user_sig_block -->
#
#-----[ 儲存/關閉所有檔案 ]-----------------------------------
#
# 外掛修正結束