演示地址:http://muziyuan.php1h.com
1、在index.php找
- $newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
复制代码
在下面加上:
- $today = mktime (0,0,0,date("m") ,date("d"),date("Y"));
- $build_date = mktime (0,0,0,11,20,2005);//请修改后面的三个数字,分别代表你论坛运行第一天的月,日,年。
- $build_days = (int)(($today-$build_date)/(24*3600));
复制代码
2、在discuz.htm找
- {lang total} <span class="smalltxt">$totalmembers</span> {lang index_members} / {lang welcome_newmember} <a href="viewpro.php?username=$memberenc"><span class="bold">$lastmember</span></a>
复制代码
在后面加上
- / 论坛已运行 <span class="bold"><font color="#FF0000">$build_days</font></span> 天 </td>
复制代码 |