The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
how can i automatically count the number of forums in a category?
|
|
#2
|
|||
|
|||
|
Code:
SELECT
count(forumid) AS forums
FROM
forum
WHERE
parentid = 5
|
|
#3
|
|||
|
|||
|
thanks
|
|
#4
|
||||
|
||||
|
Note that the query will not count sub-forums. Also, you are probably better off using data from the datastore (although this is a little more advanced).
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|