[問題]mowdSTAT計數器不會出現
發表於 : 2006-01-23 16:46
主機作業系統:winXP
免費空間連結:php2h.com
上網方式:seednet ADSL
安裝的程式:Apache + php + MySql
phpBB2 版本:phpBB2.0.19
論壇: http://candelonely.php2h.com/phpBB2/index.php
我裝了mowdSTAT3.2.0 可是計數器沒出現, 我實在看不懂他的[中文]說明
不知是否搞錯, 請教教我. 沒學過電腦很可憐.
這是他的安裝說明:
-------------------------------------------------------------------------------------
1. 使用 mowdSTAT.sql 將資料表建立, 可以使用 phpMyAdmin 或是直接用
文字模式的 mysqld 亦可.
使用者若想以別的資料名稱作為開頭, 請打開 mowdSTAT.sql 修改 stat_ 字串成為你想要的,
並在 config.php 中的 $prefix 設定.
2. 把 mowdSTAT 資料夾複製到你要的目錄下 例如: www/ 或是 phpbb/
3. 打開你想要計數的頁面, 如果是 phpBB 的話檔案建議放在overall_footer.tpl(需和 mowdSTAT
資料夾為同一目錄, 否則必須更改下列語法), 在最下面加入(或是你喜歡的位置)
<script language="Javascript">
var locate="http://你網站的網址/mowdSTAT";
</script>
<script language="Javascript" src="mowdSTAT/count.js"></script>
其中的
var locate="http://你網站的網址/mowdSTAT";
mowdSTAT最後不加的 / 斜線
4. 打開 config.php , 填入你自己的設定值(尤其是主機資訊)
-----------------------------------------------------------------------------------
我的安裝:
1.打開phpMyAdmin /資料庫/我的帳號/SQL/瀏覽/mowdSTAT.sql/執行
[color=red]上傳成功,多了5個檔案[/color]
2.把nowdSTAT資料夾上傳到phpBB2/templates/subSilver/nowdSTAT
3.打開phpBB2/templates/subSilver/overall_footer.tpl在</table></body>
中間加入[color=red]
<script language="Javascript">
var locate="http://candelonely.php2h.com/phpBB2/index.php/mowdSTAT";
</script>
<script language="Javascript" src="mowdSTAT/count.js"></script>[/color]
4.打開 phpBB2/templates/subSilver/nowdSTAT/config.php修改\r
[color=blue] ## 主機位址 ##
$dbhost="http://candelonely.php2h.com";
## 資料庫帳號 ##
$dbuser="candelonely";
## 資料庫密碼 ##
$dbpass="xxxxxx";
## 計數器程式所在位置,結尾不要加上"/" ##
$locate="http://candelonely.php2h.com/phpBB2/index.php/mowdSTAT";
## 管理員密碼 ##
$admin_pw="xxxxxx";
## 網站名稱 ##
$title="## 網站名稱 ##
$title="論壇測試";
## 網站網址 ##
$url="http://candelonely.php2h.com/phpBB2/index.php";[/color]
存檔
結果沒看到計數器\r
謝謝
免費空間連結:php2h.com
上網方式:seednet ADSL
安裝的程式:Apache + php + MySql
phpBB2 版本:phpBB2.0.19
論壇: http://candelonely.php2h.com/phpBB2/index.php
我裝了mowdSTAT3.2.0 可是計數器沒出現, 我實在看不懂他的[中文]說明
不知是否搞錯, 請教教我. 沒學過電腦很可憐.
這是他的安裝說明:
-------------------------------------------------------------------------------------
1. 使用 mowdSTAT.sql 將資料表建立, 可以使用 phpMyAdmin 或是直接用
文字模式的 mysqld 亦可.
使用者若想以別的資料名稱作為開頭, 請打開 mowdSTAT.sql 修改 stat_ 字串成為你想要的,
並在 config.php 中的 $prefix 設定.
2. 把 mowdSTAT 資料夾複製到你要的目錄下 例如: www/ 或是 phpbb/
3. 打開你想要計數的頁面, 如果是 phpBB 的話檔案建議放在overall_footer.tpl(需和 mowdSTAT
資料夾為同一目錄, 否則必須更改下列語法), 在最下面加入(或是你喜歡的位置)
<script language="Javascript">
var locate="http://你網站的網址/mowdSTAT";
</script>
<script language="Javascript" src="mowdSTAT/count.js"></script>
其中的
var locate="http://你網站的網址/mowdSTAT";
mowdSTAT最後不加的 / 斜線
4. 打開 config.php , 填入你自己的設定值(尤其是主機資訊)
-----------------------------------------------------------------------------------
我的安裝:
1.打開phpMyAdmin /資料庫/我的帳號/SQL/瀏覽/mowdSTAT.sql/執行
[color=red]上傳成功,多了5個檔案[/color]
2.把nowdSTAT資料夾上傳到phpBB2/templates/subSilver/nowdSTAT
3.打開phpBB2/templates/subSilver/overall_footer.tpl在</table></body>
中間加入[color=red]
<script language="Javascript">
var locate="http://candelonely.php2h.com/phpBB2/index.php/mowdSTAT";
</script>
<script language="Javascript" src="mowdSTAT/count.js"></script>[/color]
4.打開 phpBB2/templates/subSilver/nowdSTAT/config.php修改\r
[color=blue] ## 主機位址 ##
$dbhost="http://candelonely.php2h.com";
## 資料庫帳號 ##
$dbuser="candelonely";
## 資料庫密碼 ##
$dbpass="xxxxxx";
## 計數器程式所在位置,結尾不要加上"/" ##
$locate="http://candelonely.php2h.com/phpBB2/index.php/mowdSTAT";
## 管理員密碼 ##
$admin_pw="xxxxxx";
## 網站名稱 ##
$title="## 網站名稱 ##
$title="論壇測試";
## 網站網址 ##
$url="http://candelonely.php2h.com/phpBB2/index.php";[/color]
存檔
結果沒看到計數器\r
謝謝