use erwin's hack
https://vborg.vbsupport.ru/showthrea...threadid=59722
but change the conditonal to this
PHP Code:
// people online on every page.
if (!$forumhome)
{
$datecut = TIMENOW - $vboptions['cookietimeout'];
$headerguests = $DB_site->query_first("SELECT COUNT(*) AS count FROM session WHERE userid= 0 AND lastactivity > $datecut");
$headerusers = $DB_site->query_first("SELECT COUNT(DISTINCT(userid)) AS count FROM session WHERE session.userid > 0 AND session.lastactivity > $datecut");
$headerguests = $headerguests[count];
$headerusers = $headerusers[count];
$totalonline = $headerguests + $headerusers;
}
// people online on every page
and add at the top of your forums/index.php
PHP Code:
$forumhome = TRUE;