Board Greeting 歡迎登陸 MOD

phpBB 大部分皆是由竹貓星球提供資料!
頭像
懸壺子
系統管理員
系統管理員
主題中的帖子: 1
文章: 33489
註冊時間: 2001-10-05 , 10:10
個人狀態: 道骨學習佛心..^^..
貼心留言: 氣候不穩
性別: 公仔
來自: 黃金故鄉
聯繫:

Board Greeting 歡迎登陸 MOD

未閱讀文章 懸壺子 »

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 --> 

# 
#  

當然上述的中文詞句可你按照你想要的詞句而修改。
版面鎖定 主題已鎖定

回到「phpBB2」