Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 22/11/2006 08:18:33
|
akira
Beginner
Joined: 04/06/2005 04:53:41
Messages: 28
Offline
|
I am currently setting up Wordpress and would like to place a counter in it. There are many plugins but all require a database in SQL. I like this Daily Counter more because the data is written into text file.
I tried placing
- <?php
- include ("./config.inc.php");
- if ($COUNT_CFG['use_db']) {
- include ("./mysql.class.php");
- }
- include ("./counter.class.php");
- $counter = new dcounter();
- $visits = $counter->show_counter();
-
- ?>
in header.php and
- Total Visits: <?php echo $visits['total']; ?>
in footer.php but when viewing tha page, it only show Total Visits: without the counter.
Any help wouold be appreciated. Thanks in advance.
|
|
|
|
|
|
Based on the open source JForum
|