搜尋後,竹貓好像沒有人發表此mod(算是mod嗎?

我就當仁不讓,獻醜了.
[php]<?php
## 首頁顯示總主題
########################################################
## Mod Title: 首頁顯示總主題
## Mod Author: Eric
## Homepage: http://hgpa.net/php
## Mod Description: 在首頁顯示總主題.
## Mod Version: 0.1
## Installation Level: Easy
## Installation Time: 2-3 Minutes
## Files To Edit: 3
## index.php
## templates\subSilver\index_body.tpl
## language\lang_chinese_traditional_taiwan\lang_main.php
########################################################
#-----[ 開啟 ]------------------------------------------
#
index.php
#
#-----[ 尋找 ]--------------------------------------
#
$total_posts = get_db_stat('postcount');
#
#-----[ 在上面加入 ]--------------------------------
#
$total_topics = get_db_stat('topiccount');
#
#-----[ 尋找 ]--------------------------------------
#
if( $total_posts == 0 )
{
$l_total_post_s = $lang['Posted_articles_zero_total'];
}
else if( $total_posts == 1 )
{
$l_total_post_s = $lang['Posted_article_total'];
}
else
{
$l_total_post_s = $lang['Posted_articles_total'];
}
#
#-----[ 在上面加入 ]--------------------------------
#
if( $total_topics == 0 )
{
$l_total_topic_s = $lang['Posted_topics_zero_total'];
}
else if( $total_topics == 1 )
{
$l_total_topic_s = $lang['Posted_topic_total'];
}
else
{
$l_total_topic_s = $lang['Posted_topics_total'];
}
#
#-----[ 尋找 ]--------------------------------------
#
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
#
#-----[ 在上面加入 ]--------------------------------
#
'TOTAL_TOPICS' => sprintf($l_total_topic_s, $total_topics),
#
#-----[ 存檔 ]------------------------------------------
#
#-----[ 開啟 ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ 尋找 ]--------------------------------------
#
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
#
#-----[ 替換為 ]--------------------------------------
#
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_TOPICS}, {TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
#
#-----[ 存檔 ]------------------------------------------
#
#-----[ 開啟 ]------------------------------------------
#
language/lang_chinese_traditional_taiwan/lang_main.php
#
#-----[ 尋找 ]--------------------------------------
#
$lang['Posted_articles_zero_total'] = '目前沒有發表的文章'; // Number of posts
$lang['Posted_articles_total'] = '目前總共發表了 <b>%d</b> 篇文章'; // Number of posts
$lang['Posted_article_total'] = '目前總共發表了 <b>%d</b> 篇文章'; // Number of posts
#
#-----[ 在上面加入 ]--------------------------------
#
$lang['Posted_topics_zero_total'] = '目前沒有發表的主題'; // Number of topics
$lang['Posted_topics_total'] = '目前總共發表了 <b>%d</b> 篇主題'; // Number of topics
$lang['Posted_topic_total'] = '目前總共發表了 <b>%d</b> 篇主題'; // Number of topics
#
#-----[ 存檔 ]------------------------------------------
#
?>[/php]