首先要修改论坛根目录下的文件:index.php
用记事本打开,搜索:require_once './include/common.inc.php';
搜索到以后,在后面加上下面两行:
$lastmember= $db->result_first("SELECT username FROM {$tablepre}members ORDER BY uid DESC LIMIT 1");
$lastmemberuid= $db->result_first("SELECT uid FROM {$tablepre}members ORDER BY uid DESC LIMIT 1");
然后再修改论坛/templates/default下的discuz.html
同样用记事本打开,搜索下面一行代码:
{lang index_today}: $todayposts, {lang index_yesterday}: $postdata[0], {lang index_members}: $totalmembers
在后面加上下面几行代码:
- {lang index_today}: $todayposts
- {lang index_yesterday}: $postdata[0]
- {lang index_maxday}: $postdata[1]
- {lang index_members}: $totalmembers
- {lang index_threads}: $threads
- {lang index_posts}: $posts
- {lang welcome_newmember} $lastmember
如果不需要哪一项,就删掉哪一行即可.
新闻热点
疑难解答