Firefox PHP

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
Module: Subforums
June 21, 2009 10:17PM
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:

  • 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
my blog linkedin profile secret sauce



Edited 2 time(s). Last edit at 08/16/2009 04:34PM by Maurice Makaay.


Attachments:
open | download - subforums-1.0.1.tar.gz (5.7 KB)
open | download - subforums-1.0.1.zip (7.9 KB)
Re: Module: Subforums
June 22, 2009 12:11AM
Hello Maurice,

Does this mod also support sub-sub-forums so that you can drill down within a topic and become more and more specific? I think that it only makes sense to display sub-sub-forums on the message list pages and not the start page.

Philip
Re: Module: Subforums
June 22, 2009 03:12AM
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
Re: Module: Subforums
August 16, 2009 04:35PM
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
Re: Module: Subforums
August 25, 2009 06:08PM
Hi

I am using this subforum mod and it works great but I do notice that posts made in the subforums are not showing in the topic count of the main forum. Can this be coded in?

Regards
Mark
Re: Module: Subforums
September 07, 2009 07:48AM
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
Re: Module: Subforums
January 13, 2010 06:33AM
Hi,

Quote
Me
Previously wrote some stuff thats now irrelevant.

Does this module only work when the phorum is in Flat Structure mode ?

Thanks, Jon.



Edited 1 time(s). Last edit at 01/13/2010 06:46AM by tankslap.
Re: Module: Subforums
January 13, 2010 10:43AM
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
Re: Module: Subforums
January 15, 2010 03:54AM
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.
Re: Module: Subforums
March 10, 2010 02:43AM
does the subforum works only in emerald ?

I am using Simple blue template ..But it is not working
Sorry, only registered users may post in this forum.

Click here to login