News:

Wondering if this will always be free?  See why free is better.

Main Menu

Multiple Forum Mod

Started by Avail, November 24, 2009, 09:59:59 AM

Previous topic - Next topic

Avail

Link to Mod

This modification allows you to display different categories on different 'subforums'. When using the term 'subforum', I am referring to a pseudo-forum located on a different directory, subdomain, or domain than the 'primary forum'. The primary forum is any forum that has this modification installed.

For the most part, usage of this customization is relatively simple in nature. After installing the mod, you are able to change the 'forum id' (a numerical value used to identify each forum) of main forum through Server Settings.

To work with subforums, simply go to the Modifications section under the Configuration category in your administration panel. There are two new pages here: 'Subforum Settings' and 'Create New Subforum'. A subforum is able to store these specific settings: board title, board url, and forum id. You can only create a new subforum through the primary forum, and you can only modify subforum settings inside a subforum.

Creating a subforum is extremely easy. All you must do is fill out the information inisde the Create New Subforum page and submit the form. It will generate the code for your subforum's index.php. You must then copy and paste that code into the file it specifies, and you are done. Going to that address will display your subforum.

In order to split categories, each category is specifically set to display for one id. In future versions of this customization, there may be support for multiple ids that the categories can be displayed on, but for now, it's limited to one. You are able to specify which forum the category will be displayed on through the category edit page. You specify the forum using its id.

To-do List

  • Bug: Fix recent posts on board index (shows some posts on other subforums)
  • Bug: Code for outputting index.php should split '?>' into '?'.'>'
  • Bug: Compounding domains?
  • Bug: Problems with absolute versus relative paths
  • Bug: Wide-support for SSI.php (perhaps find a way so that it does not need to be included within subdomain directory!)
  • Feature: Subforum-specific settings and permissions ('subforum' moderators?)... settings[GLOBAL: trim boards/membergroups in admin panel, enable 'subforum moderators' SUBFORUM: show statistics, name, board title, board url, cross-site enabled[encryption/decryption key], cookie, subforum-specific news, registration agreement]
  • Feature: Allow boards/membergroups to be displayed on multiple subforums simultaneously
  • Feature: Remove 'wrong forum' error message and force a redirect to the destination board
  • Feature: Allow subforums to have different themes and languages than the master parent
  • Feature: Create per-subforum administration system (specific membergroups, specific bans, ...?)
  • Possible feature: Automated FTP creation of the subdomain directory (will likely require root FTP access, so this feature may not be added yet)
  • Possible feature: Cross-site subforums

All of the features above will be added into the next version of the modification. I'll be rewriting it completely from scratch, as the old version will be too hard to build upon.

Kreator

I assume that you need to add all the php original files to the subforum?


Arantor

No. You just add the index.php, which includes all the other files from the master set.

Avail

Quote from: Arantor on November 25, 2009, 07:41:41 PM
No. You just add the index.php, which includes all the other files from the master set.

That, and optionally agreement.txt. Otherwise, the agreement in the subforum registration pages will be empty.

Kreator

 
Quotewhich includes all the other files from the master set.

does it?? i made a index.php and stuck it in a new folder on my server nothing happens !

all thats in this folder is the index.php

SoLoGHoST

Sounds like an interesting mod, however, a few pics on it would be nice...??

Arantor

Quote from: Kreator on November 26, 2009, 02:10:18 AM
does it?? i made a index.php and stuck it in a new folder on my server nothing happens !

all thats in this folder is the index.php

Provided it has the correct paths set up when you create it from the Create Subforum area it should work.

Avail

Quote from: SoLoGHoST on November 26, 2009, 02:35:20 AM
Sounds like an interesting mod, however, a few pics on it would be nice...??

Ah yes, I forgot about uploading some pictures. Thanks for reminding me. :)

kingkingston


Arantor

I have :)

But then again I was one of the ones testing it. Works very nicely, IMO.

kingkingston

Quote from: Arantor on November 28, 2009, 02:48:48 PM
I have :)

But then again I was one of the ones testing it. Works very nicely, IMO.
Well you can always trust the Arantor Rex

kingkingston


kingkingston

the only thing i would want to see added is the ability to switch boards from forum to forum because if you already have forums set up i can't think where you can do that.

Kreator

I can`t get it to work...

I get this fatal error each time I go to the subforum:

Fatal error: require_once() [function.require]: Failed opening required '/customers/animanon.com/animanon.com/httpd.www/Kreator/SSI.php' (include_path='.:/usr/share/php') in /customers/animanon.com/animanon.com/httpd.www/Forum3/Sources/Subs-Portal.php on line 100


kingkingston

Quote from: Kreator on November 28, 2009, 06:07:23 PM
I can`t get it to work...

I get this fatal error each time I go to the subforum:

Fatal error: require_once() [function.require]: Failed opening required '/customers/animanon.com/animanon.com/httpd.www/Kreator/SSI.php' (include_path='.:/usr/share/php') in /customers/animanon.com/animanon.com/httpd.www/Forum3/Sources/Subs-Portal.php on line 100
it doesn't work on 1.1.10 if that's what your using

Arantor

You're also not supposed to use SSI inside portal blocks.

Kreator

#16
Using SMF2 RC 2 ..... Just out of interest I stuck my SSI.php from original Forum  into the new SubForum/directory and  behold it now works..!!!


QuoteYou're also not supposed to use SSI inside portal blocks.


I wouldn`t know anything about that, The SimplePortal would have made those mods when I installed it!

Hoodie

Are paid subscriptions shared using this modification?  Also any mods that we make on the main forum will show up across the sub-forums as well correct?  Basically this is just creating SUPER categories to make it look like it's own forum right?

Arantor

Yes, the forums are shared on a single code base, and yes it is basically like super categories.

Hoodie

Very nice mod then..  I think this will work perfectly for what I'm trying to do..

Only suggestion I would have but I'm not sure how much it would involve is to be able to select different themes individually for each sub-forum..

Advertisement: