BBClone, Web Counter

July 26, 2006

Filed under: Blogging, Internet — Rxbbx @ 7:48 pm

BBClone, PHP Based Web Counter Statistics

I have been using BBClone at some of my older sites for some time now. This PHP based Web Counter is a great statistic tool. Just add a few lines of code and it tracks php and html pages as also subdomains all in one. For each visitor BBClone counter can display: IP address, operating system, browser, referrer, visit date, page visits and number of visitors.

Other Features:
http://bbclone.de/features.php

Demo:
http://bbclone.de/demo/

FAQ
http://help.bbclone.de/

If you want to use it at your Wordpress blog:

1) Get it here http://bbclone.de/download.php, don’t forget to download the latest ip2ext too.

2) Upload the BBClone files with FTP to your webserver. Put them under the “web root” of your site, so that they may be found at www.example.com/bbclone/. You don’t have to name your folder “bbclone/”. Overwrite the old ip2ext files.

3) If you look in BBClone’s installation directory you’ll notice a directory called “var/”. In Unix, a var/ directory contains frequently altered files. BBClone will store its data there, but in order to do so the server needs to be allowed to write to some files. These files are:

- counter[0-15].inc
- access.php
- last.php
- htalock

To make these files writable for the server use the “chmod” command. Chmod the files 666.

4) Now it’s just adding a few lines of code to your themes pages (index.php, page.php, archive.php) depending ofcourse on the theme which you’re using.

This is for your Index page, just replace <?php get_header(); ?> with:

<?php
define(”_BBC_PAGE_NAME”, “Index”);
define(”_BBCLONE_DIR”, “/path/to/your/example.com/bbclone/”);
define(”COUNTER”, _BBCLONE_DIR.”mark_page.php”);
if (is_readable(COUNTER)) include_once(COUNTER);
//added for Stats

get_header();
?>

Change your path in _BBCLONE_DIR, so that it points correctly. You can see it’s possible to define your page here: define(”_BBC_PAGE_NAME”, “Index”);. This will also be visible in your stats. Just change the name to page or other if you track another page in stead of the usual index page.

If you want to track some more things then usual.. look at line 107 from the config.php file, change it to $BBC_DETAILED_STAT_FIELDS = “id, time, ext, dns, visits, os, browser, referer, ip, page, search”;. For more info just visit their forum at http://forum.bbclone.de/.

It’s possible to modify the config file completely and track more things such as keywords. It has some features. If you like statistics you will like this Web Counter too.

No Comments »

Permanent Link

No comments yet.

Leave a comment