The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Unlimited Category Tree - Need Help
For a while I've been trying to make this system and so far it goes up to one level. I am pretty sure there's a way to display unlimited category levels but that's what I just don't know. Anyways I will not post the actual source code but the concept should be enough for a more advanced PHP programmer.
Table - CatId - CatName - CatParent Example CatId CatName CatParent (or subof) 1 Man 0 2 Woman 0 3 Boy 1 4 Girl 2 5 Baby Girl 4 6 Baby Boy 3 PHP Code:
Man - Boy Woman - Girl So if I wish to display Baby Girl category under Girl I will need another loop just under $sql2. Now the problem is I don't really know how deep the user will create his categories. So what is the trick to make unlimited categories? Thanks a bunch in advance!! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|