To get this hack working with the vBCrown change the following:
Search for:
PHP Code:
// GETTING TOTAL POSTS AND THREADS
include_once('./includes/functions_forumlist.php');
cache_ordered_forums(1, 0, 0);
if (is_array($forumcache))
{
foreach ($forumcache AS $forum)
{
$nthreads += $forum['threadcount'];
$nposts += $forum['replycount'];
$totalthreads = number_format($nthreads);
$totalposts = number_format($nposts);
}
}
Replace it with:
PHP Code:
// GETTING TOTAL POSTS AND THREADS
$holedinge = $DB_site->query("SELECT forum.forumid, threadcount, replycount FROM " . TABLE_PREFIX . "forum AS forum");
if ($DB_site->num_rows($holedinge))
{
while ($holeding = $DB_site->fetch_array($holedinge))
{
if (empty($focache["$holeding[forumid]"]))
{
$focache["$holeding[forumid]"] = array();
}
$focache["$holeding[forumid]"] = array_merge($focache["$holeding[forumid]"], $holeding);
}
}
$DB_site->free_result($holedinge);
if (is_array($focache))
{
foreach ($focache AS $forum)
{
$nthreads += $forum['threadcount'];
$nposts += $forum['replycount'];
$totalthreads = number_format($nthreads);
$totalposts = number_format($nposts);
}
}
Now you can use the sceduled tasks in your admincp. :nervous: