installed the hack but get an error on my forums homepage:
Warning: Supplied argument is not a valid MySQL result resource in pathtoforums\vbs_counter.php on line 74
My phpinclude template looks like:
ob_start();
include("vbheader.php");
include ("vbs_counter.php");
$revdis = ob_get_contents();
ob_end_clean();
the other file in there calls up a file that reads data from another database and displays it on the forums.
when i run the vbstats.php i get:
Warning: Supplied argument is not a valid MySQL result resource in E:\domains\dvd-swaps.co.uk\dvd2001\dvdforums\vbstats.php on line 88
1046: No Database Selected
this is prolly cos my other file has mysql_close(); in it but if i take this out the vbstats starts looking in my other database!!
any ideas how I can get the vbstats to work. i have tried putting the include("vbheader.php"); all over the place in the template but no joy
EDIT
Got it going

I had to add to the vbstats code and counter the code from global.php which connects to the database as my other file was closing all connections to mysql. works like a dream now. great hack