找回密码
 注册
广告投放 虚位以待【阿里云】2核2G云新老同享 99元/年,续费同价做网站就用糖果主机-sugarhosts.comJtti.com-新加坡服务器,美国服务器,香港服务器
楼主: cctv000000

SaBlog-X博客程序统计代码加哪个文件?

[复制链接]
发表于 2007 年 6 月 15 日 19:18:33 | 显示全部楼层

回复 #9 ashun 的帖子

index 加到侧边栏
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2007 年 6 月 15 日 19:18:55 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
php是模板文件么
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2007 年 6 月 15 日 19:23:40 | 显示全部楼层
显示了
可加在什么地方好~



代码如下:

<!--<?php
if(!defined('SABLOG_ROOT')) {
        exit('Access Denied');
}
$current_page_item = array();
if (in_array($action, array('index', 'finduser', 'tags'))) {
        $current_page_item['index'] = ' class="current_page_item"';
} elseif (in_array($action, array('archives', 'tagslist', 'comments', 'trackbacks', 'search', 'links'))) {
        $current_page_item[$action] = ' class="current_page_item"';
}
print <<<EOT
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="utf-8" />
<meta http-equiv="Pragma" content="no-cache" />
<meta name="keywords" content="Hoofei,web标准,css,$options[meta_keywords]" />
<meta name="description" content="Hoofei,web标准,css,$options[meta_description]" />
<meta name="copyright" content="Hoofei.com" />
<meta name="author" content="Hoofei" />
<link rel="alternate" title="$options[name]" href="rss.php" type="application/rss+xml" />
<link rel="stylesheet" href="templates/$options[templatename]/style.css" type="text/css" media="all"  />
<script type="text/javascript">
        var postminchars = parseInt("$options[comment_min_len]");
        var postmaxchars = parseInt("$options[comment_max_len]");
</script>
<script type="text/javascript" src="include/common.js"></script>
<title>$options[title] $options[title_keywords]</title>
</head>
<body>
<div id="outmain">
<h1><a href="$options[url]">$options[name]</a></h1>
<ul class="menu">
        <li{$current_page_item[index]}><a href="./">Home</a></li>
        <li{$current_page_item[archives]}><a href="./?action=archives">Archives</a></li>
        <li{$current_page_item[search]}><a href="./?action=search">Search</a></li>
        <li{$current_page_item[tagslist]}><a href="./?action=tagslist">Tags</a></li>
        <li{$current_page_item[comments]}><a href="./?action=comments">Comments</a></li>
      <!--
EOT;
if ($options['enable_trackback']) {print <<<EOT
-->
        <li{$current_page_item[trackbacks]}><a href="./?action=trackbacks">Trackbacks</a></li>
      <!--
EOT;
}print <<<EOT
-->
        <li{$current_page_item[links]}><a href="./?action=links">Links</a></li>
</ul>
<div id="topmenu">
  <span id="description">$options[description]</span>
  <span id="guestlink">
    <!--
EOT;
if ($sax_uid) {print <<<EOT
-->
    欢迎您,$sax_user &raquo; <a href="?action=profile">资料</a> | <a href="post.php?action=logout">注销</a>
<!--
EOT;
if ($sax_group == 1 || $sax_group == 2) {print <<<EOT
--> | <a href="admin/admincp.php" target="_blank">管理</a>
<!--
EOT;
}}else{print <<<EOT
-->
    <a href="./?action=reg">注册</a> | <a href="./?action=login">登陆</a>
    <!--
EOT;
}print <<<EOT
-->
  </span>
</div>
<div id="searchbox">
    <form method="post" action="post.php">
    <input type="hidden" name="formhash" value="$formhash" />
    <input type="hidden" name="action" value="search" />
    <input name="keywords" id="key" />
    <input type="image" id="searchbutton" value="搜索" src="templates/$options[templatename]/img/search.png" />
    </form>
