Adding extra statistics to your forum via BBClone in index.php (to see how they look, click the link in my sig and scroll to the bottom - EDIT: I just upgraded to 1.2.7 and am re-modding everything, so the statistics may or may not show up!):
Find (around line 184):
while ($pun_user_online = $db->fetch_assoc($result))
{
if ($pun_user_online['user_id'] > 1)
$users[] = "\n\t\t\t\t".'<dd><a href="profile.php?id='.$pun_user_online['user_id'].'">'.pun_htmlspecialchars($pun_user_online['ident']).'</a>';
else
++$num_guests;
}
After, add
// Fetch BBlone Stats
require("bbclone/var/access.php");
$totalvisits = $access["stat"]["totalvisits"];
$totalcount = $access["stat"]["totalcount"];
$visitorsmonth = $access["time"]["month"][date("n")-1];
$visitorstoday = $access["time"]["wday"][date("w")];
Change the second line with respect to where BBClone is installed.
Then find (it should be right after what you just pasted):
$num_users = count($users);
echo "\t\t\t\t".'<dd>'. $lang_index['Users online'].': <strong>'.$num_users.'</strong></dd>'."\n\t\t\t\t".'<dd>'.$lang_index['Guests online'].': <strong>'.$num_guests.'</strong></dd>'."\n\t\t\t".'</dl>'."\n";
Replace it with:
$num_users = count($users);
echo "\t\t\t\t".'<dd>'. $lang_index['Users online'].': <strong>'.$num_users.'</strong></dd>'."\n\t\t\t\t".'<dd>'.$lang_index['Guests online'].': <strong>'.$num_guests.'</strong></dd><dd>Total Hits : <strong>'.$totalvisits.'</strong></dd><dd>Total Unique Visits: <strong>'.$totalcount.'</strong></dd><dd>Total Visits This Month: <strong>'.$visitorsmonth.'</strong></dd><dd>Total Visits Today: <strong>'.$visitorstoday.'</strong></dd>'."\n\t\t\t".'</dl>'."\n";
Go to the BBClone website's documentation if you want to experiment with adding other stats. Good luck!
BTW, if you use Google's Blogger, I wrote a weblog post on using BBClone with Blogger.
Looking for a certain modification for your forum? Please
take a look here before posting.