Happy Memorial Day.
Now for some bizarre and slightly insane reason I sat down at 2am this morning and started to seriously ponder sub-forums and went to bed with what I think is a plan. By 11:00 am I had the front end rough coded and now have a working prototype. Have not yet, of course, touched the back end – I just rigged up some test data manually in the database.
The whole thing basically comes down to two issues. Nesting and Permalinks.
As to nesting I propose that we, at least for now, set a limit of only a single level of sub-forum. In other words a sub-forum can not own another sub-forum. I think as far as my code so far goes it would actually just work if we allowed deeper nesting but it just exacerbates the second issue of permalinks.
So – let's talk permalinks. You provided me with two links at the top of this discussion to Simple Machines and to Vbulletin. It is interesting to note that both of these platforms format their URL's basically like SPF used to do before we went ‘pretty' although they may have options to use alternative structures – I do not know.
The important point however, is that neither of them differentiate between a normal forum and a sub-forum. And I don't really see why we should. Our current structure serves both quite happily. I suggest that the important aspect, from the forum owners point of view, is in the organisational context.
The only pandering these two commercial products make to sub-forums is in the breadcrumbs and I propose we do exactly the same. Permalinks remain as they are – a forum is, after all, a forum. Breadcrumbs change to reflect the nested sub-forum level – or, to be more precise – they change to reflect the sub-forum's parent.
If we accept this proposal then the whole thing becomes a very simple matter of (1) a minor table change; (2) a small smattering of display routines and (3) some fairly simple modifications to a couple of database routines. And perhaps, with the exception of the Manage Forums work, I can have it up and working today.