The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how to do categories/subcategories?
using mysql and php, how do you do one level of subcategories within categories on a single page, like vBulletin has by default? i'm having trouble figuring out how to do this without a [poooop]load of queries
|
#2
|
||||
|
||||
Basically you need each record to have a parent field, that tells you what's the item's parent.
Then you load all data from your table into one big array, where the key is the parent field. Then you create a recursive function, that deals with the mentioned array, each time using a different parent. It can get complicated, check out index.php of vBulletin to learn more. Disregard the parentlist field in the forum table as it's merely used for permissions. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|