原文章網址:
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 儲存/關閉所有檔案 ]-------------------