修改Z-Blog 的站点统计

来源:互联网 发布:剑灵小秦夕颜捏脸数据 编辑:程序博客网 时间:2024/06/10 15:02

Z-Blog 因为考虑到性能问题,使用了静态页面技术,所以主页 ”站点统计”的”浏览总数” 不会时时更新,要重新生成才会更新,所以我想把它去掉.

下面把方法分享给大家(V1.8):

找到 FUNCTION/c_system_base.asp 文件,大概在2360 行开始可以看到如下语句:

strStatistics=strStatistics & "

  • "& ZC_MSG082 &":" & objRS("allArticle") & "
  • "
    strStatistics=strStatistics & "
  • "& ZC_MSG124 &":" & objRS("allCommNums") & "
  • "
    strStatistics=strStatistics & "
  • "& ZC_MSG125 &":" & objRS("allTrackBackNums") & "
  • "
    strStatistics=strStatistics & "
  • "& ZC_MSG129 &":" & objRS("allViewNums") & "
  • "
    strStatistics=strStatistics & "
  • "& ZC_MSG306 &":" & GetNameFormTheme(ZC_BLOG_THEME) & "
  • "
    strStatistics=strStatistics & "
  • "& ZC_MSG083 &":" & ZC_BLOG_CSS & "
  • "
    strStatistics=strStatistics & "
  • "& ZC_MSG084 &":" & ZC_BLOG_LANGUAGE & "
  • "

    这七行分别对应 文章总数、评论总数、引用总数、浏览总数、当前主题、当前样式、语言

    如果不想要其中一个显示,则只需要把该行删除,或者注释该行:

    'strStatistics=strStatistics & "

  • "& ZC_MSG129 &":" & objRS("allViewNums") & "
  • "

    原创粉丝点击