pjblog在线统计的数据加强!

时间:06-03-31 栏目:网络&技术 作者:wukong 评论:0 点击: 1,402 次

pjblog在线统计的数据加强!

效果:

1、首先打開commonlibrary.asp,找到

'**********************************************
'輸出日志統計信息
'**********************************************
function info_code(str)
dim vOnline
vOnline=getOnline
str=replace(str,"$blog_LogNums$",blog_LogNums)
str=replace(str,"$blog_CommNums$",blog_CommNums)
str=replace(str,"$blog_TbCount$",blog_TbCount)
str=replace(str,"$blog_MessageNums$",blog_MessageNums)
str=replace(str,"$blog_MemNums$",blog_MemNums)
str=replace(str,"$blog_VisitNums$",blog_VisitNums)
str=replace(str,"$blog_OnlineNums$",vOnline)
在下面加上

'運行天數統計
str=replace(str,"$blog_RunDays$",DateDiff ("d","2004-12-04 ",date))
'今日評論數
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_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_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_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,"$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))
然後保存,上傳到服務器。

2、以管理員身份進入BLOG管理頁面——界面與插件——設置模塊,編輯BlogInfo模塊的HTML代碼
将其替換成
<span style="FONT-SIZE: 11px">日志: <a href="http://www.hanyuwei.com/default.asp">今日<font color="#339966"><strong>$Today_blog_LogNums$</strong></font>篇,总计 <font color="#339966"><strong>$blog_LogNums$</strong></font>篇</a><br />评论: <a href="search.asp?searchType=Comments">今日<font color="#339966"><strong>$Today_blog_CommNums$</strong></font>篇,总计<font color="#339966"> <strong>$blog_CommNums$</strong></font>篇</a><br />留言: <a href="LoadMod.asp?plugins=GuestBookForPJBlog">今日<font color="#339966"><strong>$Today_MessageNums$</strong></font>条,总计 <font color="#339966"><strong>$blog_MessageNums$</strong></font>条</a><br />引用: <a href="search.asp?searchType=trackback">今日<font color="#339966"><strong>$Today_blog_TbCount$</strong></font>次,总计<font color="#339966"><strong>$blog_TbCount$</strong></font> 次</a><br />会员: <a href="member.asp">线上<font color="#339966"><strong>$blog_OnlineNums$</strong></font>人,总会员<font color="#339966"><strong>$blog_MemNums$</strong></font>人</a><br />总计访问: <strong><font color="#ff0000">$blog_VisitNums$</font></strong>人次<br />建站时期: <font color="#339966"><strong>2005-12-25</strong></font></span>

声明: 本文由( wukong )原创编译,转载请保留链接: pjblog在线统计的数据加强!

pjblog在线统计的数据加强!:等您坐沙发呢!

发表评论

您必须 [ 登录 ] 才能发表留言!

------====== 本站公告 ======------
大家有任何疑问和建议,请到这里留言:点击留言板

读者排行