![]() |
Forum Post count Mod
// 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); I use VBadvanced on my forum home page. I am trying to take my recent threads module and have it pull post counts from a forum instead of a thread. What I mean is this: I have a top 20 stock message boards. Each one of those 20 will be an actual forum (not a single thread) Now the question is, does anyone know how to code this correctly? It seems as if I would just have to change the code out from it pulling thread post count to forum post count yes? Thank You to anyone who can help me on this. |
All times are GMT. The time now is 08:49 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|