用discuz X2搭建的,由于是建站初期,客户要求通过程序每天循序渐进的增加会员数和发帖量。
1.打开当前模板文件夹下的forum/discuz.htm文件
2.修改今日、昨日主题数:
<p class="chart z">{lang index_today}: <em><!--{eval echo (($todayposts *10)+1)}--></em><span class="pipe">|</span>{lang index_yesterday}: <em><!--{eval echo ((($postdata[0])*10)+1)}--></em><span class="pipe">|</span>{lang index_posts}: <em><!--{eval echo ($posts+20000)}--></em><span class="pipe">|</span>{lang index_members}: <em><!--{eval echo ($_G['cache']['userstats']['totalmembers']+10000)}--></em><!--{if $_G['setting']['lastmember']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['setting']['lastmember'])}" target="_blank" class="xi2">$_G['setting']['lastmember']</a></em><!--{/if}--></p>
3.修改模块处今日、昨日主题数:
<h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
<!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
<!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
<!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
4.修改在线会员数:
<h3>
<strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
<span class="xs1">- {lang total} <strong><!--{eval echo ((($onlinenum)*20)+10)}--></strong> {lang onlines}
- {lang index_mostonlines} <strong><!--{eval echo ((($onlineinfo[0])*20)+10)}--></strong> {lang on} <strong><!--{eval echo ((($onlineinfo[1])*20)+10)}--></strong>.</span>
</h3>