1 頁 (共 1 頁)

Board Greeting 歡迎登陸 MOD

發表於 : 2006-11-22 , 22:34
懸壺子
Board Greeting 歡迎登陸 MOD


http://phpbb.web4chinese.com/forum/viewtopic.php?t=129

連線:http://www.phpbbhacks.com/download/5440
下載:http://www.phpbbhacks.com/


這個外掛在會員登陸後會顯示 “歡迎 [會員標簽] 來到 [論壇標簽]” 之類的歡迎詞。

代碼: 選擇全部

  
######################################################## 
## MOD Title: Personal Board Greeting MOD 
## MOD Author: Brandon < thei2k@gmail.com > (Brandon) http://www.thei2k.net 
## MOD Description: This will display a personal greeting to your board 
## MOD Version: 1.0.0 
## 
## Installation Level:   Easy 
## Installation Time:   1 Minute (30 Seconds with easymod) 
## 
## Files To Edit:   2 
##   includes/page_header.php 
##   templates/subSilver/overall_header.tpl 
## 
## Included Files:    None 
## 
############################################################## 
## Author Notes: 
##          This mod will give you a person 
## 
##    
## 
############################################################## 
##    Version 1.0.0 ( 8/12/05 ) 
## 
## 
## 
## 
##    Version 0.0.1 ( 7/12/05 ) 
##    First public release 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/page_header.php 

# 
#-----[ FIND ]------------------------------------------ 
# 

// 
// Obtain number of new private messages 
// if user is logged in 
// 

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

// 
// Start Greeting MOD 
// 

if ($userdata['user_id'] != ANONYMOUS) 
{ 
$template->assign_block_vars('point', array( 
                'USERNAME' => $userdata['username'], 
                'NAME' => ($board_config['points_name']) ? $board_config['points_name'] : 'coins', 
                'POINTS' => $userdata['user_points']) 
); 
} 

// 
// End Greeting MOD 
// 


# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/overall_header.tpl 
# 
#-----[ FIND ]------------------------------------------ 
# 
# 

      <br /> 

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

<!-- BEGIN point --> 
          <p align="center"> 
<span class="genmed">Welcome {point.USERNAME}, To {SITENAME} Enjoy your stay </span> 
</p> 
<!-- END point --> 

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 

# EoM 


中文翻譯部分 

代碼:  
# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/overall_header.tpl 
# 
#-----[ FIND ]------------------------------------------ 
# 
# 

      <br /> 

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

<!-- BEGIN point --> 
          <p align="center"> 
<span class="genmed">歡迎 {point.USERNAME}, 來到 {SITENAME} 並希望你滿載而歸! </span> 
</p> 
<!-- END point --> 

# 
#  

當然上述的中文詞句可你按照你想要的詞句而修改。