Nezzar
June 8th, 2002, 12:39
As you might already know I'm coding a message board (forget this vBulletin :p).
The problem is I want to give the user the ability to create subforums (like the beta-forum in the epsxe-forum here) but I dunno how. This would be no great deal if there could be only one suboforums but the user should be able to add as much subforums to another subforum as he wants.
I tried several ways with while-loops and this kind but nothing really worked.
I need this to know to create quick-nav-bar like the one you have on the bottom of every page here.
The forums table has this structure:
forumid tinyint(4) NOT NULL auto_increment,--simply the forums id
name varchar(200) NOT NULL default ''
description varchar(200) default NULL,
lastpost int(10) default NULL,
lastposter int(5) unsigned default NULL,
parent int(4) unsigned default '0',--the id of the forum that's the parent of the current forum
catid tinyint(4) NOT NULL default '0',--only needed if the forum isn't a subforum
path varchar(20) default '0',--from a mature try, this would've been the path "to the top", containing all the forums that are parents of the current forum
The problem is I want to give the user the ability to create subforums (like the beta-forum in the epsxe-forum here) but I dunno how. This would be no great deal if there could be only one suboforums but the user should be able to add as much subforums to another subforum as he wants.
I tried several ways with while-loops and this kind but nothing really worked.
I need this to know to create quick-nav-bar like the one you have on the bottom of every page here.
The forums table has this structure:
forumid tinyint(4) NOT NULL auto_increment,--simply the forums id
name varchar(200) NOT NULL default ''
description varchar(200) default NULL,
lastpost int(10) default NULL,
lastposter int(5) unsigned default NULL,
parent int(4) unsigned default '0',--the id of the forum that's the parent of the current forum
catid tinyint(4) NOT NULL default '0',--only needed if the forum isn't a subforum
path varchar(20) default '0',--from a mature try, this would've been the path "to the top", containing all the forums that are parents of the current forum