New link in the top of page "IRC Chat".
Register | Login
Views: 135532177
Main | Memberlist | Active users | Calendar | Last Posts | IRC Chat | Online users
Ranks | FAQ | XPW | Stats | Color Chart | Photo album
11-22-24 09:27 AM
0 users currently in Help & Suggestions.
Xeogaming Forums - Help & Suggestions - How did you do this? | |
Next newer thread | Next older thread
User Post
PYRATROOPER

Blue Octorok








Since: 01-17-11

Since last post: 4916 days
Last activity: 4895 days
Posted on 05-30-11 04:22 PM Link | Quote
How did you create the sub forums on this board?
Nikolaj

Micro-Goomba








Since: 07-08-10
From: Denmark

Since last post: 4922 days
Last activity: 4912 days
Posted on 06-02-11 05:47 AM Link | Quote
Obviously by modifying the codebase to have subforums.
Xeoman

Ball and Chain Trooper
Administrator








Since: 08-14-04
From: 255

Since last post: 88 days
Last activity: 77 days
Posted on 06-02-11 10:31 AM Link | Quote
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.
Kard Ayals
The Ultimate
Lv108
Posts2915
Counter2
Mv7Jm26
Hp2189/2189
Sp709/709
Atk361 Int279
Def389 Spd281
Hit254 Res275
Exp13447522
Next72977
Banhammer
Shining Armor
Admin Shield
Judge Hat
Admin Shoes
POWAR

Posted on 06-02-11 10:46 PM Link | Quote
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

while($subforum = mysql_fetch_array(mysql_query("SELECT FROM forums WHERE parent='".intval($forum['id'])."' ")))



Note that this particular piece of code probably wouldn't work by itself, because I haven't even looked at the board's code
Next newer thread | Next older thread
Xeogaming Forums - Help & Suggestions - How did you do this? |



xeogaming.org

AcmlmBoard 1.92++ r4 Baseline
?2000-2013 Acmlm, Emuz, Blades, Xkeeper, DarkSlaya*, Lord Alexandor*
*Unofficial Updates
Page rendered in 0.144 seconds.
0.031