I am going to be making a CMS (content management system) and have a few questions that need answering 😛
First, how should I organize the code. Right now I am thinking everything will load from only a few different pages - perhaps a front page index.php which will basically show a default module (section) of the website, and a modules.php page that will load different pages depending on what module's name is passed in (_GET) the url. So would this work out or no? I am trying to decipher how PHPNuke is organizing itself and I think I understand a 'big picture' but nothing of the little details that could be important.
Secondly, I am as I said above, going to make it modular. So, how should I handle modules. Should the admin page have a 'Check for modules' section that will scan the 'modules' directory for new additions? And then appropriately update the database? If so, then I would need to include in such a scan for modules, appropriate code to parse filenames and directory names, right?
Thirdly, I want the admin to be able to have as many groups for users as he/she wants. What I mean is, the admin should be able to arbitrarily assign permissions to view or modify for each module. So let's say I have a permissions table that will have a module name, a user group name, and booleans for read (view), edit, and submit/delete, when a new module is found, this table would have to have additional rows of data to accomodate the module correct? Or is there a better way?
Fourthly, does anyone know of an easy way to integrate a full-fledged forum into my own site design? I know PHPNuke has a port of PHPBB and I am looking for a very similar solution...but I honestly don't know where to start. I was thinking maybe I should just use one of those 'one page of code' tiny forums and worry about it later. Bleh.
Thanks for your help, and if you have any other info on this topic that might help me out or useful links, please post away 😃