PDA

View Full Version : forum post/thread count


SoloX
02-04-2009, 03:44 AM
Hello:

I want to display a link to one of my sub forums on the navbar but with thread and post count like: ForumX (34/185)

I cannot figure out how to pull the thread and post count. Someone help please.

Dismounted
02-04-2009, 04:51 AM
You need to add "forumcache" to the array of things to fetch from the datastore. Then you can use these variables (X = forum ID):
$totalthreads = $vbulletin->forumcache['X']['threadcount'];
$totalposts = $vbulletin->forumcache['X']['replycount'];

SoloX
02-04-2009, 09:28 PM
pardon my ignorance. Where would I add this php code?

Dismounted
02-05-2009, 03:51 AM
You need to do coding of your own in addition to the code I posted. You need to fetch "forumcache" from the datastore.