The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hello, I have two hidden categories, and I want to put something like this in my forumhome:
Total thread in Hidden Categoy: (*) Total thread in Hidden Category n.2: (*) where (*) is the threads number. Can you please help me? |
#2
|
||||
|
||||
![]()
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.
|
#3
|
|||
|
|||
![]()
Create plugin with "forumhome_complete"
$cat1 = $vbulletin->forumcache['typeforumidhere']['threadcount']; $cat2 = $vbulletin->forumcache['typeforumidhere2']['threadcount']; See if that works |
#4
|
||||
|
||||
![]()
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:
PHP Code:
|
#5
|
||||
|
||||
![]()
Get them individually. If you then need the total for the two, just do an equation $cattotal = $cat1 + $cat2; .
|
#6
|
||||
|
||||
![]() PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|