New link in the top of page "IRC Chat". |
Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Last Posts
| IRC Chat
| Online users Ranks | FAQ | XPW | Stats | Color Chart | Photo album |
| |
0 users currently in Help & Suggestions. |
User | Post |
Kard Ayals Posts: 2686/2915 |
I don't remember how I did it here (and checking the code would probably give me an headache), but it's not that hard.
You can go at it in two ways: - Add two fields to the database, one being a boolean that is TRUE when the forum is a subforum. The other field stores the id of the parent forum. - Add only one field to the database that will contain the id of the parent forum. If that id is 0, that means it is not a subforum. Then it is just a matter of adding the appropriate checks in the loop on the index.php page and do something like
Note that this particular piece of code probably wouldn't work by itself, because I haven't even looked at the board's code |
Xeoman Posts: 9115/11757 |
The forums themselves are normal forums that are just not listed on the main index (and the links are literally just manually made in the forum descriptions), but yes DS created new entries in the DB for some stuff and modified forum.php/index.php so that when there's new posts in sub forums that's also indicated on the index. |
Nikolaj Posts: 10/10 |
Obviously by modifying the codebase to have subforums. |
PYRATROOPER Posts: 46/49 |
How did you create the sub forums on this board? |