Module: Subforums
Posted by Maurice Makaay
All files from this thread
File Name | File Size | Posted by | Date | ||
---|---|---|---|---|---|
subforums.jpg | 547 KB | open | download | Maurice Makaay | 06/21/2009 | Read message |
subforums-1.0.1.tar.gz | 5.7 KB | open | download | Maurice Makaay | 08/16/2009 | Read message |
subforums-1.0.1.zip | 7.9 KB | open | download | Maurice Makaay | 08/16/2009 | Read message |
June 21, 2009 10:17PM |
Admin Registered: 20 years ago Posts: 8,532 |
This module implements a simple subforums system for Phorum. It was build because we have regularly seen requests for an implementation of subforums on these forums. While we (the Phorum lead developers) still do not see the big advantage of using subforums over Phorum's approach of using folders + forums, it was a nice exercise to see what the Phorum module system is capable of ;-)
For a demo of a running 5.2 Phorum install with this module enabled, see my test system. You can login using username "phorum" and password "phorum" if you like to play around some more.
Features:
The README in the module package describes in detail how to setup the subforums.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Edited 2 time(s). Last edit at 08/16/2009 04:34PM by Maurice Makaay.
For a demo of a running 5.2 Phorum install with this module enabled, see my test system. You can login using username "phorum" and password "phorum" if you like to play around some more.
Features:
- On the index page, subforums will be listed as simple links below each forum that has subforums;
- Formatting of these subforum links is based on a template, so it is possible to modify this list to your needs (e.g. by creating a vertical subforum list instead of using the default horizontal one);
- On the message list page, details for the available subforums are listed at the top of the page;
- The breadcrumbs will be modified to represent the subforum structure;
- When marking a forum as read on the index page, then its subforums will automatically be marked read as well;
- No changes needed in Phorum's main templates.
The README in the module package describes in detail how to setup the subforums.
Changelog: ---------- 2009-08-16 v1.0.1 - Fix for an undefined index warning from PHP. There's no functional change in this release, but this prevents a PHP warning from being displayed on systems that have error reporting to the output page enabled. 2009-06-21 v1.0.0 - Initial release.
Maurice Makaay
Phorum Development Team



Edited 2 time(s). Last edit at 08/16/2009 04:34PM by Maurice Makaay.
Re: Module: Subforums June 22, 2009 12:11AM |
Registered: 15 years ago Posts: 46 |
June 22, 2009 03:12AM |
Admin Registered: 20 years ago Posts: 8,532 |
No, I did not take sub-sub-forums into account here. That is just too obfuscated, since you'll only see those sub-sub-forums once you're in a sub-forum. With this implementation, you know at least what is coming. Feel free to take this implementation though and rewrite it for sub-(sub-)*forum support.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



August 16, 2009 04:35PM |
Admin Registered: 20 years ago Posts: 8,532 |
Released version 1.0.1 of this module, which solved a PHP warning about an undefind index ("TYPE"). You only need to upgrade, if the PHP settings for error reporting on your server will cause the PHP warning to be displayed in the browser.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Module: Subforums August 25, 2009 06:08PM |
Registered: 15 years ago Posts: 5 |
Re: Module: Subforums September 07, 2009 07:48AM |
Registered: 19 years ago Posts: 4 |
Hey,
i recently setup the subforum module and it works great so far.
Now i have a feature request or a bug report (don`t know):
First a illustration of my setup (taken from README)
Root
|
+--- Folder (category 1)
| |
| +--- Folder
| | |
| | +--- Forum (forum 1)
| | |
| | +--- Forum (subforum 1.1)
| | |
| | +--- Forum (subforum 1.2)
All forums are restricted to a user group and were not shown outside this group.
If i take a common folder (in flat view) and put my restricted forums into it, the folder was also hidden for non grouped users.
Not so if i use subforums. The category 1 is shown for all users, even public ones.
Did i something wrong or is there a bug inside the module?
Thanks in advance
Stefano
i recently setup the subforum module and it works great so far.
Now i have a feature request or a bug report (don`t know):
First a illustration of my setup (taken from README)
Root
|
+--- Folder (category 1)
| |
| +--- Folder
| | |
| | +--- Forum (forum 1)
| | |
| | +--- Forum (subforum 1.1)
| | |
| | +--- Forum (subforum 1.2)
All forums are restricted to a user group and were not shown outside this group.
If i take a common folder (in flat view) and put my restricted forums into it, the folder was also hidden for non grouped users.
Not so if i use subforums. The category 1 is shown for all users, even public ones.
Did i something wrong or is there a bug inside the module?
Thanks in advance
Stefano
Re: Module: Subforums January 13, 2010 06:33AM |
Registered: 15 years ago Posts: 60 |
January 13, 2010 10:43AM |
Admin Registered: 20 years ago Posts: 8,532 |
Not intentionally anyway. I guess it should work for other viewing modes as well. Are you having problems with this or are you just inquiring about the feature?
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Module: Subforums January 15, 2010 03:54AM |
Registered: 15 years ago Posts: 60 |
I have the sub-forums module setup and it works perfectly when the forum is in flat structure, however when I switch to directory structure the sub-forums disappear and appear as folders at the top.
I did a little debugging of the code and it would appear then when in directory structure the folders and forums get split into separate variables within the main index.php code and only the forums array is passed into the module.
As you say, it would be good if it worked in all views but it's not a pressing concern. I am happy to help with testing / debugging if you do make any changes.
Thanks, Jon.
I did a little debugging of the code and it would appear then when in directory structure the folders and forums get split into separate variables within the main index.php code and only the forums array is passed into the module.
As you say, it would be good if it worked in all views but it's not a pressing concern. I am happy to help with testing / debugging if you do make any changes.
Thanks, Jon.
Re: Module: Subforums March 10, 2010 02:43AM |
Registered: 15 years ago Posts: 63 |
Sorry, only registered users may post in this forum.