If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Incorporte Daily Counter to Wordpress  XML
Forum Index » Support Forum
Author Message
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
  1. <?php  
  2. include ("./config.inc.php");  
  3. if ($COUNT_CFG['use_db']) {  
  4.     include ("./mysql.class.php");  
  5. }  
  6. include ("./counter.class.php");         
  7. $counter = new dcounter();  
  8. $visits = $counter->show_counter();  /* Returns an associative array */  
  9.   
  10. ?>  

in header.php and
  1. 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.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum