StatTraq安装方法

| |
2005/10/29 10:29 zhangyu
1。下载。http://www.randypeterman.com/StatTraq/index.php。
2。设置。修改%WORDPRESS PATH%/wp-stattraq/index.php,在第一行添加<?php header (’Content-Type: text/html; charset=utf-8′); ?>,修正utf-8的问题。看看ReadMe.html。
3。上传。全传到根目录。
4。安装。运行%WORDPRESS PATH%/wp-stattraq/stattraq-install.php,点击Create the StatTraq Table。
5。激活。在Site Admin的Plugins里面激活。
6。配置。把wp 1.2的/wp-admin下的auth.php上传到/wp-admin中,因为运行这个插件需要认证,而1.5取消了认证。引自http://lemondog.51.net/wordpress/?p=267。
7。运行。http://www.yoursite.com/wp-stattraq/index.php,默认Save就行。
Update:把最后4个Hide全部打上勾,基本上统计的数据就比较正常了。
Update:设置完了以后可以把auth.php删掉,看能不能解决域名转向  

1。下载。http://www.randypeterman.com/StatTraq/index.php。
2。设置。修改%WORDPRESS PATH%/wp-stattraq/index.php,在第一行添加<?php header (’Content-Type: text/html; charset=utf-8′); ?>,修正utf-8的问题。看看ReadMe.html。
3。上传。全传到根目录。
4。安装。运行%WORDPRESS PATH%/wp-stattraq/stattraq-install.php,点击Create the StatTraq Table。
5。激活。在Site Admin的Plugins里面激活。
6。配置。把wp 1.2的/wp-admin下的auth.php上传到/wp-admin中,因为运行这个插件需要认证,而1.5取消了认证。引自http://lemondog.51.net/wordpress/?p=267。
7。运行。http://www.yoursite.com/wp-stattraq/index.php,默认Save就行。
Update:把最后4个Hide全部打上勾,基本上统计的数据就比较正常了。
Update:设置完了以后可以把auth.php删掉,看能不能解决域名转向还原的问题。

显示效果:http://www.baiyang.net/wp-stattraq/index.php

Update:如果你的wp站点使用了域名转向,装了插件后会使StatTraq中Site Admin的WordPress address (URI)变成原始地址,手工改过来就行。

Update:如果此插件出错直接drop掉wp_stattraq表再安装试试。报错不管它,这时候数据全清空,就好了。

还原的问题。

-------------------------------------------------------

附:

调查过所有网上流传的StatStraq版本(这里特别指最新版本1.0BETA)
其中wp-stattraq/index.php,wp-stattraq/access_detail.php,wp-stattraq/reporter/options.php
三个文件中都有这句:

require_once(’../wp-admin/auth.php’);


而做为软件入口的INDEX.PHP中还有这一段:

if($options[’options_defaults_disable_login’] != false)
{
require_once(’../wp-admin/auth.php’);
}

意思是,如果options_defaults_disable_login=false(你当时安装时需要设置这个选项)

则需要调用/wp-admin/auth.php这个文件,而WP1.5是没有这个认证文件的。如果你是全新安装StatStraq的情况下,系统绝对会报错(因为全新安装时,数据库中StatStraq_option这个表没有任何数据。系统会去寻找auth.php这个文件。所以报错!!)

然后,解决StatStraq在WORDPRESS下全新安装报错的方法也很简单:有二!

一、从WP1.3或者WP1.2中借一个auth.php先骗过去。

二、你不想这么麻烦,干脆用phpAdmin修改数据表,将options_defaults_disable_login设置为ture就好了





显示效果:http://www.baiyang.net/wp-stattraq/index.php

Update:如果你的wp站点使用了域名转向,装了插件后会使StatTraq中Site Admin的WordPress address (URI)变成原始地址,手工改过来就行。

Update:如果此插件出错直接drop掉wp_stattraq表再安装试试。报错不管它,这时候数据全清空,就好了。
blog相关 | 评论(29) | 引用(0) | 阅读(25746)
机票 Email Homepage
2008/11/10 03:14
哈哈!挺好机票
机票 Email Homepage
2008/11/08 04:51
哈哈!挺好机票
机票 Email Homepage
2008/11/07 04:07
哈哈!挺好机票
机票 Email Homepage
2008/11/06 04:01
哈哈!挺好机票
机票 Email Homepage
2008/11/05 03:45
哈哈!挺好机票
机票 Email Homepage
2008/11/03 03:08
哈哈!挺好机票
机票 Email Homepage
2008/11/02 04:36
哈哈!挺好机票
机票 Email Homepage
2008/10/30 04:04
哈哈!挺好机票
机票 Email Homepage
2008/10/29 01:09
哈哈!挺好机票
机票 Email Homepage
2008/10/11 04:27
哈哈!挺好机票
分页: 1/3 第一页 1 2 3 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]