Friday, September 14, 2007

Bbclone & Wordpress

Figured I'd share this as others have. Using Bbclone with wordpress in the default configuration renders the statistics generated by Bbclone more or less useless as all hits go to the main page with no way of seeing the URL being requested. This means that there is no way one can see which posts are being hit.

I found this page that gave me a working solution. I didn't modify anything but index.php where I inserted the following

define('_BBC_PAGE_NAME', $_SERVER['REQUEST_URI']);
define('_BBCLONE_DIR', '../bbclone/');
define('COUNTER', _BBCLONE_DIR . 'mark_page.php');
if (is_readable(COUNTER)) include_once(COUNTER);

This at least seems to give me entries like  /blog/ in the log instead of just hits to the mainpage. I even have seen  /blog/?p=451 but I can't seem to it give me anything else than this...

No comments: