Official Soldat Forums

Misc => Forum News and Support => Topic started by: bja888 on June 10, 2006, 04:01:54 pm

Title: One Forum One Page
Post by: bja888 on June 10, 2006, 04:01:54 pm
Has anyone else noticed that this entire forums is on one single page? Click to any page, its a ll a querystring on the same index.php. This must be a nightmare to do advanced configurations on. I understand how the active topics script might be a pain to fix. It would probably take weeks to pinpoint a problem if it arises.
Title: Re: One Forum One Page
Post by: frogboy on June 10, 2006, 08:39:25 pm
index.php has "require_once()"'s to other scripts on the server for the different pages it needs to display. It also checks if a user is banned, checks a user's permissions, etc. It's not just some massive script that does everything in the forum.

e.g.:
Code: [Select]
index.php:
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
Title: Re: One Forum One Page
Post by: ElephantHunter on June 10, 2006, 09:22:31 pm
Wow. Just, wow....  :P

Frogboy is right. The index page just links to external libraries. These external libraries do most of the data-crunching. Ever notice that the executables for the majority of games are really small, but they have tons of external files? Same concept.
Title: Re: One Forum One Page
Post by: bja888 on June 11, 2006, 01:22:44 am
Aware of using smaller components I am. Though not strictly bound to it. I my self prefer amassing smaller components to piece together a larger one.

It seems like your putting all your eggs in one basket though.


Edit: Just wait. I'll come up with good reason not to...
Title: Re: One Forum One Page
Post by: FliesLikeABrick on June 11, 2006, 09:15:48 pm
bja888, your argument here is entirely unreasonable.  Are you going to accuse me of having U13 run all on one page too (everything there shows up like it is on index.php too)?
Title: Re: One Forum One Page
Post by: EnEsCe on June 11, 2006, 09:31:48 pm
Even my site has everything run off index.php.....
Title: Re: One Forum One Page
Post by: bja888 on June 11, 2006, 10:35:45 pm
I'll come up with a good reason.... just let me think about it.
Title: Re: One Forum One Page
Post by: n00bface on June 11, 2006, 10:53:07 pm
Yeah even my shitty website runs scripts externally from index.php
Title: Re: One Forum One Page
Post by: jettlarue on June 11, 2006, 11:14:36 pm
some websites dont require use of php so they have multiple .html or whatever files. but for forums it works great because to edit something you just edit a library, not the actual file that displays stuff. so if you were to mess up a forums library, correct me if i am wrong, only the functions used by that library would be shit. well anyways i am confusing myself now, but basically just having one file for a main thing runs fine. its like having soldat have 10 different executebals and they all send data to each other, why would u do that when you could just have one and do the same thing...but soldat has dll's it reads from, much like a forums index.php....hope this helps :S