if (is_array($vbulletin->forumcache)){ foreach ($vbulletin->forumcache AS $forum) { if (in_array($forum['forumid'], array (10, 11, 12, 13, 14))) { $totalthreads += $forum['threadcount']; $totalposts += $forum['replycount']; } }}