To do this you will first need
Tubedogg's hack.
Open up the last10.php file from the hack and find this line (approx line 13)
PHP Code:
require("$path/config.php");
Replace this with the following. Replace the "xxx" with the info from your forums/admin/config.php file
PHP Code:
$servername="xxx"; // hostname or ip of server
$dbusername="xxx"; // username of your database server
$dbpassword="xxx"; // password of your database server
$dbname="xxx"; // name of database
Then include the last10.php file on your webpage(s) of your main website.
Darren.