The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I want the total post count for a forum on my vBulletin Board to not count toward the board's total post count. Can this be done?
|
#2
|
|||
|
|||
![]()
Forums And Moderators > Forum Manager > Find the one you want > Count Posts Made in this Forum Towards User Post Counts > No!
|
#3
|
||||
|
||||
![]() Quote:
Not user post counts, total board count. Basically, I want to subtract the number of posts already in a forum from the board total. |
#4
|
|||
|
|||
![]()
Ah, poor reading on my part
![]() Not sure of any ways to do it without editing the code or manipulating it with a plugin. |
#5
|
||||
|
||||
![]()
Does anyone else know how to do this?
|
#6
|
||||
|
||||
![]()
Are you simply talking about the post count on the index.php page? It looks like the total post count is grabbed from the forumcache and you can probably use construct_forum_bit (in functions_forumlist.php) to get the reply count for that particular forum and then just do a quick calculation to spit out what you want.
|
#7
|
||||
|
||||
![]()
Thanks Lynne. I have no idea how I would do that though. Any advice?
|
#8
|
||||
|
||||
![]() Quote:
|
#9
|
|||
|
|||
![]()
I get what you are saying.
Seems pretty hard though.. |
#10
|
||||
|
||||
![]()
Actually, I just relooked and saw it's already there in the cache (and I don't know what I was thinking of using that function - middle of the afternoon brain fart or something). You can see it totaling up the posts in the function, just grab the total for that forum and do what you want with it:
Code:
if (is_array($vbulletin->forumcache)) { foreach ($vbulletin->forumcache AS $forum) { $totalthreads += $forum['threadcount']; $totalposts += $forum['replycount']; if ($forum['forumid'] == xx) $forumpostcount = $forum['replycount']; } } |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|