[強化] 會員個人資料頁面顯示發表主題數及回覆數

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

[強化] 會員個人資料頁面顯示發表主題數及回覆數

未閱讀文章 懸壺子 »

[強化] 會員個人資料頁面顯示發表主題數及回覆數
原文章網址:
http://phpbb-tw.net/phpbb/viewtopic.php?p=134403#134403

代碼: 選擇全部

# 
#-----[ OPEN 打開 ]------------------------------------------------ 
# 
代碼:
includes/usercp_viewprofile.php

# 
#-----[ FIND 尋找 ]------------------------------------------------ 
# 
代碼:
$posts_per_day = $profiledata['user_posts'] / $memberdays;

# 
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------ 
# 
代碼:
$sql = "SELECT topic_id 
   FROM " . TOPICS_TABLE . " 
   WHERE topic_poster=" . $HTTP_GET_VARS[POST_USERS_URL]; 
$result = $db->sql_query($sql); 

$posts_topics = mysql_num_rows($result); 
$posts_replys = $profiledata['user_posts'] - $posts_topics; 
$db->sql_freeresult($result);

# 
#-----[ FIND 尋找 ]------------------------------------------------ 
# 
代碼:
   'POSTS' => $profiledata['user_posts'],

# 
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------ 
# 
代碼:
   'POSTS_TOPICS' => sprintf($lang['Posts_topics'], $posts_topics), 
   'POSTS_REPLYS' => sprintf($lang['Posts_replys'], $posts_replys),

# 
#-----[ OPEN 打開 ]------------------------------------------------ 
# 
代碼:
templates/subSilver/profile_view_body.tpl

# 
#-----[ FIND 尋找 ]------------------------------------------------ 
# 
代碼:
<td valign="top"><b><span class="gen">{POSTS}</span></b><br><span class="genmed">[{POST_PERCENT_STATS} / {POST_DAY_STATS}]</span> <br><span class="genmed"><a href="{U_SEARCH_USER}" class="genmed">{L_SEARCH_USER_POSTS}</a></span></td>

# 
#-----[ IN LINE FIND 繼續在這一行尋找 ]---------------------------- 
# 
代碼:
<td valign="top"><b><span class="gen">{POSTS}</span></b>

# 
#-----[ IN LINE AFTER, ADD 在指定之後, 加上 ]---------------------- 
# 
代碼:
<br><span class="genmed">[{POSTS_TOPICS} / {POSTS_REPLYS}]</span>

# 
#-----[ OPEN 打開 ]------------------------------------------------ 
# 
代碼:
language/lang_chinese_traditional_taiwan/lang_main.php

# 
#-----[ FIND 尋找 ]------------------------------------------------ 
# 
代碼:
$lang['Total_posts'] = '總發表數';

# 
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------ 
# 
代碼:
$lang['Posts_topics'] = '共發表 %d 篇主題 '; 
$lang['Posts_replys'] = ' %d 篇回覆 ';

# 
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
圖檔
版面鎖定 主題已鎖定

回到「phpBB2」