1.首先找到common目录下的library.asp,在

Function info_code(Str)

Dim vOnline
vOnline = getOnline
下面添加如下查询代码:
str=replace(str,”$Today_blog_LogNums$”,Conn.ExeCute(“Select COUNT(log_ID) FROM blog_Content Where Year(log_PostTime)=Year(Now) and Month(log_PostTime)=Month(Now) and Day(log_PostTime)=Day(Now)”)(0))
‘今日评论数
str=replace(str,”$Today_blog_CommNums$”,Conn.ExeCute(“Select COUNT(comm_ID) FROM blog_Comment Where Year(comm_PostTime)=Year(Now) and Month(comm_PostTime)=Month(Now) and Day(comm_PostTime)=Day(Now)”)(0))
‘今日留言数
str=replace(str,”$Today_MessageNums$”,Conn.ExeCute(“Select COUNT(book_id) FROM blog_book Where Year(book_PostTime)=Year(Now) and Month(book_PostTime)=Month(Now) and Day(book_PostTime)=Day(Now)”)(0))
‘今日引用数
str=replace(str,”$Today_blog_TbCount$”,Conn.ExeCute(“Select COUNT(tb_ID) FROM blog_Trackback Where Year(tb_PostTime)=Year(Now) and Month(tb_PostTime)=Month(Now) and Day(tb_PostTime)=Day(Now)”)(0))
‘今日访问数
str=replace(str,”$Today_VisitNums$”,Conn.ExeCute(“Select COUNT(coun_ID) FROM blog_Counter Where Year(coun_Time)=Year(Now) and Month(coun_Time)=Month(Now) and Day(coun_Time)=Day(Now)”)(0))
‘待审链接数
str=replace(str,”$blog_UnshownLinks$”,Conn.ExeCute(“Select COUNT(link_isshow) FROM blog_Links Where link_isshow=False”)(0))
‘现有链接数
str=replace(str,”$all_blog_Links$”,Conn.ExeCute(“Select COUNT(link_isshow) FROM blog_Links Where link_isshow=True”)(0))
‘所有日志浏览量总和
str=replace(str,”$All_ViewNums$”,Conn.Execute(“Select SUM(log_ViewNums) FROM blog_Content”)(0))
str=replace(str,”$blog_RunDays$”,DateDiff(“d”,”2008-08-25″,date))
2.在后台管理–界面与插件–设置模块–站点统计BlogInfo,点击编辑HTML,添加如下代码:
日志: <a href=”default.asp”><b>$blog_LogNumsmce_markerlt;/b> 篇</a><br/>
评论: <a href=”search.asp?searchType=Comments”><b>$blog_CommNumsmce_markerlt;/b> 个</a><br/>
引用: <a href=”search.asp?searchType=trackback”><b>$blog_TbCountmce_markerlt;/b> 个</a><br/>
留言: <b>$blog_MessageNumsmce_markerlt;/b> 个<br/>
会员: <a href=”member.asp”><b>$blog_MemNumsmce_markerlt;/b> 人</a><br/>
访问: <b>$blog_VisitNumsmce_markerlt;/b> 次<br/>
在线: <b>$blog_OnlineNumsmce_markerlt;/b> 人<br/>
今日评论: <b>$Today_blog_CommNumsmce_markerlt;/b> 个<br/>
今日日志: <b>$Today_blog_LogNumsmce_markerlt;/b> 个<br/>
今日留言: <b>$Today_MessageNumsmce_markerlt;/b> 个<br/>
今日访问: <b>$Today_VisitNumsmce_markerlt;/b> 次<br/>
今日引用: <b>$Today_blog_TbCountmce_markerlt;/b> 个<br/>
运行天数: <b>$blog_RunDaysmce_markerlt;/b>天<br/>
日志浏览总和: <b>$All_ViewNumsmce_markerlt;/b> 次<br/>
建站时间: <strong>2008-08-25</strong>