<!--
EOT;
if ($options['hottags_shownum']) {print <<<EOT
-->
    <p>Hot Tags:
      <!--
EOT;
if(empty($tagcache)){print <<<EOT
-->
      没有任何标签
      <!--
EOT;
}else{
foreach($tagcache AS $data){
print <<<EOT
-->
<a href="./?action=tags&amp;item=$data[url]">$data[tag]</a>
      <!--
EOT;
}}print <<<EOT
-->
    </p>
    <!--
EOT;
}print <<<EOT
-->
</div>
<!--
EOT;
if ($options['show_statistics']) {print <<<EOT
-->
<div id="about">
    <a href="mailto:admin@admin.com"><img src="templates/$options[templatename]/img/avatar.gif" alt="Contact me!" /></a>
    <p>冷狐于2007年06月15日恢复重建LengHu's Blog,其间在 $stats[cate_count] 个分类中发表的 $stats[article_count] 篇文章被评论了 $stats[comment_count] 次。</p>
</div>
<div id="page">
  <div id="wrap">
<!--
EOT;
require_once PrintEot($pagefile);
print <<<EOT
-->
  </div>
  <div id="sidebar">
    <!--
EOT;
if ($options['show_calendar']) {print <<<EOT
-->
<table cellpadding="0" cellspacing="1">
  <tr align="center">
    <td colspan="7" class="curdate"><a href="./?action=index&amp;setdate=$calendar[prevmonth]">&laquo;</a> $calendar[cur_date] <a href="./?action=index&amp;setdate=$calendar[nextmonth]">&raquo;</a></td>
  </tr>
  <tr>
    <th class="week"><font color="#CC0000">日</font></th>
    <th class="week">一</th>
    <th class="week">二</th>
    <th class="week">三</th>
    <th class="week">四</th>
    <th class="week">五</th>
    <th class="week"><font color="#53A300">六</font></th>
  </tr>
  $calendar[html]
</table>
    <!--
EOT;
}
if ($options['show_categories']) {print <<<EOT
-->
    <h2>Category</h2>
    <ul>
      <!--
EOT;
if(empty($catecache)){print <<<EOT
-->
      <li>没有任何分类</li>
      <!--
EOT;
}else{
foreach($catecache AS $data){
print <<<EOT
-->
      <li><a href="./rss.php?cid=$data[cid]" target="_blank" title="RSS 2.0 订阅这个分类"><img src="templates/$options[templatename]/img/rss.gif" border="0" alt="RSS 2.0 订阅这个分类" /></a> <a href="./?action=index&amp;cid=$data[cid]">$data[name]</a> <span>[$data[articles]]</span></li>
      <!--
EOT;
}}print <<<EOT
-->
    </ul>
    <!--
EOT;
}
if ($options['show_archives']) {print <<<EOT
-->
    <h2>Archives</h2>
    <ul>
      <!--
EOT;
if(empty($archivecache)){print <<<EOT
-->
      <li>没有任何归档</li>
      <!--
EOT;
}else{
if (is_numeric($options['archives_num']) && $options['archives_num']) {
        $archivecache = array_slice($archivecache,0,$options['archives_num']);
}
foreach($archivecache AS $key => $val){
$v = explode('-', $key);
//$e_month = ($v[1] < 10) ? str_replace('0', '', $v[1]) : $v[1];
print <<<EOT
-->
      <li><a href="./?action=index&amp;setdate=$v[0]$v[1]">{$v[0]}年{$v[1]}月</a> <span>[$val]</span></li>
      <!--
EOT;
}}print <<<EOT
-->
    </ul>
<!--
EOT;
if (is_numeric($options['archives_num']) && $options['archives_num']) {print <<<EOT
-->
    <p class="more"><a href="./?action=archives">更多...</a></p>
    <!--
EOT;
}}
if($options['allow_search_comments']){print <<<EOT
-->
    <h2>Search Comments</h2>
    <form method="post" action="post.php">
      <input type="hidden" name="formhash" value="$formhash" />
      <input type="hidden" name="action" value="search" />
      <input type="hidden" name="searchfrom" value="comment" />
      <table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><input class="formfield" maxlength="30" size="17" name="keywords" />
          </td>
          <td><button type="submit" class="formbutton">确定</button>
          </td>
        </tr>
        <tr>
          <td colspan="2">匹配评论人和内容</td>
        </tr>
      </table>
    </form>
    <!--
EOT;
}
if ($options['recentcomment_num']) {print <<<EOT
-->
    <h2>New Comments</h2>
    <ul>
      <!--
EOT;
if(empty($newcommentcache)){print <<<EOT
-->
      <li>没有任何评论</li>
      <!--
EOT;
}else{
foreach($newcommentcache AS $data){
$data[content] = stripslashes_array($data[content]);
print <<<EOT
-->
      <li><a href="./?action=show&amp;id=$data[articleid]&amp;cmid=$data[commentid]&amp;goto=newcm">$data[content]</a><br /><span>$data[dateline] - $data[author]</span></li>
      <!--
EOT;
}}print <<<EOT
-->
    </ul>
    <p class="more"><a href="./?action=comments">更多...</a></p>
    <!--
EOT;
}}
if ($options['sidebarlinknum']) {print <<<EOT
-->
    <h2>Maybe You Like..</h2>
    <ul>
      <!--
EOT;
if(!$linkcache){print <<<EOT
-->
      <li><a href="http://www.sablog.net/blog" target="_blank" title="angel's blog">angel's blog</a></li>
          <li><a href="http://www.hoofei.com" target="_blank" title="Hoofei's Blog">Hoofei's blog</a></li>
      <!--
EOT;
}else{
foreach($linkcache AS $data){
print <<<EOT
-->
      <li><a href="$data[url]" target="_blank" title="$data[note]">$data[name]</a></li>
      <!--
EOT;
}}print <<<EOT
-->
    </ul>
        <!--
EOT;
if ($link_count > $options['sidebarlinknum']) {print <<<EOT
-->
    <p class="more"><a href="./?action=links">更多...</a></p>
        <!--
EOT;
}}
print <<<EOT
-->
  </div>
</div>
<!--
EOT;
?>-->
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2007 年 6 月 15 日 19:24:14 | 显示全部楼层

回复 #12 vbvs 的帖子

鸭宝宝,你已经被时代淘汰了
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2007 年 6 月 15 日 19:26:31 | 显示全部楼层
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2007 年 6 月 15 日 19:31:26 | 显示全部楼层
就不告诉你
我以前做过很多sa的风格
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2007 年 6 月 15 日 19:34:58 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
原帖由 vbvs 于 2007-6-15 19:31 发表
就不告诉你
我以前做过很多sa的风格


偶错了行不

告一下吧
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2007 年 6 月 15 日 19:35:47 | 显示全部楼层
<center>
中间
</center>

评分

参与人数 1威望 +1 收起 理由
cctv000000 + 1 助人为乐.楷模

查看全部评分

Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2007 年 6 月 15 日 19:38:22 | 显示全部楼层
应该是在模板里,默认的那个!
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2007 年 6 月 15 日 19:40:44 | 显示全部楼层

回复 #15 cctv000000 的帖子

哇哈哈

随便加,加最后也可以!
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2025 年 2 月 4 日 11:44 , Processed in 0.031129 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表