Thank you. That works for one forum id. But.. if I want to add them for multiple forums? I have tried this:
$cat1 = $vbulletin->forumcache['10,27']['threadcount'];
But it doesn't work.
--------------- Added [DATE]1235422599[/DATE] at [TIME]1235422599[/TIME] ---------------
Quote:
Originally Posted by Lynne
Is this on the index page? Just grab it from where it says "// get total threads & posts from the forumcache" at the bottom of index.php. It's in the cache and get's totally up there. Just add in some code to grab it for each of those forumids.
|
Do you mean this part?
PHP Code:
// get total threads & posts from the forumcache
$totalthreads = 0;
$totalposts = 0;
if (is_array($vbulletin->forumcache))
{
foreach ($vbulletin->forumcache AS $forum)
{
$totalthreads += $forum['threadcount'];
$totalposts += $forum['replycount'];
}
}
$totalthreads = vb_number_format($totalthreads);
$totalposts = vb_number_format($totalposts);
But.. how do I modify it in order to call just some forum ids? Also.. wich variable will I use to call the number in my FORUMHOME template?