Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: dougiefresh on May 27, 2014, 07:55:49 AM

Title: Split Forum Mod
Post by: dougiefresh on May 27, 2014, 07:55:49 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3730)



SPLIT FORUM MOD v2.0 BETA 3
By Dougiefresh (http://www.simplemachines.org/community/index.php?action=profile;u=253913) -> Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3730)



Introduction
This modification allows you to divide your categories into subforums, 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.

What It Does
Quote from: Terry at Moke on June 26, 2014, 09:43:55 PM
It is a mod for the User side of things, but obviously it needs to be managed in the Admin pages to create the subforums, and this mod allows you to create Categories and Boards that appear to the end user as a separate Forum, either via the URL or even the domain name, and these separate Forums can have their own Themes as well. However it all shares the same database as your original forum so usernames, passwords, profiles etc are all the same so there is less for you and the end users to manage.

Without this mod if you wanted to limit access to particular Boards based you could set up a membergroup and just give them access to the Board(s) required and then they would see the extra Board(s) as part of the main Forum page, however they would still see the rest of the Forum as it is with the same theme etc. Yes you can change the theme for a Board but that would be a bit abrupt in most cases.

With this mod you are essentially doing the same thing with the Membergroup and Board(s) regarding settng up the access but they get to see the Boards as a separate Forum, without all the other boards they might have access too and with a completely different theme if you wish. In the subForum they see the same stats, who is online, News, menu options etc. relative to the membergroup access they have, but with just the Boards you have chosen for them to see.

Admin Alterations
There is a new area at Admin -> Forum -> SubForums, which allows you to manage your subforums here.  Clicking on the board title on the left side will take you to the subforum itself.  Clicking on the Boards link on the right side will take you to the Admin -> Forum -> Boards area, restricted to that subforum.

On the primary subforum, creating a subforum is as easy as clicking on the Create New SubForum tab (and/or button) and filling out the information in order to create your new subforum.  This mod can create the folder and generate an "index.php" if required.  Subforum user registration agreements are mantained by the mod.

Clicking on Modify opens a page where you can change settings for that subforum, such as:
o Changing the title of the subforum
o Changing the server URL and/or path of the subforum
o Adding a favorites icon to the subforum
o Changing the default theme of the subforum
o Changing the default language of the subforum
o Changing the subforum ID on secondary subforums
o Changing the primary membergroup of new users registered to the subforum

Clicking on the Delete button will prompt what to do with categories within the board and will delete once the decision has been made by the user.

On the Admin -> Forum -> Boards page using the primary subforum, the categories and boards are seperated by which subforum they belong to.  On secondary subforums, only those categories and boards that belong to that subforum show up.

"Package Manager" and "Server Settings" settings are not available to Subforums, as these screens contain sensitive information that affects all subforums.

All recent posts, xml-based feeds, and other forum-related functionality works for each of the individual subforums.

New Hook Added
o integrate_subforum_subdomain - Hook for creating/deleting subdomains and/or domains

Special Credits
o Greygal (http://www.simplemachines.org/community/index.php?action=profile;u=394494) made the mod compatible with Event Registration for SMF2 (https://custom.simplemachines.org/mods/index.php?mod=3238) in 3 posts starting here (http://www.simplemachines.org/community/index.php?topic=523055.msg3767088#msg3767088)!  Thanks, greygal!!
o KSRandom (https://www.simplemachines.org/community/index.php?action=profile;u=478373) added control over user membergroups per subforum!

Compatibility Notes
This mod was tested on SMF 2.0.15, but should work on SMF 2.1 Beta 3, as well as SMF 2.0 and up.  SMF 2.1 Beta 1 and 2, as well as SMF 1.x, is not and will not be supported.

These optional mods should be installed (if desired) prior to this mod's installation:
o Alias Boards v1.2+ (https://custom.simplemachines.org/mods/index.php?mod=1024)
o Pretty URLs (https://custom.simplemachines.org/mods/index.php?mod=636)
o SimplePortal v2.3.6 (https://custom.simplemachines.org/mods/index.php?mod=1104)
o ezPortal (https://custom.simplemachines.org/mods/index.php?mod=1461)
o Like Posts (https://custom.simplemachines.org/mods/index.php?mod=3708)
o Event Registration for SMF2 (https://custom.simplemachines.org/mods/index.php?mod=3238)

Changelog
The changelog has been removed and can be seen at XPtsp.com (http://www.xptsp.com/board/index.php?topic=17.msg328#msg328).

License
QuoteCopyright (c) 2013 - 2018, Douglas Orend, Kirk Sykora
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Title: Re: Split Forum Mod
Post by: DenDen60 on May 27, 2014, 10:20:07 PM
Thanks for sharing this.

I will try it out.

Denis
Title: Re: Split Forum Mod
Post by: Streamlife on June 06, 2014, 12:46:01 PM
Hello there  Dougiefresh
am trying to Install you Mod and i get this error

( more simple i Put the First post i made about this here )

http://www.simplemachines.org/community/index.php?topic=523521

You can read all there, One person there named "margarett" told me i must ask for help here
"thanks again margarett ;) 

And i hope can Give me a hand with this, i really need this mod!
Thanks advance
Best regards.
Title: Re: Split Forum Mod
Post by: dougiefresh on June 14, 2014, 04:57:59 PM
Quote from: streamdark on June 06, 2014, 12:46:01 PM
Hello there  Dougiefresh
am trying to Install you Mod and i get this error

( more simple i Put the First post i made about this here )

http://www.simplemachines.org/community/index.php?topic=523521

You can read all there, One person there named "margarett" told me i must ask for help here
"thanks again margarett ;) 

And i hope can Give me a hand with this, i really need this mod!
Thanks advance
Best regards.
Sorry about the late response to your post....

I read the topic in question and located the error you sent....  I am showing the image provided by you in the other post below:
(http://i.imgur.com/i6ioue7.png)

It might help if you could copy and paste the text that starts "Note: Parece" into a reply....
Quote from: streamdark on June 06, 2014, 11:42:07 AMOn English
Note: It appears that your database may require an upgrade. The version of your files are in the SMF forum version 2.0.7, while your database is at version SMF 2.0.4. This error will probably go away if you run the latest version of upgrade.php.

I'm gonna need to investigate why this might be occurring.... 
Title: Re: Split Forum Mod
Post by: dougiefresh on June 16, 2014, 07:27:33 AM
REMOVED: I've modified the edit_db.php file so that more fields have defaults and the insert performed by the mod has fields removed that have a default.  Please try the attached file....
Title: Re: Split Forum Mod
Post by: Terry at Moke on June 23, 2014, 09:21:29 AM
Hi,

I installed Split Forum mod to have a play with it and see what it could do and everything was pretty straightforward however when I look at the Subforum I see all the rest of the page but the SubForum Board that I created in the Admin panels. I can see the Board I created  in the list of boards in the Primary Forum hompage but nothing in my Soubforum Homepage.

I started again using just the defaults provided and making as few modifications as possible to them and still the Board doesn't appear when I tried to view the subfroum, but everythng else on the page is there. I thought it might be a permision issue so I have single membergroup with just my userid in it looking at just that board and still no go. I did have issues earlier on because I move my forum from a localhost environment, where I initially install Split Forum, onto its normal domain account and had to change the path names, which is one reason why I uninstalled/re-installed Split Forum to make sure only the right paths were being used.

Any suggestions as to why my Sub Forum boards may not be displaying properly?

One other issue that might be relevant, or could be just the way things are coded and needs to be looked at, is when selecting the 'Board' link from the Manage SubForum page I get taken to the Boards page and I don't see any boards at all and get a message "No categories or Board configured'. I then have to select the either 'Modify Boards' icon or 'Boards' menu item to redisplay the page with all the Categories and Boards now showing.

To explain that more, when I go to this page, http://www.mydomain/Forum/index.php?action=admin;area=manageboards;sub=1, from the Board link for my SubForum on the Manage Subforum page I get no boards or Cats displayed and I have to reload the page from another option. The difference seems to be that the following is dropped from the URL when coming via the Manage SubForums Link, 'ca810dd9c9=e5bfd1933b60b7cdf6a138831402344b'.

Terry
Title: Re: Split Forum Mod
Post by: dougiefresh on June 23, 2014, 10:52:40 AM
I wrote the subforum mod so that when you clicked the boards link on the Manage Subforum page, you got to look at JUST that subforum's boards and categories.  I kinda thought it would be self-explanatory; however, it appears not  :-[

So I'll rewrite the Modify Boards template so that the subforums show up as tabs on the screen, and each subforum's boards and categories show up in the tabs.....  Clicking the "Manage Boards" link would take you to the primary subforum's boards and each tab would take you to that subforum's boards....  Instead of the current confusing mess....
Title: Re: Split Forum Mod
Post by: dougiefresh on June 23, 2014, 01:37:41 PM
Uploaded v1.1 - June 23, 2014
o Added English UTF8 language strings
o Changed the method that subforum boards and categories are listed to a tabbed system
o edit_db.php modification to attempt to eliminate some weird error...

The attached image is what the "new" boards and categories screen looks like with, being a tabbed interface....  Since non-primary subforums can't manage boards and categories in other subforums, you won't see the tabbed interface in subforums....  Note the admin panel sidebar in the picture was changed using Real Tabs for Admin & Moderator Menus (http://custom.simplemachines.org/mods/index.php?mod=3796), hence their changed appearance...  This mod also shares the realtabs.css found in the other mod, too...
Title: Re: Split Forum Mod
Post by: Terry at Moke on June 23, 2014, 06:41:25 PM
Quote from: dougiefresh on June 23, 2014, 10:52:40 AM
I wrote the subforum mod so that when you clicked the boards link on the Manage Subforum page, you got to look at JUST that subforum's boards and categories.  I kinda thought it would be self-explanatory; however, it appears not  :-[

Hi,

That is how I expected it would work, just the boards defined for the Subforum selected, so for some reason I am not getting to see the one board I have defined until I display all board. Because it is not displaying here I thought it might be in some way connected to the real issue for me and that is not being able to see the Board when viewing the Subforum.

I will download your updated version and see if I fare any better.

Thanks,
Terry
Title: Re: Split Forum Mod
Post by: dougiefresh on June 25, 2014, 04:18:25 AM
Updated v1.2 - June 25, 2014
o Fixed REALLY bad problem in version 1.1 resulting in errors in admin screen!

OMG  :o  If you've experienced this issue, here's how to fix this issue for Version 1.1.  Open up Sources\Admin.php and REMOVE THIS CODE:


// BEGIN MOD Real Tabs for Admin/Moderator
require_once($sourcedir . '/Subs-RealTabs.php');
RT_Reorganize($admin_areas);

This code should NEVER have appeared in this mod, and I apologize for my oversight on this issue....
Title: Re: Split Forum Mod
Post by: Terry at Moke on June 25, 2014, 08:54:21 AM
Hi,

Thanks for fixing that.

I did hit that problem and so I commented the lines out but had some other conflict in /sources/admin.php that I need to resolve before I can play with it again. 

Terry

Title: Re: Split Forum Mod
Post by: dougiefresh on June 25, 2014, 03:47:35 PM
You're welcome!!  Do you have the Real Tabs for Admin and Moderator Areas mod installed?  If so, that mod also makes the change:
Code (Find) Select
loadTemplate('Admin', 'admin');
Code (Replace) Select
loadTemplate('Admin', array('admin', 'realtabs'));
You can just ignore this error during install.  Just be aware that uninstalling this mod will also undo that line for the Real Tabs mod, as well....
Title: Re: Split Forum Mod
Post by: JOSHSKORN on June 26, 2014, 06:09:10 AM
I'm having trouble understanding what this mod does.  Is this really for an Admin, only?  Just wondering, since there are only screen shots of the Admin CP and not the Forum. Just wondering how this affects the users.
Title: Re: Split Forum Mod
Post by: dougiefresh on June 26, 2014, 05:58:52 PM
Quote from: JOSHSKORN on June 26, 2014, 06:09:10 AM
I'm having trouble understanding what this mod does.  Is this really for an Admin, only?  Just wondering, since there are only screen shots of the Admin CP and not the Forum. Just wondering how this affects the users.
Most of the VISIBLE modifications are to the admin area.  Users won't really notice that the mod is installed unless you uninstall the mod, then all defined categories and boards will be visible on the primary forum.

Primarily, what this mod does is allows the administrator(s) to create multiple subforums using one forum software.  So, in order words, you can have the following paths:
httx://www.mywebsite.com/forum/index.php and
httx://www.mywebsite.com/admin/index.php
or even:
httx://www.myfirstwebsite.com/ and
httx://www.mysecondwebsite.com/
Each address appears to be a completely seperate forum from the other(s), but you're only running one copy of the forum software.  Note that you can create more than just 2 subforums, and you can host multiple domains using the same forum software or multiple forums on the same domain.

For the primary forum, admins can create and remove subforums, create categories and boards for each subforum, and manage other small details of each subforum.  Subforums are restricted to management of their own categories and boards.
Title: Re: Split Forum Mod
Post by: Terry at Moke on June 26, 2014, 09:43:55 PM
Hi,

I had the Split Forum Mod working now, not sure why it wasn't working before but I just un-installed everything and started again with  clean SMF and no packages and then installed and created the Sub Forum and it is doing what it is supposed to be doing. Thank you.

Now I can play with it. :)

Quote from: JOSHSKORN on June 26, 2014, 06:09:10 AM
I'm having trouble understanding what this mod does.  Is this really for an Admin, only?  Just wondering, since there are only screen shots of the Admin CP and not the Forum. Just wondering how this affects the users.

It is a mod for the User side of things, but obviously it needs to be managed in the Admin pages to create the subforums, and this mod allows you to create Categories and Boards that appear to the end user as a separate Forum, either via the URL or even the domain name, and these separate Forums can have their own Themes as well. However it all shares the same database as your original forum so usernames, passwords, profiles etc are all the same so there is less for you and the end users to manage.

Without this mod if you wanted to limit access to particular Boards based you could set up a membergroup and just give them access to the Board(s) required and then they would see the extra Board(s) as part of the main Forum page, however they would still see the rest of the Forum as it is with the same theme etc. Yes you can change the theme for a Board but that would be a bit abrupt in most cases.

With this mod you are essentially doing the same thing with the Membergroup and Board(s) regarding settng up the access but they get to see the Boards as a separate Forum, without all the other boards they might have access too and with a completely different theme if you wish. In the subForum they see the same stats, who is online, News, menu options etc. relative to the membergroup access they have, but with just the Boards you have chosen for them to see.

What I am trying to acheive with this mod is to offer 'Personal' Forums, at a cost, to members of one of a larger Forums where they can choose who they wish to share with and what 'their' forum is going to look like etc,  and the advantage to me and them is there is not another complete forum, database and user environment to manage. It is then hoped that these people who were once active, but now just spectators, will be more active in their involvement and less intimidated by the larger audience and the more over bearing souls the general forum has attracted. If they are back an postsing in a more intimate environment they may feel encouraged to post more in the public forum or at least we haven't lost them to other forums or groups.

If you think of it in terms of Facebook(cough cough) they offer public and private groups and to compete with and attract people back from the FB and other private groups I think this mod offers a way to do that for our Forum.

Terry
Title: Re: Split Forum Mod
Post by: dougiefresh on June 27, 2014, 07:58:58 PM
Quote from: Terry at Moke on June 26, 2014, 09:43:55 PM
It is a mod for the User side of things, but obviously it needs to be managed in the Admin pages to create the subforums, and this mod allows you to create Categories and Boards that appear to the end user as a separate Forum, either via the URL or even the domain name, and these separate Forums can have their own Themes as well. However it all shares the same database as your original forum so usernames, passwords, profiles etc are all the same so there is less for you and the end users to manage.

Without this mod if you wanted to limit access to particular Boards based you could set up a membergroup and just give them access to the Board(s) required and then they would see the extra Board(s) as part of the main Forum page, however they would still see the rest of the Forum as it is with the same theme etc. Yes you can change the theme for a Board but that would be a bit abrupt in most cases.

With this mod you are essentially doing the same thing with the Membergroup and Board(s) regarding settng up the access but they get to see the Boards as a separate Forum, without all the other boards they might have access too and with a completely different theme if you wish. In the subForum they see the same stats, who is online, News, menu options etc. relative to the membergroup access they have, but with just the Boards you have chosen for them to see.
Excellent description!  Can I use it for the mod's description?
Title: Re: Split Forum Mod
Post by: Terry at Moke on June 27, 2014, 08:36:26 PM
Hi,

If you like it that much, sure you can use it. :)

Terry
Title: Re: Split Forum Mod
Post by: dougiefresh on June 28, 2014, 07:44:44 PM
It's now included in the first post of this thread and will be included in future versions of the mod.  Thanks, Terry!




UPDATE: I received a PM asking why I named some of the database fields the way I did.  I want to answer this question publicly, even though I answered the question via PM as well, primarily because I wanna explain the logic behind this...

I named the database fields those names because they are names of the variables that replace the settings found in Settings.php.  Just trying to keep things straight in my poor brain, if ya know what I mean  ;D   :P  That being said, that table may be disappearing sometime soon, as those settings migrate into a php file that gets read at runtime, saving a call to the database and time....  Also the ManageSplitForums scripts will have to be rewritten to accommodate these changes....
Title: Re: Split Forum Mod
Post by: dougiefresh on July 04, 2014, 04:14:18 PM
Uploaded v1.3 - July 4th, 2014
o Changed name of new subforums to "SubForum # [n]" (where [n] is the new subforum ID)
o Total rewrite of edit_db.php, now renamed to db_install.php....
o Added support for listing undefined subforum IDs present in the system.
o Changed Database calls upon loading and subforum management to use arrays.
o Seperated English and English-UTF8 language strings into their own file.
o Added code to prevent global subforum administration from subforums.

All subforum settings that were moved from the database are in the Settings.php file in the forum root folder.
Title: Re: Split Forum Mod
Post by: nuberry on July 07, 2014, 09:56:46 AM
Hi , please excuse my ignorance , but will this allow me to create sub forums like angling clubs with say their own moderators , admin and enable them to allow them to approve there own members . In other word they will be able to select if its an open forum or member or a combo of both . the essential thing for us is that they can select there own approvals . basically run there own mini forum

many thanks :)
Title: Re: Split Forum Mod
Post by: dougiefresh on July 11, 2014, 06:50:10 PM
Quote from: nuberry on July 07, 2014, 09:56:46 AM
Hi , please excuse my ignorance , but will this allow me to create sub forums like angling clubs with say their own moderators , admin and enable them to allow them to approve there own members . In other word they will be able to select if its an open forum or member or a combo of both . the essential thing for us is that they can select there own approvals . basically run there own mini forum

many thanks :)
This is a good question.  Right now, the mod is designed to allow the users that register in any of the subforums to access the other subforums with the same username/password combo.  The only thing administrators of subforums can't do is managing other subforums and install/uninstall packages.  If a member is approved for one subforum, they have access to all of them (provided they know about them).

I would think that seperating the members by subforum would be possible, however, it would also mean that if one member registered with one subforum and found another, their username would be already in use and can't use it to sign up at the other one....  Plus there is currently no way to track which subforum a member signed up through, so suddenly making this change might make things more difficult if this mod has already been in use because all users would default to the primary forum....

Would this ability be something you would like to see as a part of this mod?  Any other ideas to go along with it?
Title: Re: Split Forum Mod
Post by: dougiefresh on July 13, 2014, 03:09:06 PM
Quote from: dougiefresh on July 11, 2014, 06:50:10 PM
suddenly making this change might make things more difficult if this mod has already been in use because all users would default to the primary forum....
I thought about this statement some more and decided that if this change were made, the forum software could look for users both in the primary subforum and the secondary subforums, so this wouldn't be a big issue....  Registering per subforum is definitely possible, but the username couldn't be used between each subforum.
Title: Re: Split Forum Mod
Post by: DoctorVox on July 24, 2014, 05:09:53 AM
I'm having a problem where none of the forums made on the subforum can be accessed.

QuoteThe board you specified is located on a different forum

I've tried removing and remaking the subforum several times, and it keeps happening. The subforum doesn't appear to show up in the subforum SQL table, taking a peek through phpMyAdmin, but none of the original boards from the main forum show up when I go to the subforum so I assume it's working right. I just can't access any of the subforum's boards.

Any idea what could be causing this?

Also, any plans for an easy way to move boards from the main forum to the subforum?
Title: Re: Split Forum Mod
Post by: margarett on July 24, 2014, 08:00:27 AM
Referring to the previous discussion, just a thought ;)
If you are to have separate boards and members, wouldn't it be easier to just have separate forum installations? To me, the biggest advantage of this is exactly a content strict separation with shared member base ;)
Title: Re: Split Forum Mod
Post by: dougiefresh on July 24, 2014, 04:25:08 PM
Quote from: DoctorVox on July 24, 2014, 05:09:53 AM
I'm having a problem where none of the forums made on the subforum can be accessed.

QuoteThe board you specified is located on a different forum

I've tried removing and remaking the subforum several times, and it keeps happening. The subforum doesn't appear to show up in the subforum SQL table, taking a peek through phpMyAdmin, but none of the original boards from the main forum show up when I go to the subforum so I assume it's working right. I just can't access any of the subforum's boards.

Any idea what could be causing this?
Let me take a look at the issue....

Quote from: DoctorVox on July 24, 2014, 05:09:53 AM
Also, any plans for an easy way to move boards from the main forum to the subforum?
Your statement tells me I broke an intended feature..... That's a bummer  :-[  Let me look into that issue as well....

EDIT: At present, the intention of the mod is to have categories seperated by subforums.  Boards are a part of the category.  You should be able to move the category from one subforum (or the main forum) to another subforum (or the main forum) ONLY if you are doing so from the PRIMARY forum.  Subforums are only able to move boards and categories around in their own "private" space, not to another subforum.  Does this answer your question?
Title: Re: Split Forum Mod
Post by: ryan_dwight on July 24, 2014, 06:07:18 PM
Pardon my stupid question but I can't find how to add board on the new sub forum?
I don't know if I miss something but is it possible to move a certain board of topic from the main forum to the subforum?
Title: Re: Split Forum Mod
Post by: DoctorVox on July 24, 2014, 09:30:18 PM
Quote from: dougiefresh on July 24, 2014, 04:25:08 PM
Your statement tells me I broke an intended feature..... That's a bummer  :-[  Let me look into that issue as well....

EDIT: At present, the intention of the mod is to have categories seperated by subforums.  Boards are a part of the category.  You should be able to move the category from one subforum (or the main forum) to another subforum (or the main forum) ONLY if you are doing so from the PRIMARY forum.  Subforums are only able to move boards and categories around in their own "private" space, not to another subforum.  Does this answer your question?

Trying from the primary board, there appears to be no option to move the category to another subforum via the category modify menu, and trying to open a subforum category's modify menu brings me back to the boards area on the main forum.

I did find one work-around while poking around. Category table in the SQL database. Forumid option. Changing the 0 to a 1 moved the entire category. I had tried that before shortly after my message, but didn't know if it would have worked if I wasn't having the "forum on another board" issue.
Title: Re: Split Forum Mod
Post by: dougiefresh on July 25, 2014, 04:01:19 AM
Quote from: DoctorVox on July 24, 2014, 09:30:18 PM
Trying from the primary board, there appears to be no option to move the category to another subforum via the category modify menu, and trying to open a subforum category's modify menu brings me back to the boards area on the main forum.
Quote from: ryan_dwight on July 24, 2014, 06:07:18 PM
Pardon my stupid question but I can't find how to add board on the new sub forum?
:o Last night, I confirm ed that there were several bugs in the Manage Boards UI and have fixed a few of them.....  Will post a new version once I have gotten rid of them....  ???

Quote from: ryan_dwight on July 24, 2014, 06:07:18 PM
I don't know if I miss something but is it possible to move a certain board of topic from the main forum to the subforum?
Quote from: DoctorVox on July 24, 2014, 05:09:53 AM
Also, any plans for an easy way to move boards from the main forum to the subforum?
I'll rewrite modify the UI so that moving boards to categories under a different subforum is possible, but only from the primary forum.
Title: Re: Split Forum Mod
Post by: dougiefresh on July 26, 2014, 08:02:43 PM
Uploaded v1.4 - July 26th, 2014
o While changing the subforum a category is assigned to, the category order list now changes.
o Added the ability to move boards between subforums
o Fixed multiple Manage Boards UI bugs, resulting from subforum ID not being passed
o Fixed an undeclared array element error found in Load.php
o Modified tab system so that it works better with revised move boards ability
o Modified db_install.php so that it doesn't overwrite previous subforum settings when installing
o Removed code from uninstall.php that automatically removes subforum files...



@DoctorVox and @ryan_dwight: This update should fix the problems you reported.  Thanks for the bug report!
Title: Re: Split Forum Mod
Post by: skeletonkiss on July 29, 2014, 03:59:18 PM
I'm currently using Simple Portal, and I want to make a 'sister site' for my roleplaying site; ideally I wanted this to be within my original forum, but have an entirely different look and feel, with a new theme, and newly styled Simple Portal blocks. Since I had thought of doing it as a regular sub forum, which quickly got squashed as I realized I could not achieve actual categories this way, your mod is basically -exactly- what I was looking for.

There's just one problem; the simple portal blocks carry over to both the main forum, and the newly created sub forum. I cannot seem to either add new blocks that -only- show on the new one, nor exclude existing ones from showing. And anything that is set to display on 'forum' shows universally.

Is there a way, even in the tables in the database, to add the new forum in? I tried adding the board id but even when added directly to the table (versus checking the box within the block settings in the portal manager), new blocks are not showing up, and as stated before, I see no way to exclude existing ones from showing in the new board, either.

This mod is so perfect for what I was going for, but thats a bit of a deal breaker for me, if there's no way to add portal blocks in for this specific board...
Title: Re: Split Forum Mod
Post by: dougiefresh on July 29, 2014, 05:17:39 PM
I would have to look at the Simple Portal mod and see how it integrates into everything else, in order to see what I'd have to do to make it work for ya....
Title: Re: Split Forum Mod
Post by: skeletonkiss on July 29, 2014, 05:27:21 PM
I would very much appreciate any help you could give me with this. ^^
Title: Re: Split Forum Mod
Post by: dougiefresh on July 29, 2014, 07:16:29 PM
I just installed Simple Portal on a clean test localhost forum and looked at the files.  It looks like there are three files in the Sources folder to modify and probably will have to do some editing on the templates, too....  I might be able to hack something up this weekend....
Title: Re: Split Forum Mod
Post by: skeletonkiss on July 29, 2014, 07:20:21 PM
That would be amazing. I love that mod, and yours does exactly what I need, except for that one thing. Would it be possible, since the way SP works is you can set blocks to portal, forum, some of the other pages like profile, pm's, etc, then each board indivually, to have the forum setting, which is what controls what blocks you see on the board index, be able to select 'forum 0' 'forum 1', etc? Since the mod obviously makes the new 'board' have a unique forum id, would that be possible? So I could have a set of blocks that showed on the index for forum 0, the main board, then a second set that showed  on the index for the second board, forum 1?
Title: Re: Split Forum Mod
Post by: dougiefresh on July 29, 2014, 07:34:55 PM
Quote from: skeletonkiss on July 29, 2014, 07:20:21 PM
That would be amazing. I love that mod, and yours does exactly what I need, except for that one thing. Would it be possible, since the way SP works is you can set blocks to portal, forum, some of the other pages like profile, pm's, etc, then each board indivually, to have the forum setting, which is what controls what blocks you see on the board index, be able to select 'forum 0' 'forum 1', etc? Since the mod obviously makes the new 'board' have a unique forum id, would that be possible? So I could have a set of blocks that showed on the index for forum 0, the main board, then a second set that showed  on the index for the second board, forum 1?
That's the plan.....
Title: Re: Split Forum Mod
Post by: dougiefresh on July 29, 2014, 07:45:34 PM
Hold on....  I just reread your statement.  I can make the blocks show up in the selected forums, but to make a set of blocks for each subforum would involve many more code changes, and I'm not sure how many that would be.....  It would be easier to make it so that selected blocks show up in each subforum, like block 1 is allowed to show up in subforum 0 and 1, but block 2 is only allowed to show up in subforum 1.....

Keep in mind, I don't wanna commit to something yet without studying the code more closely.....

My biggest issue with making a "second set" (as in duplicating entries) is that when you uninstall the split forum mod, all the blocks from all the subforums would show up, so you might have two of a particular block just because.  However, if I make it so that a single block can be used across multiple subforums, then all blocks would still show up when uninstalling, but it won't look like garbage because blocks won't be duplicated unnecessarily....  However, my biggest concern is the performance considerations....
Title: Re: Split Forum Mod
Post by: skeletonkiss on July 29, 2014, 08:00:53 PM
Oh, what I meant was, I have my main forum, and your mod created a second, calling the main 'Forum 0', and the second 'forum 1'. As SP has the 'forum' option, which puts blocks on just the main index (unless others also specified), what I want is a second set of blocks for the 'index' of the second forum, forum 1.



Title: Re: Split Forum Mod
Post by: DoctorVox on July 31, 2014, 08:10:09 PM
Had a bit of a delay updating, due declining health, but the category moving works perfectly now. Thank you for all your work.

Still having some trouble accessing boards. It's now saying that the specified board doesn't exist when clicked from the subforum's index, using the default link format ("/board,61.0.html") but they can still be accessed from the subforum options in the admin panel with links that are formatted differently. ("index.php?board=61")

Any idea what might be causing this one?
Title: Re: Split Forum Mod
Post by: dougiefresh on August 01, 2014, 04:27:08 PM
Quote from: DoctorVox on July 31, 2014, 08:10:09 PM
Had a bit of a delay updating, due declining health, but the category moving works perfectly now. Thank you for all your work.

Still having some trouble accessing boards. It's now saying that the specified board doesn't exist when clicked from the subforum's index, using the default link format ("/board,61.0.html") but they can still be accessed from the subforum options in the admin panel with links that are formatted differently. ("index.php?board=61")

Any idea what might be causing this one?
I can reproduce this bug.  I will have to research why this is happening....

Quote from: skeletonkiss on July 29, 2014, 08:00:53 PM
Oh, what I meant was, I have my main forum, and your mod created a second, calling the main 'Forum 0', and the second 'forum 1'. As SP has the 'forum' option, which puts blocks on just the main index (unless others also specified), what I want is a second set of blocks for the 'index' of the second forum, forum 1.
Lemme see what I can do....
Title: Re: Split Forum Mod
Post by: dougiefresh on August 03, 2014, 01:21:43 PM
@DoctorVox: I've figured out why that is happened.  It'll be fixed with the next version.

@skeletonkiss: I've got new code working within the Simple Portal code that will allow you to select which subforum or subforums you want a particular block on.  Attached is a picture....
Title: Re: Split Forum Mod
Post by: jjqualls on August 03, 2014, 05:46:37 PM
Hello and thanks for the mod and all the updates! I believe it is just what I was looking for, but I haven't got it working yet to be sure. My website is new and there's no other mods on it yet except this one, so I can do whatever I need with it. I am a rookie so it might just be my fault, but I have it installed, 2 subforums created, a couple categories made with a couple boards in each just for testing purposes, but I can't find out how to actually access any boards on the sub forums. When I create the subforums it puts a default index page, and all that page does is point back to my primary forum. I don't see any way to actually access the boards that were created in the subforums, and nothing else is created in the subforum folder (not sure if there's supposed to be), it's still just the index page that points back to the primary forum.
Title: Re: Split Forum Mod
Post by: dougiefresh on August 03, 2014, 06:44:35 PM
There are two bugs in Load.php that result in the subforum not loading properly and I've already fixed these errors for version 1.5.
Title: Re: Split Forum Mod
Post by: dougiefresh on August 03, 2014, 08:01:38 PM
Uploaded v1.5 - Auguest 3rd, 2014
o Fixed the subforum URL detection code that resulted in board doesn't exist errors....
o Fixed Manage Boards UI so that boards aren't hidden when entering Manage Boards UI...
o Updated package-info.xml so that it redirects to clears the SMF file cache
o Modified Simple Portal code to support subforums selection for blocks.
Title: Re: Split Forum Mod
Post by: skeletonkiss on August 03, 2014, 08:16:41 PM
Quote from: dougiefresh on August 03, 2014, 01:21:43 PM
@DoctorVox: I've figured out why that is happened.  It'll be fixed with the next version.

@skeletonkiss: I've got new code working within the Simple Portal code that will allow you to select which subforum or subforums you want a particular block on.  Attached is a picture....

Is there not a way to put it, where it says 'Display options' and 'display on portal, forum, etc, is there not a way to make forum1, forum2? My biggest issue is that the blocks I have set to show on my forum index but not the rest of my board, are showing on both my actual board index, and the one the shows my sub forum from this mod. So essentially, I suppose what I am asking is to trick simpleportal into thinking the new sub forum has its own unique index page, and only show blocks on that, and also to be able to -exclude- the blocks showing on the main forum index from showing on the sub forum.

Basically like saying the sub forum has its own index.php instead of obviously drawing from the one the actual board has?
Title: Re: Split Forum Mod
Post by: jjqualls on August 03, 2014, 08:21:24 PM
Ok my problem was just my rookie mistake, thanks for the mod!
Title: Re: Split Forum Mod
Post by: DoctorVox on August 03, 2014, 08:29:46 PM
Board is now working perfectly. Thank you.
Title: Re: Split Forum Mod
Post by: jjqualls on August 03, 2014, 09:30:39 PM
Any way to easily copy subforum boards from 1 subforum to the others? Wanting to do several subforums, but the initial boards will be the same for each one and was just hoping I didn't have to do the same thing for each one.
Title: Re: Split Forum Mod
Post by: dougiefresh on August 04, 2014, 03:48:00 PM
Quote from: jjqualls on August 03, 2014, 09:30:39 PM
Any way to easily copy subforum boards from 1 subforum to the others? Wanting to do several subforums, but the initial boards will be the same for each one and was just hoping I didn't have to do the same thing for each one.
Nope.  There aren't any mods to copy a board as it is, so anything I do will for this have to be from scratch....

If you're looking to simply make an alias to a single in one category in each of the subforum, then Alias Boards (http://custom.simplemachines.org/mods/index.php?mod=1024) might work for ya.....

Quote from: skeletonkiss on August 03, 2014, 08:16:41 PM
Is there not a way to put it, where it says 'Display options' and 'display on portal, forum, etc, is there not a way to make forum1, forum2? My biggest issue is that the blocks I have set to show on my forum index but not the rest of my board, are showing on both my actual board index, and the one the shows my sub forum from this mod. So essentially, I suppose what I am asking is to trick simpleportal into thinking the new sub forum has its own unique index page, and only show blocks on that, and also to be able to -exclude- the blocks showing on the main forum index from showing on the sub forum.

Basically like saying the sub forum has its own index.php instead of obviously drawing from the one the actual board has?
I dunno....  It would have to be something like what I already did, but that code is obviously not right for the job.....  Upgrading from v1.5 to v1.6 will remove the changes I made to the Simple Portal mod and will be replaced with something else....
Title: Re: Split Forum Mod
Post by: skeletonkiss on August 04, 2014, 04:31:23 PM
Okay, so from what I can see looking at the stuff SP changes, the 'forum' function leads to the boardindex.


'forum' => array('BoardIndex.php', 'BoardIndex'),
'portal' => array('PortalMain.php', 'sportal_main'),


So what I'm wondering is how your mod handles the board index? Since it -appears- as if the newly created forums have their own, yet it seems like they just kind of use the original boardindex? Would there be a way to create a second board index, then, so the forum your mod creates could be, for example, boardindex2, and could be added in to that mod, and then you could select forum1, or forum2? Thats what I want. Basically another board index page that would be what you see when you load the forum your mod creates.
Title: Re: Split Forum Mod
Post by: Hj Ahmad Rasyid Hj Ismail on August 04, 2014, 05:04:54 PM
I guess the BoardIndex is still the same. The mod is only trying to limit/control access via each forum so that each forum is seen as having different contents than the other(s). I have tried this mod but couldn't appreciate its functions very well.

You may also try subforums mod which do almost the same but via domain / subdomain only (it is its limitation). But subforums mod is ready to work together with PortaMX portal without any problems since both were developed by the same developer / mod author.

Since this mod is in its version 1.5, I may try it again sometimes soon. Will comment again later.
Title: Re: Split Forum Mod
Post by: dougiefresh on August 05, 2014, 05:05:23 PM
Quote from: dougiefresh on August 04, 2014, 03:48:00 PM
I dunno....  It would have to be something like what I already did, but that code is obviously not right for the job.....  Upgrading from v1.5 to v1.6 will remove the changes I made to the Simple Portal mod and will be replaced with something else....
I did some more investigate into how Simple Portal works, and the source code is mostly correct, but the template code needs replaced, as it doesn't fit the requested "needs" of the forum.  I guess I'm also going to have to insert the SP mod database install code directly into my mod, so that I can create new blocks for new subforums.....

Regarding how the blocks function, I discovered that it uses functions from SSI.php.  So in version 1.6, the functions relating to the boards and topics have been modified to work within the specified subforum.  This will allow the portal page blocks to show correct information regarding the subforums....
Title: Re: Split Forum Mod
Post by: dougiefresh on August 05, 2014, 07:57:50 PM
Quote from: skeletonkiss on August 04, 2014, 04:31:23 PM
So what I'm wondering is how your mod handles the board index?
Quote from: ahrasis on August 04, 2014, 05:04:54 PM
I guess the BoardIndex is still the same. The mod is only trying to limit/control access via each forum so that each forum is seen as having different contents than the other(s).
This mod adds pieces to each query involving the categories/boards/topics/messages so that only those categories/boards/topics/messages belonging to that subforum are shown. 

Quote from: skeletonkiss on August 04, 2014, 04:31:23 PM
Since it -appears- as if the newly created forums have their own, yet it seems like they just kind of use the original boardindex?
You are correct.  They all use the original boardindex.

Quote from: skeletonkiss on August 04, 2014, 04:31:23 PM
Would there be a way to create a second board index, then, so the forum your mod creates could be, for example, boardindex2, and could be added in to that mod, and then you could select forum1, or forum2? Thats what I want. Basically another board index page that would be what you see when you load the forum your mod creates.
That's not really how this mod is designed to work.  Each subforum is in own folder, and has it's own index.php, which it includes back to the primary forum's index.php.  That doesn't mean that I couldn't add another action (aka: boardindex2), but it would probably be difficult to properly implement such an action, given the way that the forum actions and boards and topics parameters are implemented.....

Quote from: ahrasis on August 04, 2014, 05:04:54 PM
You may also try subforums mod which do almost the same but via domain / subdomain only (it is its limitation).
This mod is a bit more flexible, as a subforum can be anywhere on the server.  You could create a separate domain and assign it to a subforum; or create subdomains and assign it to a subforum.  Each subforum resides in it's own folder, so it would be easy to use cPanel (or some other server management tools) to do what you want..... or not  ;D

Quote from: ahrasis on August 04, 2014, 05:04:54 PM
But subforums mod is ready to work together with PortaMX portal without any problems since both were developed by the same developer / mod author.
...
Title: Re: Split Forum Mod
Post by: dougiefresh on August 07, 2014, 01:53:44 PM
Quote from: jjqualls on August 03, 2014, 09:30:39 PM
Any way to easily copy subforum boards from 1 subforum to the others? Wanting to do several subforums, but the initial boards will be the same for each one and was just hoping I didn't have to do the same thing for each one.
Regarding this topic, I started a discussion regarding cloning a board here (http://www.simplemachines.org/community/index.php?topic=526131).  I have since decided not to pursue implementation of this idea, for many of the reasons listed in that topic.....  Now, if only the board information was needed to be duplicated (no content), then that is feasible.  But topics, messages, attachments, etc.....  I'm gonna have to say no to....
Title: Re: Split Forum Mod
Post by: Hj Ahmad Rasyid Hj Ismail on August 07, 2014, 04:19:59 PM
Actualy, you don't copy board. Instead you control by allow / deny access to it from multiple forum that you have/created. One forum can share category(ies) with others or not.

At least that is how Subforums mod do it. Forum A can have category A, B & C. Forum B also can have category A but may be with D & E. Forum C may have B, C & D. They definitely can freely share among forums.
Title: Re: Split Forum Mod
Post by: dougiefresh on August 08, 2014, 04:01:12 AM
Quote from: ahrasis on August 07, 2014, 04:19:59 PM
Actualy, you don't copy board. Instead you control by allow / deny access to it from multiple forum that you have/created. One forum can share category(ies) with others or not.

At least that is how Subforums mod do it. Forum A can have category A, B & C. Forum B also can have category A but may be with D & E. Forum C may have B, C & D. They definitely can freely share among forums.
Unfortunately, that's not the way this mod is set up....  I would have to go back and alter SOOOO many queries to make that work for this mod...  Can it be done?  Heck, yeah!  Will it?  I dunno.....  :-\
Title: Re: Split Forum Mod
Post by: Hj Ahmad Rasyid Hj Ismail on August 08, 2014, 06:33:55 AM
I know what you did as I installed your mod and went through its codes. I have seen few coders / mod authors doing this before and due to that I have submitted my ideas and requested feline to do exactly as what I've wanted which are based on goosemoose / orstio old mod (by bridging smf with old joomla / mambo). Else, subforums mod also could have suffered a major re-write if this going to be achieved at its later stage of coding.
Title: Re: Split Forum Mod
Post by: dougiefresh on August 09, 2014, 04:01:58 PM
I will see what I can do for version 2.0.  Version 1.6 will probably be the last of the 1.x series (unless more bugs are found and reported).  The upgrade files are just getting too unwieldy to maintain and this will difficult to implement via upgrade files, so everything will get integrated into the main file(s)....

For version 1.6, I've done some major rewriting of the Edit Boards UI, which got started before skeletonkiss made his/her request.  It has taken up a lot of my time getting it to work and I'm ready to implement a tabbed system for the Simple Portal blocks.  That way, everything for each subforum will be listed and managed separately....

EDIT: Major changes to SSI.php also made their way into version 1.6, as Simple Portal wasn't reporting things regarding boards, topics, categories, etc correctly....
Title: Re: Split Forum Mod
Post by: jjqualls on August 10, 2014, 04:03:06 PM
Few questions here.

1. For some reason when I create a new subforum, in the setting "SubForum Web Address (URL):" the default is "example...forum/forum5". But I'm not wanting the folder or url to be named example...forum/forum5 but I want it example...forum/birds. Even if I change it the folder birds still doesn't exist and it still creates the folder forum5, then my subforum is still at example...forum/forum5/index.php

2. Any way to clear unused subforum id numbers and names? While messing around trying to fix the above I have created and deleted several testing subforums. When creating a new subforum now using the default subforum id, I get an error "The specified subforum ID has already been used. Please select another ID number." Then if I go back and try to just pick another subforum ID I get a blank "an error has occurred" message, and basically that subforum name becomes unusable.

3. Should you have to log in to each subforum seperately or will the session carry over to the others? Currently I am logged into 2 of them, but the third one wants to make me log in again?

I am a rookie and have been messing with this all day so the problems very well might be of my own work...
Title: Re: Split Forum Mod
Post by: dougiefresh on August 10, 2014, 06:31:23 PM
Quote from: jjqualls on August 10, 2014, 04:03:06 PM
1. For some reason when I create a new subforum, in the setting "SubForum Web Address (URL):" the default is "example...forum/forum5". But I'm not wanting the folder or url to be named example...forum/forum5 but I want it example...forum/birds. Even if I change it the folder birds still doesn't exist and it still creates the folder forum5, then my subforum is still at example...forum/forum5/index.php

2. Any way to clear unused subforum id numbers and names? While messing around trying to fix the above I have created and deleted several testing subforums. When creating a new subforum now using the default subforum id, I get an error "The specified subforum ID has already been used. Please select another ID number." Then if I go back and try to just pick another subforum ID I get a blank "an error has occurred" message, and basically that subforum name becomes unusable.
I had to fix a few things in the Sources files, but it's been fixed for version 1.6.

Quote from: jjqualls on August 10, 2014, 04:03:06 PM
3. Should you have to log in to each subforum seperately or will the session carry over to the others? Currently I am logged into 2 of them, but the third one wants to make me log in again?
I would think that you would have to log in to all 3 subforums individually....
Title: Re: Split Forum Mod
Post by: dougiefresh on August 11, 2014, 10:15:42 AM
Uploaded v1.6 - Auguest 11th, 2014
o Modified Create Subforum functions to properly create new subforums without conflicts
o Modified Manage Boards UI so that when changing subforum and/or category, category and board list now changes.
o Fixed browser compatibility issue with revised Manage Category UI.
o Addition of a tabbed interface for Simple Portal block listing template.
o Rewrite of Simple Portal template modifications introduced in version 1.5.
o Added tab system to Blocks listing UI to make it easier to put seperate blocks in subforums.
o Modified several SSI functions so that they return results for only that subforum.

This solves all reported problems and hopefully produces no more bugs  :P

Off-topic: It should be noted that the upgrade file for v1.6 is actually almost 1.5x larger than the install.xml file itself....  If that tells you how much I changed.....  It also should be noted that the installer uses both install.xml and upgrade_1.6.xml during a normal non-upgrade installation....
Title: Re: Split Forum Mod
Post by: jjqualls on August 11, 2014, 11:43:03 AM
So for dummies like me, how do I update it without uninstalling and reinstalling fresh?

Also, thanks for all the awesome work!

Just going from 1.5 to 1.6



Not sure if this was the way to do it, but I just copied the new files over the old files, then went under package manager, browse packages, and clicked upgrade next to split forum mod.

got
32.   Replace   ./SSI.php   Test failed
which is:
(find)
QuoteSELECT id_board
      FROM {db_prefix}boards
      WHERE ' . ($board === null ? '' : 'id_board = {int:current_board}
         AND ') . 'FIND_IN_SET(-1, member_groups) != 0
      LIMIT 1',
      array(
         'current_board' => $board,
      )

(replace)
QuoteSELECT b.id_board
      FROM {db_prefix}boards AS b
         INNER JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)
      WHERE ' . ($board === null ? '' : 'id_board = {int:current_board}
         AND ') . 'FIND_IN_SET(-1, member_groups) != 0
         AND c.forumid = {int:forumid}
      LIMIT 1',
      array(
         'current_board' => $board,
         'forumid' => (int) $forumid,
      )

If I messed it up and just need to uninstall/reinstall that's fine, the site still isn't really up yet and there's not much to be lost if anything.
Title: Re: Split Forum Mod
Post by: dougiefresh on August 11, 2014, 03:07:09 PM
Quote from: jjqualls on August 11, 2014, 11:43:03 AM
So for dummies like me, how do I update it without uninstalling and reinstalling fresh?
Quote from: jjqualls on August 11, 2014, 11:43:03 AM
Not sure if this was the way to do it, but I just copied the new files over the old files, then went under package manager, browse packages, and clicked upgrade next to split forum mod.
The proper way to update the mod is to upload the newer version to your Packages folder and upgrade it from there.  The mod package has all the instructions to get you from version 1.5 to version 1.6, including if files need to be replaced with newer versions.

The way you did it isn't a safe way to do so, since there may be dependancies that may change during the upgrade, simply replacing files with newer ones may brake your forum.  The mod will update files if they have changed since the last update.

BTW, there probably will be no way to upgrade from the 1.x series to the 2.x series when it comes out....  Just so ya know  O:)

Quote from: jjqualls on August 11, 2014, 11:43:03 AM
got
32.   Replace   ./SSI.php   Test failed
which is:
(find)
QuoteSELECT id_board
      FROM {db_prefix}boards
      WHERE ' . ($board === null ? '' : 'id_board = {int:current_board}
         AND ') . 'FIND_IN_SET(-1, member_groups) != 0
      LIMIT 1',
      array(
         'current_board' => $board,
      )

(replace)
QuoteSELECT b.id_board
      FROM {db_prefix}boards AS b
         INNER JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)
      WHERE ' . ($board === null ? '' : 'id_board = {int:current_board}
         AND ') . 'FIND_IN_SET(-1, member_groups) != 0
         AND c.forumid = {int:forumid}
      LIMIT 1',
      array(
         'current_board' => $board,
         'forumid' => (int) $forumid,
      )

If I messed it up and just need to uninstall/reinstall that's fine, the site still isn't really up yet and there's not much to be lost if anything.
I copied the section to find straight from a fresh copy of SMF 2.0.8.  What version of SMF are you running?  What mods do you have installed?  You could attach the SSI.php file so I can look at it.
Title: Re: Split Forum Mod
Post by: jjqualls on August 11, 2014, 03:19:29 PM
Quote from: dougiefresh on August 11, 2014, 03:07:09 PM
I copied the section to find straight from a fresh copy of SMF 2.0.8.  What version of SMF are you running?  What mods do you have installed?  You could attach the SSI.php file so I can look at it.

Using version 2.0.6, only mods are this one and Auto Purge.  the SSI file should be attached. Thanks for all the quick replys!

Gonna work on changing to 2.0.8, might as well get as up to date as I can before I get too much done since I have a habit of finding a way to mess things up.
Title: Re: Split Forum Mod
Post by: dougiefresh on August 11, 2014, 03:31:41 PM
Auto Purge doesn't make alterations to SSI.php.  Rules that out as a culprit.

Okay, looked at your SSI.php.  Your copy has this:
SELECT id_board
FROM {db_prefix}boards
WHERE ' . ($board === null ? '' : 'id_board = {int:current_board}
AND ') . 'FIND_IN_SET(-1, member_groups)
LIMIT 1',
array(
'current_board' => $board,
)

Note that 'FIND_IN_SET(-1, member_groups) doesn't have a != 0 at the end of the line.  I'm thinking somebody updated the SSI.php from v2.0.4 and didn't update the revision number found at the top of the file.  Anyway, look for the above code and add the != 0 to the line with FIND_IN_SET and the mod should install.

Hope this helps!
Title: Re: Split Forum Mod
Post by: jjqualls on August 11, 2014, 07:30:51 PM
Well I tried that, and it didn't work, but I uninstalled smf, deleted all the packages and all files/folders that was affiliated with any of it, tried to start from scratch. Got SMF reinstalled (had to reinstall at 2.0.6 and update from there) and updated to 2.0.8, and got split forums 1.6 installed. But now I can't make any subforums, can no longer change the subforum id and it says the subforum id of 1 (the default) is already taken...
Title: Re: Split Forum Mod
Post by: skeletonkiss on August 12, 2014, 02:16:38 PM
Installed the latest version on a clean test forum to fiddle with things, and I am unable to change the forum id number, when creating a new board. Both the id number and the path to it are greyed out.

I uninstalled, installed an older version, had the option again. Upgraded, and it greys out.

Title: Re: Split Forum Mod
Post by: dougiefresh on August 12, 2014, 07:48:13 PM
Lemme investigate both of these issues....
Title: Re: Split Forum Mod
Post by: skeletonkiss on August 15, 2014, 03:07:31 PM
Any word?
Title: Re: Split Forum Mod
Post by: dougiefresh on August 15, 2014, 07:26:46 PM
I've been working 11 to 12 hours a day for the last 3 days.  Haven't had much time.....
Title: Re: Split Forum Mod
Post by: dougiefresh on August 16, 2014, 08:56:06 PM
Uploaded v1.7 - August 16th, 2014, 2014
o Added script to rebuild the subforum tree array correctly.
o Fixed the javascript conditional statements so that subforum ID and path are editable.
o Moved subdomain removal hook function so it is done immediately before removal of subforum.
o Added fields to Manage Subforum UI to populate and/or copy Simple Portal blocks.
o Added ability to change the portal mode per subforum for Simple Portal.
o Modified Simple Portal's General Settings UI to update subforum settings.

This version resolves the forum ID and path issues reported by skeletonkiss and jjqualls.  Thank you for the report!
Title: Re: Split Forum Mod
Post by: skeletonkiss on August 16, 2014, 09:54:26 PM
Thank YOU for making a mod that does -exactly- what I wanted!
Title: Re: Split Forum Mod
Post by: skeletonkiss on August 16, 2014, 11:30:43 PM
When I try to create or modify a forum and copy the blocks from one of my other forums, it gives me the following error:

"The database value you're trying to insert does not exist: from"
Title: Re: Split Forum Mod
Post by: jjqualls on August 17, 2014, 08:27:46 AM
I get 47.   Execute Modification   ./Sources/PortalAdminMain.php   Test failed
   1.   Add After   ./Sources/PortalAdminMain.php   Test failed
   2.   Add Before   ./Sources/PortalAdminMain.php   Test failed

When I try to install, guessing this is something for people using simple portal? My install has the file but it's completely blank. Gonna try to install anyways I guess and see what it does.
Title: Re: Split Forum Mod
Post by: dougiefresh on August 17, 2014, 09:44:27 AM
Anyone who downloaded version 1.7 should redownload it.  I would've changed the version number, but the customization site said no one downloaded it  :P  O:)

Quote from: jjqualls on August 17, 2014, 08:27:46 AM
I get 47.   Execute Modification   ./Sources/PortalAdminMain.php   Test failed
   1.   Add After   ./Sources/PortalAdminMain.php   Test failed
   2.   Add Before   ./Sources/PortalAdminMain.php   Test failed

When I try to install, guessing this is something for people using simple portal? My install has the file but it's completely blank. Gonna try to install anyways I guess and see what it does.
I fixed this one....  This should have been "skip", not "ignore" on the file operation....  It won't harm anything if that particular file errors out, as that operation(s) force the language loading for admins within Simple Portal.

Quote from: skeletonkiss on August 16, 2014, 11:30:43 PM
When I try to create or modify a forum and copy the blocks from one of my other forums, it gives me the following error:

"The database value you're trying to insert does not exist: from"
I fixed this stupid error.....  :P  (Stupid as in I overlooked this stupid error...  O:) This is what happens when I try to program tiredly.... )

Quote from: skeletonkiss on August 16, 2014, 09:54:26 PM
Thank YOU for making a mod that does -exactly- what I wanted!
You're welcome!
Title: Re: Split Forum Mod
Post by: jjqualls on August 17, 2014, 09:56:39 AM
Seems to be working great! Thanks for all the work on it dougiefresh!
Title: Re: Split Forum Mod
Post by: jjqualls on August 17, 2014, 04:40:42 PM
This is way over my head, so don't know if this is anything you can do with the mod or not. But if I put in mywebsite.com/forums/subforum/index.php it works great and goes to the subforum, but if I put www.mywebsite.com/forums/subforum/index.php it just goes to the main forum which is the same as mywebsite.com/forums/index.php

Currently I'm working on a webpage in front of the forum that lists the subforums for a person to choose which to go to, and it works great if they just use mywebsite.com and click on the link, but if they type www.mywebsite.com and click on the link it just goes to the main forum and not the subforum.


Edit: Already found the way to work around it with my links, but still curious if it's something that the mod might be able to handle since other than subforums, it works fine with or without the www.             Don't guess I'd put too much work into it though since it was real easy to just change links to exclude www.
Title: Re: Split Forum Mod
Post by: dougiefresh on August 17, 2014, 04:50:38 PM
Lemme look through the code some more....
Title: Re: Split Forum Mod
Post by: dougiefresh on August 17, 2014, 07:38:02 PM
UPDATE: Okay, I've pieced something together that works on my localhost (after I modified my hosts file to direct www.localhost.com and localhost.com to 127.0.0.1, which is the localhost IP address).  But because it converts everything to lowercase before comparsion, I'm concerned that an incorrect match will be made, primarily because most web servers are case sensitive.....  So, I'm gonna attempt to fix the "case-sensitivity" issue tomorrow....
Title: Re: Split Forum Mod
Post by: skeletonkiss on August 22, 2014, 02:03:51 PM
I'm still getting that "The database value you're trying to insert does not exist: from" error, and it also seems to not be creating the sub forum folder when I try to create a new sub forum...

Edit: This is when I try to create (or modify) a sub forum to copy the blocks from one board to the next. It's not copying them at all.
Title: Re: Split Forum Mod
Post by: SilverKnight on August 23, 2014, 03:56:38 AM
This is perhaps one of the most important mods for SMF, should really be built into the source.

I would like to request support for Pretty urls with this mod, that would be a great help.
Title: Re: Split Forum Mod
Post by: Kindred on August 23, 2014, 07:22:10 AM
Quote from: SilverKnight on August 23, 2014, 03:56:38 AM
This is perhaps one of the most important mods for SMF, should really be built into the source.


No, it is not....     It is not really in much demands, As evidenced by the fact that it took over 10 years for someone to build it. Sure, some people want it... And for them it might seem important, but for the general admin, this mod will never be needed or used.

Which leads me to the statement that - it is unlikely that this would be included in the core...  For exactly the reason I stated above.
Title: Re: Split Forum Mod
Post by: Arantor on August 23, 2014, 07:34:39 AM
129 downloads in a year is certainly suggestive of it being niche.
Title: Re: Split Forum Mod
Post by: skeletonkiss on August 23, 2014, 01:31:21 PM
Before a huge debate goes on, still having issues with the mod, so I'd like those addressed before it gets buried.

Second, I do think this functionality would be AMAZING if it came with SMF out of the box. SMF is very popular amongst roleplayers and gamer in general and being able to have entirely secondary forums with shared members/etc is hugely appealing for us.

This mod just doesn't have a lot of press; it took me ages to find it, and figure out what it did, but once I realized what it was, it was -exactly- what I had been looking for. So part of the problem, I think, is just people not knowing it exists. And once the bugs are more ironed out I do plan to post about this on a forum for rpg's which has a thread for vital SMF mods for roleplaying games, and I think that will draw some attention.

That all said, another equally important mod that should be part of the core code is the Sub accounts mod, and it's not, and that one is pretty popular I think.

Title: Re: Split Forum Mod
Post by: Arantor on August 23, 2014, 01:38:59 PM
Except that I couldn't make a reasonable defence for either as a core feature. I realise that both are important, however neither is a feature that actually is needed for a sizeable percentage of the forum userbase; they are mods for a niche part of the SMF ecosystem. Sucks, but that's what we've observed over the last 5 years.
Title: Re: Split Forum Mod
Post by: skeletonkiss on August 23, 2014, 01:40:56 PM
Can I make the arguement, then, that Karma is a 'niche' item, that I personally have never used, along with the 'subscriptions' function? Both are built into the code but I cannot imagine the subs function especially gets used by your average SMF user.
Title: Re: Split Forum Mod
Post by: Arantor on August 23, 2014, 01:42:55 PM
Yes, you can make that argument about karma, which is why it's been removed from 2.1.

Subscriptions was originally a mod that got included, and usage data we've seen suggests it has been used more prevalently than karma or either of the mods you are advocating.

On the other hand also, something like subscriptions - where you're dealing with actual money - is likely better served by an environment where it will actually be treated if bugs are found, something that may or may not happen as a mod.
Title: Re: Split Forum Mod
Post by: Kindred on August 23, 2014, 04:49:26 PM
Neither subforums nor subaccounts are major desired functions that would be used by 90% of the communities out there...   As much as you find it useful, most would not ever have a use for either feature.  Our intention is to keep smf simple - additional functions can be added by each individual admin to suit their site needs, That is why there are mods...
Title: Re: Split Forum Mod
Post by: dougiefresh on August 23, 2014, 06:26:41 PM
Quote from: SilverKnight on August 23, 2014, 03:56:38 AM
I would like to request support for Pretty urls with this mod, that would be a great help.
Yup, this mod appears to totally break Pretty URLs....  Lemme see what I can do.
Title: Re: Split Forum Mod
Post by: SilverKnight on August 23, 2014, 11:45:20 PM
Quote from: dougiefresh on August 23, 2014, 06:26:41 PM
Quote from: SilverKnight on August 23, 2014, 03:56:38 AM
I would like to request support for Pretty urls with this mod, that would be a great help.
Yup, this mod appears to totally break Pretty URLs....  Lemme see what I can do.

Much appreciated
Title: Re: Split Forum Mod
Post by: SilverKnight on August 24, 2014, 12:39:09 AM
I have a issue when installing Split forum mod over simple portal.

I get this error when hitting save in the general configuration section of simple portal:

Fatal error: require_once(): Failed opening required '/Subs-Admin.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hypergam/public_html/hgn/forums/Sources/PortalAdminMain.php on line 120

Quoteif (isset($_GET['save']))
   {
      checkSession();

      // Update the subforum array with the new settings:
      $subforum_tree[$forumid]['sp_portal'] = (int) $_POST['sp_portal_mode'];
      $subforum_tree[$forumid]['sp_standalone'] = $_POST['sp_standalone_url'];

      // Place the revised subforum array into the Settings.php file:
      require_once($sourcedir.'/Subs-Admin.php');
      updateSettingsFile(array('subforum_tree' => str_replace("\n", "", var_export($subforum_tree, true))));

      saveDBSettings($config_vars);
      redirectexit('action=admin;area=portalconfig;sa=generalsettings');
   }

Line 120 being the line in question, Subs-Admin.php is obviously present.
Title: Re: Split Forum Mod
Post by: skeletonkiss on August 24, 2014, 02:29:30 AM
Since it got buried, I'm still having this (http://www.simplemachines.org/community/index.php?topic=523055.msg3734236#msg3734236) issue.
Title: Re: Split Forum Mod
Post by: dougiefresh on August 24, 2014, 07:22:53 AM
Quote from: skeletonkiss on August 24, 2014, 02:29:30 AM
Since it got buried, I'm still having this (http://www.simplemachines.org/community/index.php?topic=523055.msg3734236#msg3734236) issue.
Quote from: SilverKnight on August 24, 2014, 12:39:09 AM
I have a issue when installing Split forum mod over simple portal.

I get this error when hitting save in the general configuration section of simple portal:

Fatal error: require_once(): Failed opening required '/Subs-Admin.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hypergam/public_html/hgn/forums/Sources/PortalAdminMain.php on line 120

Quoteif (isset($_GET['save']))
   {
      checkSession();

      // Update the subforum array with the new settings:
      $subforum_tree[$forumid]['sp_portal'] = (int) $_POST['sp_portal_mode'];
      $subforum_tree[$forumid]['sp_standalone'] = $_POST['sp_standalone_url'];

      // Place the revised subforum array into the Settings.php file:
      require_once($sourcedir.'/Subs-Admin.php');
      updateSettingsFile(array('subforum_tree' => str_replace("\n", "", var_export($subforum_tree, true))));

      saveDBSettings($config_vars);
      redirectexit('action=admin;area=portalconfig;sa=generalsettings');
   }

Line 120 being the line in question, Subs-Admin.php is obviously present.
Quote from: jjqualls on August 17, 2014, 08:27:46 AM
I get 47.   Execute Modification   ./Sources/PortalAdminMain.php   Test failed
   1.   Add After   ./Sources/PortalAdminMain.php   Test failed
   2.   Add Before   ./Sources/PortalAdminMain.php   Test failed

When I try to install, guessing this is something for people using simple portal? My install has the file but it's completely blank. Gonna try to install anyways I guess and see what it does.
I've addressed these issues in version 1.8....
Title: Re: Split Forum Mod
Post by: SilverKnight on August 24, 2014, 07:55:35 AM
Quote
I've addressed these issues in version 1.8....

My apologies, many thanks.
Title: Re: Split Forum Mod
Post by: dougiefresh on August 24, 2014, 08:07:21 AM
Uploaded v1.8 - August 24th, 2014
o Fixed some undefined errors found in ManageSplitForums.php.
o Fixed issue with Manage Boards UI installed where copying blocks was selected by default.
o Modified code so that domain names with and without www. are properly recognized.
o Rewrote function that copies SimplePortal blocks from one subforum to another.
o Fixed bug with SimplePortal saving configuration settings because variable wasn't globalized.
o Fixed variable type-casting bug with deleting SimplePortal blocks from a subforum.
o Fixed mod installer issue for people without SimplePortal installed.

Please note this update does not fix Pretty URL compatibility with this mod.  This update should resolve the other reported bugs....



Quote from: ‽ on August 23, 2014, 07:34:39 AM
129 downloads in a year is certainly suggestive of it being niche.
Actually, it was released to the public on May 27th, 2014, which means it has been available for download only 3 months.  This mod was developed about a year ago, but personal health concerns and work kept me from being able to make the modifications necessary to get it out of the approval queue....
Title: Re: Split Forum Mod
Post by: jjqualls on August 24, 2014, 01:16:57 PM
Thanks once again for everything dougiefresh! Loving this mod. Having 1 issue but not sure if it's the mod or if it's SMF in general since I haven't actually used SMF without the mod. My categories on the subforums are all out of order. When I am on the board editor, my categories are in order, but when I go to the actual website, they seem to be in a random order. Is this from the mod or is this just how SMF does?
Title: Re: Split Forum Mod
Post by: Arantor on August 24, 2014, 01:20:51 PM
Are you using SMF 2.0.8? (And using MySQL 5.6?)
Title: Re: Split Forum Mod
Post by: dougiefresh on August 24, 2014, 01:22:46 PM
Once you put categories in a specific order, they SHOULD stay in that order, regardless of whether you're in the board index or in the board manager....  In all of my tests, the categories have remained in order.  I assume you're using SMF 2.0.8, right?  Lemme investigate this....
Title: Re: Split Forum Mod
Post by: jjqualls on August 24, 2014, 01:39:36 PM
Yes, using SMF 2.0.8 but Split forum 1.7, was about to work on upgrading to 1.8. Not sure what mySQL I am using atm, whatever godaddy has.

Something that may or may not be messing with it, all the subforums have the same catagory names, not sure if this messes with anything.
Title: Re: Split Forum Mod
Post by: skeletonkiss on August 24, 2014, 03:06:20 PM
Tried it out and it seems to be working much better, copied over a full set of blocks to a new board...Only small issue is all the blocks were immediately set to ON....Which was a bit hilarious as I have some that are seasonal/etc...But it all seems to have transfered over nicely!!
Title: Re: Split Forum Mod
Post by: dougiefresh on August 24, 2014, 03:32:50 PM
Quote from: jjqualls on August 24, 2014, 01:39:36 PM
Not sure what mySQL I am using atm, whatever godaddy has.
:o (Sigh)  There isn't much I hate about forum discussions, but useless answers definitely rate up there in my list.....  Could you please check?

Quote from: jjqualls on August 24, 2014, 01:39:36 PM
Yes, using SMF 2.0.8 but Split forum 1.7, was about to work on upgrading to 1.8.
Version 1.8 does not make any changes that would affect category order.

Quote from: jjqualls on August 24, 2014, 01:39:36 PM
Something that may or may not be messing with it, all the subforums have the same catagory names, not sure if this messes with anything.
All the categories are numbered within the database, so the individual category names should have nothing to do with the order of the categories themselves....

Quote from: skeletonkiss on August 24, 2014, 03:06:20 PM
Tried it out and it seems to be working much better, copied over a full set of blocks to a new board...Only small issue is all the blocks were immediately set to ON....Which was a bit hilarious as I have some that are seasonal/etc...But it all seems to have transfered over nicely!!
Whoops...  I omitted some of the fields by accident....  The fixed Subs-ManageSplitForums.php file will be included in v1.9, however, if you need the fixed file now, it is attached.  Meanwhile, I'm gonna see about Pretty URL compatibility....

Title: Re: Split Forum Mod
Post by: SilverKnight on August 26, 2014, 08:19:36 AM
I have found, that when installing this mod the forum categorys can no longer be sorted and upon uninstalling the dropdown comes back to sort the catagorys.
Title: Re: Split Forum Mod
Post by: skeletonkiss on August 26, 2014, 04:24:24 PM

Quote
Whoops...  I omitted some of the fields by accident....  The fixed Subs-ManageSplitForums.php file will be included in v1.9, however, if you need the fixed file now, it is attached.  Meanwhile, I'm gonna see about Pretty URL compatibility....

Thanks so much! This mod is absolutely fabulous now that it's intergrated into SP. I definitely look forward to future enhancements. ^^
Title: Re: Split Forum Mod
Post by: dougiefresh on August 26, 2014, 04:49:35 PM
Quote from: SilverKnight on August 26, 2014, 08:19:36 AM
I have found, that when installing this mod the forum categorys can no longer be sorted and upon uninstalling the dropdown comes back to sort the catagorys.
"Sorted"?  What do you mean by "sorted"?  Like they aren't in the same order that they are in within Board Management?  Because this is the second complaint that I've gotten on this issue.  If this is it, what version of SMF and MySQL are you running?

Or do you have some sort of mod that sorts the categories a different way on Board Index?

Quote from: skeletonkiss on August 26, 2014, 04:24:24 PM
Thanks so much! This mod is absolutely fabulous now that it's intergrated into SP. I definitely look forward to future enhancements. ^^
You're welcome!
Title: Re: Split Forum Mod
Post by: SilverKnight on August 27, 2014, 08:50:20 PM
Quote from: dougiefresh on August 26, 2014, 04:49:35 PM
Quote from: SilverKnight on August 26, 2014, 08:19:36 AM
I have found, that when installing this mod the forum categorys can no longer be sorted and upon uninstalling the dropdown comes back to sort the catagorys.
"Sorted"?  What do you mean by "sorted"?  Like they aren't in the same order that they are in within Board Management?  Because this is the second complaint that I've gotten on this issue.  If this is it, what version of SMF and MySQL are you running?

Or do you have some sort of mod that sorts the categories a different way on Board Index?

I found that, if no secondary subforum is created and you go to edit categories, the drop-down is not displayed, if you create a subforum it then appears. Technically, so in essence not a error if a subforum is created\the mod is used.

I noticed there's incompatibility with the smf member awards mod (https://github.com/Spuds/SMF-Member-Awards) where all award images fail to load in a subforum which is especially noticeable the poster information in a topic.


Example Subforum image that does not work:
http://www.myforum.net/iseyu/awards/5-mini.png

Main forum:
http://www.myforum.net/awards/9-mini.png

Essentially, awards is a folder in the base of the folder, much like attachments or avatars, a temp fix would be to copy over the awards to each subforum but i would very much appreciate support for this mod as it's the most popular and feature-full awards mod used in SMF.

I have attached below a image showing the extent of the issue.
Title: Re: Split Forum Mod
Post by: dougiefresh on August 29, 2014, 06:46:30 PM
Quote from: SilverKnight on August 27, 2014, 08:50:20 PM
Quote from: dougiefresh on August 26, 2014, 04:49:35 PM
Quote from: SilverKnight on August 26, 2014, 08:19:36 AM
I have found, that when installing this mod the forum categorys can no longer be sorted and upon uninstalling the dropdown comes back to sort the catagorys.
"Sorted"?  What do you mean by "sorted"?  Like they aren't in the same order that they are in within Board Management?  Because this is the second complaint that I've gotten on this issue.  If this is it, what version of SMF and MySQL are you running?

Or do you have some sort of mod that sorts the categories a different way on Board Index?

I found that, if no secondary subforum is created and you go to edit categories, the drop-down is not displayed, if you create a subforum it then appears. Technically, so in essence not a error if a subforum is created\the mod is used.
OH!!!  You're talking about the Board Management GUI!  Lemme look into this, now that I understand what you're talking about!

Quote from: SilverKnight on August 27, 2014, 08:50:20 PM
I noticed there's incompatibility with the smf member awards mod (https://github.com/Spuds/SMF-Member-Awards) where all award images fail to load in a subforum which is especially noticeable the poster information in a topic.


Example Subforum image that does not work:
http://www.myforum.net/iseyu/awards/5-mini.png

Main forum:
http://www.myforum.net/awards/9-mini.png

Essentially, awards is a folder in the base of the folder, much like attachments or avatars, a temp fix would be to copy over the awards to each subforum but i would very much appreciate support for this mod as it's the most popular and feature-full awards mod used in SMF.

I have attached below a image showing the extent of the issue.
Hmmmm......  That might be a problem....  Lemme see what I can do.
Title: Re: Split Forum Mod
Post by: Kindred on August 29, 2014, 07:21:31 PM
that's not actually a surprise...

really, the awards mod SHOULD be placing the awards images in the images directory of each theme instead...


Also, for the same reason, I suspect things like the facebook mod and the gallery mods (which create directories sub to the root rather than in the theme path) will likely have issues
Title: Re: Split Forum Mod
Post by: dougiefresh on September 04, 2014, 09:20:48 PM
Okay, I had to reinstall my computer this weekend.  OH-BOY, what fun it is!!!  :P  But I'm back.....

I've managed to fix the Manage Categories UI so that the category order can (once again) be changed.  I also fixed the Manage Boards UI so that the boards are shown when you only have no subforums defined.  I've fixed several undefined variable errors I found during the course of my fixing the Manage Boards UI and Manage Categories UI.

I'm going to write some code to place a .htaccess file in the subforum folders so that the requests get redirected to the main forum's folders.  Hopefully, this will solve the reported issue.

EDIT: Also fixed a bug I found within the Delete Categories UI....
Title: Re: Split Forum Mod
Post by: dougiefresh on September 05, 2014, 09:51:09 AM
Uploaded v1.9 - September 5th, 2014
o Added creation of .htaccess to redirect subdirectory requests to primary forum.
o Fixed some undefined errors found in ManageBoards.php.
o Fixed some undefined errors found in ManageSplitForums.php.
o Fixed bugs in Manage Category UI so that category order can be changed again.
o Fixed bugs in Delete Category UI so that categories to move to are selectable again.
o Fixed bugs in Manage Board UI so that board order can be changed again if creating new board.
o Fixed bug within rewritten SimplePortal block copying code because fields were omitted.
o Minor compatibility fix within upgrade_v1.4.xml for Pretty URL.  Functionality not changed.

Please note this update does not fix compatibility with Pretty URL.  All other bug reports should be fixed.




Quote from: jjqualls on August 24, 2014, 01:16:57 PM
Thanks once again for everything dougiefresh! Loving this mod. Having 1 issue but not sure if it's the mod or if it's SMF in general since I haven't actually used SMF without the mod. My categories on the subforums are all out of order. When I am on the board editor, my categories are in order, but when I go to the actual website, they seem to be in a random order. Is this from the mod or is this just how SMF does?
This bug report is likely the cause of your server (aka GoDaddy) having upgraded their MySQL software.  There are some differences in the MySQL 5.5 and 5.6 series software, and the "wackiness" can be seen in the SMF software prior to v2.0.8.  Upgrading to SMF v2.0.8 should solve this particular bug report, however, I can't verify this solution without more information.
Title: Re: Split Forum Mod
Post by: Arantor on September 05, 2014, 09:53:32 AM
Yup, those symptoms are certainly consistent with MySQL 5.6 (or specific configurations of MySQL 5.5 but that seems unlikely)

It was specifically tackled as part of 2.0.8, so if you're not already on 2.0.8 you really should upgrade. (Not 2.0.7, that fixed some PHP issues, not MySQL ones)
Title: Re: Split Forum Mod
Post by: schmiesus on September 06, 2014, 01:16:57 AM
ok so was it suppose to generate an index file???? cause it didn't on my server :/
Title: Re: Split Forum Mod
Post by: dougiefresh on September 06, 2014, 04:40:11 PM
Quote from: schmiesus on September 06, 2014, 01:16:57 AM
ok so was it suppose to generate an index file???? cause it didn't on my server :/
It's only supposed to generate a index.php file on subforums, not the primary forum.  Make sure that the permissions are set correctly for the new folder created, it should be 0755....  I'm making a modification to attempt to change it within the mod....
Title: Re: Split Forum Mod
Post by: schmiesus on September 06, 2014, 07:09:50 PM
Quote from: dougiefresh on September 06, 2014, 04:40:11 PM
Quote from: schmiesus on September 06, 2014, 01:16:57 AM
ok so was it suppose to generate an index file???? cause it didn't on my server :/
It's only supposed to generate a index.php file on subforums, not the primary forum.  Make sure that the permissions are set correctly for the new folder created, it should be 0755....  I'm making a modification to attempt to change it within the mod....

ok so i figured out what it was doing and it was odd. Def a bug in there.

instead of making file folders it did this.
(http://dubberz.com/images/files.png)

but I've got that now working. however I now have this "Notice: Undefined index: path in /home/dubberz/public_html/forum/Sources/Load.php on line 158"

and as soon as i click on anything in the subforum i get this "The board you specified is located on a different forum"
Title: Re: Split Forum Mod
Post by: dougiefresh on September 07, 2014, 10:05:43 AM
Uploaded v1.10 - September 6th, 2014
o Added code to attempt to change permissions of created folders and files.
o Rewrote some code added by v1.9 so that it creates the folders properly (again)....

This should fix the bug report given....  Thank you, schmiesus!
Title: Re: Split Forum Mod
Post by: schmiesus on September 08, 2014, 05:26:16 PM
you know what's fun now it it won't install.....It thinks it's installed but it hasn't.

I love computers sometimes.
Title: Re: Split Forum Mod
Post by: dougiefresh on September 09, 2014, 04:11:44 AM
Check your file permissions.  Chances are good that something is screwed up in your file permissions.....
Title: Re: Split Forum Mod
Post by: DenDen60 on September 30, 2014, 10:17:19 AM
Hi Dougiefresh,

it took a long time but I am now ready to try your mod.  :P

From what I understand, this will be the mod that I want.

I will let you know how it goes.


Thanks
Title: Re: Split Forum Mod
Post by: DenDen60 on September 30, 2014, 10:32:32 AM
Oups. ;-(

I tried to install the mod, version 1.10and several errors are listed as SMF checks the files. (on a fresh install of SMF and using MySQL version 5.5.37-cll).

28.Execute Modification./Sources/Load.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=1;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)1.Replace./Sources/Load.phpTest failed
29.Execute Modification./Sources/ManageBoards.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=4;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)1.Replace./Sources/ManageBoards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=5;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)2.Replace./Sources/ManageBoards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=6;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)3.Replace./Sources/ManageBoards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=7;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)4.Replace./Sources/ManageBoards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=8;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)5.Replace./Sources/ManageBoards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=9;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)6.Replace./Sources/ManageBoards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=10;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)7.Replace./Sources/ManageBoards.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=11;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)8.Replace./Sources/ManageBoards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=12;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)9.Replace./Sources/ManageBoards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=13;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)10.Replace./Sources/ManageBoards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=14;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)11.Replace./Sources/ManageBoards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=15;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)12.Replace./Sources/ManageBoards.phpTest successful
30.Execute Modification./Sources/Subs-Boards.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=18;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)1.Add After./Sources/Subs-Boards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=19;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)2.Replace./Sources/Subs-Boards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=20;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)3.Replace./Sources/Subs-Boards.phpTest failed
31.Execute Modification./Themes/default/ManageBoards.template.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=23;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)1.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=24;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)2.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=25;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)3.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=26;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)4.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=27;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)5.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=28;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)6.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=29;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)7.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=30;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)8.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=31;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)9.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=32;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)10.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=33;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)11.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=34;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)12.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=35;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.4.xml)13.Replace./Themes/default/ManageBoards.template.phpTest successful
32.Execute Modification./Sources/Load.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=1;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.5.xml)1.Replace./Sources/Load.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=2;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.5.xml)2.Add Before./Sources/Load.phpTest successful
33.Execute Modification./Themes/default/ManageBoards.template.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=5;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.5.xml)1.Replace./Themes/default/ManageBoards.template.phpTest failed

34.Execute Modification./Sources/Subs-Portal.phpSkipping file

35.Execute Modification./Sources/Subs-PortalAdmin.phpSkipping file

36.Execute Modification./Sources/PortalAdminBlocks.phpSkipping file

37.Execute Modification./Themes/default/PortalAdminBlocks.template.phpSkipping file
38.Execute Modification./Sources/ManageBoards.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=1;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.6.xml)1.Replace./Sources/ManageBoards.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=2;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.6.xml)2.Add After./Sources/ManageBoards.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=3;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.6.xml)3.Replace./Sources/ManageBoards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=4;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.6.xml)4.Replace./Sources/ManageBoards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=5;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.6.xml)5.Add After./Sources/ManageBoards.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=6;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.6.xml)6.Replace./Sources/ManageBoards.phpTest successful
39.Execute Modification./Themes/default/ManageBoards.template.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=9;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.6.xml)1.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=10;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.6.xml)2.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=11;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.6.xml)3.Add Before./Themes/default/ManageBoards.template.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=12;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.6.xml)4.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=13;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.6.xml)5.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=14;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.6.xml)6.Replace./Themes/default/ManageBoards.template.phpTest failed
40.Execute Modification./Sources/Admin.phpTest successful

41.Execute Modification./Sources/PortalAdminBlocks.phpSkipping file

42.Execute Modification./Sources/Subs-Portal.phpSkipping file

43.Execute Modification./Themes/default/PortalAdminBlocks.template.phpSkipping file

44.Execute Modification./Sources/Subs-PortalAdmin.phpSkipping file
45.Execute Modification./SSI.phpTest successful
46.Execute Modification./Sources/Load.phpTest successful

47.Execute Modification./Sources/PortalAdminMain.phpSkipping file
48.Execute Modification./Sources/Load.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=1;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.8.xml)1.Replace./Sources/Load.phpTest failed

49.Execute Modification./Sources/PortalAdminMain.phpSkipping file
50.Execute Modification./Sources/ManageBoards.phpTest successful
51.Execute Modification./Themes/default/ManageBoards.template.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=4;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.9.xml)1.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=5;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.9.xml)2.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=6;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.9.xml)3.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=7;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.9.xml)4.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=8;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.9.xml)5.Add After./Themes/default/ManageBoards.template.phpTest failed

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=9;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.9.xml)6.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://citizensandsocieties.org/Test/9998/Themes/default/images/admin/package_ops.gif) (http://citizensandsocieties.org/Test/9998/index.php?action=admin;area=packages;sa=showoperations;operation_key=10;package=Split_Forum_Mod_v1.10.zip;filename=upgrade_1.9.xml)7.Replace./Themes/default/ManageBoards.template.phpTest successful
52.Execute Modification./Themes/default/languages/Admin.english.phpTest successful
Title: Re: Split Forum Mod
Post by: dougiefresh on September 30, 2014, 12:54:58 PM
What version of SMF are you running?  What mods?  (Interesting that you supplied the MySQL version, but not the version of SMF or what mods you have installed....  ::) )

I checked against a clean copy of SMF 2.0.8 and my clean copy reported no errors......
Title: Re: Split Forum Mod
Post by: DenDen60 on September 30, 2014, 01:12:28 PM
Fresh install meant 2.08 ;-)
Title: Re: Split Forum Mod
Post by: DenDen60 on September 30, 2014, 01:13:23 PM
I tried it twice. :-(

I will try on another domain, just for the fun of it. :-(
Title: Re: Split Forum Mod
Post by: DenDen60 on September 30, 2014, 01:14:22 PM
By the way, All I have to do is upload and install the mod through the packet manager.
Title: Re: Split Forum Mod
Post by: dougiefresh on September 30, 2014, 07:35:26 PM
I'm at a complete loss as to why your fresh install of SMF isn't installing the mod correctly....
Title: Re: Split Forum Mod
Post by: DenDen60 on September 30, 2014, 07:38:07 PM
I don't know either. :-(

I tried on another domain and it did the same thing. Could it be because it's installed by Softaculous and in French?
Title: Re: Split Forum Mod
Post by: dougiefresh on September 30, 2014, 07:48:09 PM
Quote from: denden60 on September 30, 2014, 07:38:07 PM
I tried on another domain and it did the same thing. Could it be because it's installed by Softaculous and in French?
Well, if the version by Softaculous isn't the same as the one provided by SMF, then it certainly is possible.  I would recommend downloading the SMF version off of this SITE, unzip it, strip out the install* and Settings files, then upload those files to your server.  If it still does it, then....  I dunno....  :-[

EDIT: Changed a word to make the sentence make sense....
Title: Re: Split Forum Mod
Post by: Falcomfr on October 01, 2014, 07:04:02 AM
Hello :)

I want use your mod but i have a problem. I using phpmyadmin/mysql on localhost.
When i install your mod i got this error:
"Error in Package Installation"
Quote*    4.    Execute Modification    .\Sources/Admin.php    Test failed
      1.    Replace    .\Sources/Admin.php    Test successful
      2.    Replace    .\Sources/Admin.php    Test successful
      3.    Replace    .\Sources/Admin.php    Test successful
      4.    Replace    .\Sources/Admin.php    Test successful
      5.    Add After    .\Sources/Admin.php    Test failed
Don't know why...
Can you help me ?

Thanks
Title: Re: Split Forum Mod
Post by: DenDen60 on October 01, 2014, 09:39:56 AM
Just for the fun of it, I changed the default language to English and it did the same thing. :-(
Title: Re: Split Forum Mod
Post by: margarett on October 01, 2014, 09:43:38 AM
That's something really weird.
Not directly related to this issue, but could you please get all your forum files, pack them in a zip file and send it to me?
I would like to see what differences has a "clean" SMF package to the one Softaculous is distributing, especially if it claims to be 2.0.8.

Don't forget to remove Settings.php from the zip file ;)
Title: Re: Split Forum Mod
Post by: DenDen60 on October 01, 2014, 10:09:12 AM
All right,I will do this.

I have been toying with SMF for a long time, and I have never had any problem. I tried to install Ezportal to see if it worked, and it did.   

Title: Re: Split Forum Mod
Post by: margarett on October 01, 2014, 10:36:07 AM
The package is exactly the same as with a clean SMF install so I see no reason for this to happen...

I replaced all my files with the package you sent and I was able to install this MOD...

(note by Kindred - previous post with attachment removed)
Title: Re: Split Forum Mod
Post by: DenDen60 on October 01, 2014, 01:09:13 PM
Weird.

What version of MySQL database do you use?
Title: Re: Split Forum Mod
Post by: margarett on October 01, 2014, 01:12:33 PM
It's not really relevant here since you get test errors in PHP code but I run PHP 5.5.something :P with MySQL 5.6.20
So whatever happens there has to do with file handling or reading of PHP...
Title: Re: Split Forum Mod
Post by: DenDen60 on October 01, 2014, 01:18:17 PM
PHP version5.4.33
MySQL version5.5.37-cll

Just in case.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 01, 2014, 04:48:45 PM
@denden60: Really weird....  I wish I could help....

Quote from: Falcomfr on October 01, 2014, 07:04:02 AM
I want use your mod but i have a problem. I using phpmyadmin/mysql on localhost.
When i install your mod i got this error:
Attach your Sources/Admin.php file and I'll look at it.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 01, 2014, 06:40:20 PM
I will check with my hosting company, but meanwhile, could you upload a fresh copy of your file, just in case the one I downloaded is corrupt?
Title: Re: Split Forum Mod
Post by: Falcomfr on October 01, 2014, 09:36:19 PM
Thank you dougiefresh
Title: Re: Split Forum Mod
Post by: yahip88 on October 02, 2014, 05:08:36 AM
I'm putting a screen shot here. You can see I have top and side blocks in place.

What I want, in case I'm not explaining this right, is to have more then one of whatever SP calls the 'forum' page'; when you -just- set a block to show on the 'forum', it ONLY shows on the board index. As there is now a second 'board' created by this mod, how can I have a second 'board index'? It doesn't seem, in theory, like this should be impossible...
Title: Re: Split Forum Mod
Post by: dougiefresh on October 02, 2014, 11:58:02 AM
Quote from: denden60 on October 01, 2014, 06:40:20 PM
I will check with my hosting company, but meanwhile, could you upload a fresh copy of your file, just in case the one I downloaded is corrupt?
You can get a new copy of Simple Machines at the Download page at the top of the screen.  (here (http://download.simplemachines.org/))

Quote from: Falcomfr on October 01, 2014, 09:36:19 PM
Thank you dougiefresh
Attached is the altered copy of Admin.php.  You've installed a mod that using the area "MediaPro", and it's that mod which screwed up your Admin.php.  Unfortunately, I don't have the faintest idea what "MediaPro" is, but since you have the strings, I would suggest that you contact the author of that mod and file a complaint about his/her/their mod screwing up Admin.php for you with too many extra lines.....

Quote from: yahip88 on October 02, 2014, 05:08:36 AM
I'm putting a screen shot here. You can see I have top and side blocks in place.
I don't see a screenshot attached....

Quote from: yahip88 on October 02, 2014, 05:08:36 AM
What I want, in case I'm not explaining this right, is to have more then one of whatever SP calls the 'forum' page'; when you -just- set a block to show on the 'forum', it ONLY shows on the board index. As there is now a second 'board' created by this mod, how can I have a second 'board index'? It doesn't seem, in theory, like this should be impossible...
Huh?
Title: Re: Split Forum Mod
Post by: Kindred on October 02, 2014, 03:31:47 PM
he wants a series of links in his main menu which point to each of the split forum locations...
Title: Re: Split Forum Mod
Post by: dougiefresh on October 02, 2014, 07:55:11 PM
Hmmm..... I guess I could add that as an option.  Where to put it, I wonder......  After "Home"?
Title: Re: Split Forum Mod
Post by: Falcomfr on October 03, 2014, 03:36:23 AM
That working with the new admin.php but now i have a another problem.

When i click on "Create New SubForum" i get a blank page with the number "2" and nothing else.

Can you help me again ? Thanks a lot :)

Title: Re: Split Forum Mod
Post by: DenDen60 on October 03, 2014, 11:27:58 AM
I have downloaded a fresh version of your program. (I hope you had refresh the existing copy just to make sure that the present copy is not corrupted  ;) )

Unfortunately, it did the same thing.  :'(

How long would it take to do this manually? Is it just to manually transfer the files one after the other or do I need to make all the modifications that is shown in your original post describing the mod? 

It would be the first time that I manually change a mod.  O:)
Title: Re: Split Forum Mod
Post by: dougiefresh on October 03, 2014, 12:52:17 PM
Replace your ManageSplitForums.php with the attached copy.  I forgot about some debugging code I left in there....  Sorry about that....

EDIT: Attachment removed.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 03, 2014, 02:54:35 PM
I imagine that the last response was for Falcom.  :P
Title: Re: Split Forum Mod
Post by: dougiefresh on October 03, 2014, 03:03:46 PM
@denden60: Actually, the attached file is the answer to Falcom's bug report....  It will be included in the next version.

Quote from: yahip88 on October 02, 2014, 05:08:36 AM
What I want, in case I'm not explaining this right, is to have more then one of whatever SP calls the 'forum' page'; when you -just- set a block to show on the 'forum', it ONLY shows on the board index. As there is now a second 'board' created by this mod, how can I have a second 'board index'? It doesn't seem, in theory, like this should be impossible...
Rewriting the forum software to make more than one board index on a single forum won't happen....  And besides, this mod separates each subforum from each other, so that the users of one subforum aren't supposed to be aware of any of the others....

So the closest I can come to this is to add a SubForums top menu item to the forum's menu.  I added some options to allow administrators to enable/disable the option, and to show it to only the admin.  I hope this will help you.....
Title: Re: Split Forum Mod
Post by: dougiefresh on October 03, 2014, 03:23:37 PM
Uploaded v1.11 - October 3rd, 2014
o Removed some forgotten debugging code left in ManageSplitForum.php.
o Added new SubForums top menu item, which is visible with more than 1 subforum.
o Added option to enable new SubForums top menu.
o Added option to enable new SubForums top menu for ADMIN only.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 03, 2014, 03:56:24 PM
It does the same thing with this version. :-(

So how do I do this manually? Do I just download the files in the Zip.File and upload  them in their proper directories? (I imagine so, but thanks for clarifying. )
Title: Re: Split Forum Mod
Post by: dougiefresh on October 03, 2014, 05:03:33 PM
Quote from: denden60 on October 03, 2014, 03:56:24 PM
It does the same thing with this version. :-(

So how do I do this manually? Do I just download the files in the Zip.File and upload  them in their proper directories? (I imagine so, but thanks for clarifying. )
@denden60: Whoops....  I forgot about your issue!  :o  How to do it manually....  The mod changes many parts of the forum code, so manually wouldn't be easy.....  By upgrade method, here's how: I've attached all the old versions of this mod, starting from v1.3 upwards.  Start by installing v1.3 and work your way upwards until you hit v1.11.  Make sure you hit each one IN ORDER!

Word of Warning: Uninstalling this mod after doing this will be a *itch because you can't downgrade from v1.11 to v1.10, then v1.10 to v1.9....  Uinstalling is an all-or-nothing proposition.  So unless your hosting company fixes whatever is wrong with their setup....  YOU'VE BEEN WARNED!!!

Q: Will I address this in future versions? 
A: Yes.  Version 2.0 will see a completely reorganized mod, which removes the upgrade modules in order to build the mod correctly on the server.  But you probably won't be able to upgrade from v1.x to v2.0 because of the number of changes....  Versions 2.1+ will see a return of the upgrade modules, in order to ease the upgradability of the mod.

EDIT: Moved the attachment with versions 1.3 thru 1.12 to the main mod download page.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 03, 2014, 07:03:28 PM
I have tried installing the first upgrade and I still have some issues. I did send an email to my web hosting company. (Hostpapa). Hope they can help.




1.Adapt Databasedb_install.php
2.Execute Modification./index.phpTest successful
3.Execute Modification./Sources/Admin.phpTest failed

(http://societologie.ca/split/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split/index.php?action=admin;area=packages;sa=showoperations;operation_key=4;package=Split_Forum_Mod_v1.3.zip;filename=install.xml)1.Replace./Sources/Admin.phpTest successful

(http://societologie.ca/split/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split/index.php?action=admin;area=packages;sa=showoperations;operation_key=5;package=Split_Forum_Mod_v1.3.zip;filename=install.xml)2.Replace./Sources/Admin.phpTest successful

(http://societologie.ca/split/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split/index.php?action=admin;area=packages;sa=showoperations;operation_key=6;package=Split_Forum_Mod_v1.3.zip;filename=install.xml)3.Replace./Sources/Admin.phpTest successful

(http://societologie.ca/split/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split/index.php?action=admin;area=packages;sa=showoperations;operation_key=7;package=Split_Forum_Mod_v1.3.zip;filename=install.xml)4.Replace./Sources/Admin.phpTest successful

(http://societologie.ca/split/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split/index.php?action=admin;area=packages;sa=showoperations;operation_key=8;package=Split_Forum_Mod_v1.3.zip;filename=install.xml)5.Add After./Sources/Admin.phpTest failed
4.Execute Modification./Sources/Load.phpTest successful
5.Execute Modification./Sources/ManageBoards.phpTest successful
6.Execute Modification./Sources/ManageCalendar.phpTest successful
7.Execute Modification./Sources/ManageMaintenance.phpTest successful
8.Execute Modification./Sources/ManageRegistration.phpTest successful
9.Execute Modification./Sources/ManageServer.phpTest successful
10.Execute Modification./Sources/News.phpTest successful
11.Execute Modification./Sources/Packages.phpTest successful
12.Execute Modification./Sources/PostModeration.phpTest successful
13.Execute Modification./Sources/Profile-Modify.phpTest successful
14.Execute Modification./Sources/Recent.phpTest successful
15.Execute Modification./Sources/Register.phpTest successful
16.Execute Modification./Sources/Reports.phpTest successful
17.Execute Modification./Sources/Search.phpTest successful
18.Execute Modification./Sources/Subs.phpTest successful
19.Execute Modification./Sources/Subs-Admin.phpTest successful
20.Execute Modification./Sources/Subs-BoardIndex.phpTest successful
21.Execute Modification./Sources/Subs-Boards.phpTest successful
22.Execute Modification./Sources/Subs-Categories.phpTest successful
23.Execute Modification./Sources/Subs-Members.phpTest successful
24.Execute Modification./Sources/Subs-MessageIndex.phpTest successful
25.Execute Modification./Themes/default/index.template.phpTest successful
26.Execute Modification./Themes/default/ManageBoards.template.phpTest successful
27.Execute Modification./Themes/default/languages/Admin.english.phpTest successful
28.Execute Modification./Themes/default/languages/Errors.english.phpTest successful

29.Execute Modification./Themes/default/languages/Admin.english-utf8.phpSkipping file

30.Execute Modification./Themes/default/languages/Errors.english-utf8.phpSkipping file

31.Extract File./Sources/ManageSplitForums.php

32.Extract File./Sources/Subs-ManageSplitForums.php

33.Extract File./Themes/default/css/realtabs.css

34.Extract File./Themes/default/ManageSplitForums.template.php

35.Extract File./Themes/default/languages/ManageSplitForums.english.php

36.Extract File./Themes/default/languages/ManageSplitForums.english-utf8.php

37.Extract File./Themes/default/images/empty.png
Title: Re: Split Forum Mod
Post by: dougiefresh on October 03, 2014, 07:07:21 PM
Send me your Admin.php file....
Title: Re: Split Forum Mod
Post by: DenDen60 on October 03, 2014, 07:19:26 PM
Here you go.

and thank you for helping.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 04, 2014, 03:52:09 AM
EzPortal screws up your Admin.php file.  You should contact the author of EzPortal about this.  Attached is your corrected Admin.php file.

EDIT: Removed attachment....
Title: Re: Split Forum Mod
Post by: DenDen60 on October 04, 2014, 08:49:50 AM
Hi thanks dougiefresh.

It was my mistake, I should have tried installing version 1.3 on a fresh install. (I had install ezportal to see if I could installed a mod with a new instance of SMF 2.08 to make sure that it was working fine.)

So I installed all your updates on a fresh install of SMF 2.08 and it worked. (However, I still can't install 1.11 on a fresh version. :-( and I have nor receive any feedback from my hosting company.)

Thank you for your help.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 04, 2014, 11:04:42 AM
I am testing it and it sounds very promising.  :D

In theory, how many forum can we create? ( I will start with around 20, but it will reach over 300 if things goes my way. )

Can we have different news, using SMF news options, for the different forums?

Title: Re: Split Forum Mod
Post by: dougiefresh on October 04, 2014, 07:42:13 PM
Quote from: denden60 on October 04, 2014, 11:04:42 AM
In theory, how many forum can we create? ( I will start with around 20, but it will reach over 300 if things goes my way. )
Well, I would guess that you can create as many forums as you want, without restriction.....  I personally haven't tried to create as many as possible, but understand that the more subforums you define, the more memory it takes to store the information since it is stored as an array in Settings.php.... 

Quote from: denden60 on October 04, 2014, 08:49:50 AM
However, I still can't install 1.11 on a fresh version. :-(
What error(s) are you experiencing?

Quote from: denden60 on October 04, 2014, 11:04:42 AM
Can we have different news, using SMF news options, for the different forums?
Um....  I don't think so....  I think it's something that I can implement, if you want....
Title: Re: Split Forum Mod
Post by: DenDen60 on October 04, 2014, 09:26:50 PM
Thanks for your response dougiefresh.

I will start with around 20 subforums so will see how it works.

Yes, I would like a different news for each forums. If you could include this it would be great.

As for the errors, they seem to be the same as teh one before:


Test successful
29.Execute Modification./Sources/Load.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=1;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)1.Replace./Sources/Load.phpTest failed
30.Execute Modification./Sources/ManageBoards.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=4;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)1.Replace./Sources/ManageBoards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=5;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)2.Replace./Sources/ManageBoards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=6;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)3.Replace./Sources/ManageBoards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=7;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)4.Replace./Sources/ManageBoards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=8;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)5.Replace./Sources/ManageBoards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=9;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)6.Replace./Sources/ManageBoards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=10;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)7.Replace./Sources/ManageBoards.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=11;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)8.Replace./Sources/ManageBoards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=12;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)9.Replace./Sources/ManageBoards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=13;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)10.Replace./Sources/ManageBoards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=14;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)11.Replace./Sources/ManageBoards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=15;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)12.Replace./Sources/ManageBoards.phpTest successful
31.Execute Modification./Sources/Subs-Boards.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=18;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)1.Add After./Sources/Subs-Boards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=19;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)2.Replace./Sources/Subs-Boards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=20;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)3.Replace./Sources/Subs-Boards.phpTest failed
32.Execute Modification./Themes/default/ManageBoards.template.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=23;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)1.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=24;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)2.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=25;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)3.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=26;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)4.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=27;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)5.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=28;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)6.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=29;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)7.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=30;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)8.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=31;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)9.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=32;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)10.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=33;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)11.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=34;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)12.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=35;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.4.xml)13.Replace./Themes/default/ManageBoards.template.phpTest successful
33.Execute Modification./Sources/Load.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=1;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.5.xml)1.Replace./Sources/Load.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=2;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.5.xml)2.Add Before./Sources/Load.phpTest successful
34.Execute Modification./Themes/default/ManageBoards.template.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=5;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.5.xml)1.Replace./Themes/default/ManageBoards.template.phpTest failed

35.Execute Modification./Sources/Subs-Portal.phpSkipping file

36.Execute Modification./Sources/Subs-PortalAdmin.phpSkipping file

37.Execute Modification./Sources/PortalAdminBlocks.phpSkipping file

38.Execute Modification./Themes/default/PortalAdminBlocks.template.phpSkipping file
39.Execute Modification./Sources/ManageBoards.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=1;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.6.xml)1.Replace./Sources/ManageBoards.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=2;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.6.xml)2.Add After./Sources/ManageBoards.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=3;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.6.xml)3.Replace./Sources/ManageBoards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=4;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.6.xml)4.Replace./Sources/ManageBoards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=5;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.6.xml)5.Add After./Sources/ManageBoards.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=6;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.6.xml)6.Replace./Sources/ManageBoards.phpTest successful
40.Execute Modification./Themes/default/ManageBoards.template.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=9;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.6.xml)1.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=10;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.6.xml)2.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=11;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.6.xml)3.Add Before./Themes/default/ManageBoards.template.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=12;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.6.xml)4.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=13;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.6.xml)5.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=14;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.6.xml)6.Replace./Themes/default/ManageBoards.template.phpTest failed
41.Execute Modification./Sources/Admin.phpTest successful

42.Execute Modification./Sources/PortalAdminBlocks.phpSkipping file

43.Execute Modification./Sources/Subs-Portal.phpSkipping file

44.Execute Modification./Themes/default/PortalAdminBlocks.template.phpSkipping file

45.Execute Modification./Sources/Subs-PortalAdmin.phpSkipping file
46.Execute Modification./SSI.phpTest successful
47.Execute Modification./Sources/Load.phpTest successful

48.Execute Modification./Sources/PortalAdminMain.phpSkipping file
49.Execute Modification./Sources/Load.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=1;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.8.xml)1.Replace./Sources/Load.phpTest failed

50.Execute Modification./Sources/PortalAdminMain.phpSkipping file
51.Execute Modification./Sources/ManageBoards.phpTest successful
52.Execute Modification./Themes/default/ManageBoards.template.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=4;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.9.xml)1.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=5;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.9.xml)2.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=6;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.9.xml)3.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=7;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.9.xml)4.Replace./Themes/default/ManageBoards.template.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=8;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.9.xml)5.Add After./Themes/default/ManageBoards.template.phpTest failed

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=9;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.9.xml)6.Replace./Themes/default/ManageBoards.template.phpTest successful

(http://societologie.ca/split3/Themes/default/images/admin/package_ops.gif) (http://societologie.ca/split3/index.php?action=admin;area=packages;sa=showoperations;operation_key=10;package=Split_Forum_Mod_v1.11.zip;filename=upgrade_1.9.xml)7.Replace./Themes/default/ManageBoards.template.phpTest successful
53.Execute Modification./Themes/default/languages/Admin.english.phpTest successful
54.Execute Modification./Themes/default/languages/Errors.english.phpTest successful

55.Execute Modification./Themes/default/languages/SPortalAdmin.english.phpSkipping file

56.Execute Modification./Themes/default/languages/Admin.english-utf8.phpSkipping file

57.Execute Modification./Themes/default/languages/Errors.english-utf8.phpSkipping file

58.Execute Modification./Themes/default/languages/SPortalAdmin.english-utf8.phpSkipping file

59.Extract File./Sources/ManageSplitForums.php

60.Extract File./Sources/Subs-ManageSplitForums.php

61.Extract File./Sources/Subs-SplitForumHooks.php

62.Extract File./Themes/default/css/splitforum.css

63.Extract File./Themes/default/ManageSplitForums.template.php

64.Extract File./Themes/default/languages/ManageSplitForums.english.php

65.Extract File./Themes/default/languages/ManageSplitForums.english-utf8.php

66.Extract File./Themes/default/images/empty.png
Title: Re: Split Forum Mod
Post by: dougiefresh on October 04, 2014, 09:55:36 PM
 :o I don't understand what's going on here.....  So I'm gonna ask a question: Are you installing each version of the mod, then uninstalling?  Or did you install v1.3, then upgrade to v1.4, then v1.5, and so forth and so on?

Quote from: denden60 on October 04, 2014, 09:26:50 PM
I will start with around 20 subforums so will see how it works.
Dang!!!  Ambitious enough, are ya?!?  LOL!  Just wondering, is each subforum going to be on it's own domain, or all on one?




How to MANUALLY install v1.11 over v1.10: Copy the ManageSplitForums.php and Subs-SplitForumHooks.php to your Sources folder, then copy the db_upgrade_1.11_only.php to the root of your forum and execute it using your browser.  Delete it from the root of your forum once it's finished.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 04, 2014, 10:54:55 PM
I did a fresh install of SMF and then tried to install the latest version of your mod and I got these errors

Most forums will be on one domain. ( I should rephrase my last comment. I will start with 10 forums, around 20 by January.

Title: Re: Split Forum Mod
Post by: Kindred on October 04, 2014, 11:07:41 PM
Why would you split your forum 10 different ways?
Title: Re: Split Forum Mod
Post by: DenDen60 on October 04, 2014, 11:36:19 PM
10 different clientèles with different needs.
Title: Re: Split Forum Mod
Post by: Kindred on October 05, 2014, 12:49:22 AM
But those 10 clients share the same userbase?   
Not intending to give offense, but that sounds bizarre... And illogical.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 05, 2014, 08:07:52 AM
It might seem bizarre and illogical, but most members will use three to six forums.
Furthermore, the same database also serve my needs. ;-)
Title: Re: Split Forum Mod
Post by: Falcomfr on October 06, 2014, 07:40:23 AM
Thanks you again dougiefresh :)

Title: Re: Split Forum Mod
Post by: DenDen60 on October 06, 2014, 09:59:30 AM
What would be the best way to copy the blank categories and boards in a split-forum?

Although my forums will be adressing the needs of different clientèle, geographically speaking, most of the categories and boards will be the same to start with.

Is there a way to do this?

Thanks
DenDen
Title: Re: Split Forum Mod
Post by: dougiefresh on October 06, 2014, 06:19:40 PM
Quote from: dougiefresh on August 07, 2014, 01:53:44 PM
Quote from: jjqualls on August 03, 2014, 09:30:39 PM
Any way to easily copy subforum boards from 1 subforum to the others? Wanting to do several subforums, but the initial boards will be the same for each one and was just hoping I didn't have to do the same thing for each one.
Regarding this topic, I started a discussion regarding cloning a board here (http://www.simplemachines.org/community/index.php?topic=526131).  I have since decided not to pursue implementation of this idea, for many of the reasons listed in that topic.....  Now, if only the board information was needed to be duplicated (no content), then that is feasible.  But topics, messages, attachments, etc.....  I'm gonna have to say no to....
Title: Re: Split Forum Mod
Post by: Kindred on October 06, 2014, 06:56:12 PM
Dougie...   Why not set the boards so they can be displayed in multiple subforums?  E.g. Board 1 is displayed in subforums a b and c. Board 2 is only displayed in b. Board 3 is displayed in b and c

Etc...
Title: Re: Split Forum Mod
Post by: Arantor on October 06, 2014, 07:00:09 PM
The problem with that, I would imagine, is the implied having to reorder the boards.

If you have boards like that, you implicitly need to hold multiple sets of order for them, since board 1 might be in sites a and b, but you might want it at the top of the list in a and at the bottom in b - and that can't be reconciled without much larger changes.
Title: Re: Split Forum Mod
Post by: Kindred on October 06, 2014, 07:01:51 PM
Well, yes and no...

You could just declare that the board order is fixed across all subforums...
Title: Re: Split Forum Mod
Post by: Arantor on October 06, 2014, 07:05:42 PM
That's how it currently is and can't be changed easily for that reason.

Dealing with multiple hierarchies is a serious problem btw.

Consider: what hierarchy should be in the link tree?
Title: Re: Split Forum Mod
Post by: DenDen60 on October 06, 2014, 11:27:14 PM
I will read it and see if is easily feasible.

Like I said, in my case, they would be blank except for categories, board, sub-board and if necessary sub-sub-boards, but no messages, no attachments, etc.

Title: Re: Split Forum Mod
Post by: DenDen60 on October 06, 2014, 11:38:18 PM
Maybe I should just create a model using Excel and then import it with MySQL. Would that be better?
Title: Re: Split Forum Mod
Post by: Kindred on October 07, 2014, 06:20:46 AM
not really...  doing direct imports into mySQL is a sure way to screw things up unless you really know what you are doing.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 07, 2014, 09:21:35 AM
Even if it is blank categories, boards and sub-boards?

Title: Re: Split Forum Mod
Post by: Arantor on October 07, 2014, 09:39:15 AM
Yes because the boards table is complicated in how it works - even I would be hesitant to do it and I've done *crazy* things with it.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 07, 2014, 09:56:07 AM
Ok. Thanks. I will thus try to stay away from it.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 07, 2014, 01:38:14 PM
DougieFresh, Host Papa support got back to me.

We use
and you use:
Can this be problematic?

They ask me if there are other servers requirements needed for the module.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 07, 2014, 01:58:24 PM
Wow.... A whole conversation went on while I was away.....  :P

Quote from: Kindred on October 06, 2014, 06:56:12 PM
Dougie...   Why not set the boards so they can be displayed in multiple subforums?  E.g. Board 1 is displayed in subforums a b and c. Board 2 is only displayed in b. Board 3 is displayed in b and c
:o  I guess the simplest answer is that during my spare time, I've been fighting fires that have been breaking out on a few of my mods....  Time-consuming to say the very least.   :-[ The other answer I have is that I stated earlier in this thread (http://www.simplemachines.org/community/index.php?topic=523055.msg3730133#msg3730133) that I would release a version capable of showing a category in multiple subforums for version 2.0.....  and I haven't started on that, yet....

Quote from: Arantor on October 06, 2014, 07:00:09 PM
The problem with that, I would imagine, is the implied having to reorder the boards.

If you have boards like that, you implicitly need to hold multiple sets of order for them, since board 1 might be in sites a and b, but you might want it at the top of the list in a and at the bottom in b - and that can't be reconciled without much larger changes.
Damn....  I didn't even think of that....  Something that I will definitely need to consider how to tackle....

Quote from: denden60 on October 06, 2014, 09:59:30 AM
Although my forums will be adressing the needs of different clientèle, geographically speaking, most of the categories and boards will be the same to start with.
I guess I could write something up for this mod, but it will be filled with warnings about order of posts and SMF's default sorting and how I'm not going to change that for the sake of this mod....  Make sure you read the topic I pointed you to in the last post (http://www.simplemachines.org/community/index.php?topic=523055.msg3751556#msg3751556) directed at you, please.  You'll be filled in on the discussion......

Quote from: denden60 on October 07, 2014, 01:38:14 PM
They ask me if there are other servers requirements needed for the module.
I'm not aware of any "special" requirements of this mod.  On my localhost test forum, I run EasyPHP v5.3.8 on Windows 7.  It contains PHP 5.3.8 VC9, Apache 2.2.19 VC9, MySQL 5.5.15, PhpMyAdmin 3.4.3.2, and Xdebug 2.1.2.........
Title: Re: Split Forum Mod
Post by: dougiefresh on October 07, 2014, 02:58:55 PM
@Arantor: The only way I can think to resolve the board sorting issue without messing the forum code up further is to add more columns, one for each subforum, and modify the queries to use the new subforum's columns.  For example, primary subforum would have the field "cat_order", while subforum 1 would have "cat_order1", subforum 2 would have "cat_order2", etc, etc, etc....
Title: Re: Split Forum Mod
Post by: Arantor on October 07, 2014, 03:02:20 PM
Yeah, pretty much - and it gets icky.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 07, 2014, 08:04:05 PM
@denden60:  I'm updating the mod so that a regular install doesn't rely on the upgrade files at all.  It'll be with version 1.12, and that version will be fully uninstallable....  Hope this helps!
Title: Re: Split Forum Mod
Post by: DenDen60 on October 07, 2014, 08:05:41 PM
Dougie - never mind duplication. I will do it the long way.


Thanks for the 1.12 update.
Title: Re: Split Forum Mod
Post by: Kindred on October 07, 2014, 08:16:47 PM
dougie...   I can dig up the multi-domain/single-install mod that my old company developed (for RC3/RC4) and pass it on to you, if you would like to take a look how they did it?

They had the exact design that I indicated, above (which is why I suggested it that way. :) )
Not sure if they dealt with the sort order thing or not...
Title: Re: Split Forum Mod
Post by: dougiefresh on October 08, 2014, 03:57:20 AM
@denden60: It's happening anyway.....

@Kindred: Sure, why not!  Thanks in advance!
Title: Re: Split Forum Mod
Post by: DenDen60 on October 08, 2014, 09:53:37 AM
Quote from: dougiefresh on October 07, 2014, 08:04:05 PM
@denden60:  I'm updating the mod so that a regular install doesn't rely on the upgrade files at all.  It'll be with version 1.12, and that version will be fully uninstallable....  Hope this helps!

Do you mean to say that to install version 1.11, you needed the other versions present?
Title: Re: Split Forum Mod
Post by: dougiefresh on October 08, 2014, 02:26:38 PM
Quote from: denden60 on October 08, 2014, 09:53:37 AM
Do you mean to say that to install version 1.11, you needed the other versions present?
This mod is built using upgrade files.  install_1.3.xml contains the base code that the mod is built on, and files like upgrade_1.4.xml contain the bits and pieces of the mod that either (a) need fixing, or (b) are being upgraded.  Most servers can handle the upgrade files properly....  So if your server can process the upgrade files correctly, then no, you don't need a previous version installed. 

However, you told me that you were having difficulties installing this mod, and the problem starts in the upgrade_1.4.xml, which is processed immediately after install_1.3.xml.  Anyone having this issue would need to install version 1.3, then upgrade the install with versions 1.4 and up in order to get to v1.11.....

In these cases such as the one you described, you will need to upgrade to version 1.12 in order to correctly remove the mod from your forum, as version 1.12 will remove the upgrade files from the install process during a non-upgrade install of the mod.  Upgradability will remain available for those who what to upgrade from an older version to the latest without uninstalling. 

Consolidation of the upgrade files is also the first step in creating the version 2.0 edition.....

Help that answers the question....
Title: Re: Split Forum Mod
Post by: DenDen60 on October 08, 2014, 02:58:53 PM
Well then this explains the error message. I never understood that I had to install version 1.3 first.  :(

It also explains why the system worked fine after upgrading from 1.3 to 1.11
Title: Re: Split Forum Mod
Post by: dougiefresh on October 08, 2014, 07:19:22 PM
UPDATE: Okay, I've got a preliminary copy of version 1.12 ready, however, I'm going to hold off until probably Friday in order to fix up the install php files that are in the mod.  Tomorrow, I've got other things planned for after work... and it's almost time for bed.... :P  I've installed v1.12 (package id'ed itself as 1.11) and uninstalled using v1.11, as well as the other way around, without any issues....
Title: Re: Split Forum Mod
Post by: DenDen60 on October 09, 2014, 12:53:21 PM
Hi Dougie

I was looking at your to do list:
The two first elements will be great addition for me.

I do have a question on : "Theme settings restricted to members registered on a subforum" I don't understand this part. Is there more than one member database?

As I mentioned last week, it would be great if each subforum could have it's own News.
Title: Re: Split Forum Mod
Post by: Streamlife on October 10, 2014, 03:29:46 PM
hello Again dougiefresh
I Still having Error When i try to Install your mod and i really need it! its unique and I Like So much, So please Can you Give me a hand?!!

here the error's

This work is licensed under a Creative Commons Attribution 3.0 Unported License Idiomas de léeme disponibles. 

Acciones de Instalaciones para "Split Forum Mod"
La instalación de este paquete realizará las siguientes acciones:
Tipo Acción Descripción
1. Adaptar Base de datos db_upgrade_1.6_only.php
2. Executar Código db_install.php
3. Executar Código db_upgrade_1.11_only.php
* 4. Executar Modificación ./index.php Prueba completada con éxito
* 5. Executar Modificación ./Sources/Admin.php Prueba completada con éxito
* 6. Executar Modificación ./Sources/Load.php Prueba completada con éxito
* 7. Executar Modificación ./Sources/ManageBoards.php Prueba completada con éxito
* 8. Executar Modificación ./Sources/ManageCalendar.php Prueba completada con éxito
* 9. Executar Modificación ./Sources/ManageMaintenance.php Prueba completada con éxito
* 10. Executar Modificación ./Sources/ManageRegistration.php Prueba completada con éxito
* 11. Executar Modificación ./Sources/ManageServer.php Prueba completada con éxito
* 12. Executar Modificación ./Sources/News.php Prueba completada con éxito
* 13. Executar Modificación ./Sources/Packages.php Prueba completada con éxito
* 14. Executar Modificación ./Sources/PostModeration.php Prueba completada con éxito
* 15. Executar Modificación ./Sources/Profile-Modify.php Prueba completada con éxito
* 16. Executar Modificación ./Sources/Recent.php Prueba completada con éxito
* 17. Executar Modificación ./Sources/Register.php Prueba completada con éxito
* 18. Executar Modificación ./Sources/Reports.php Prueba completada con éxito
* 19. Executar Modificación ./Sources/Search.php Prueba completada con éxito
* 20. Executar Modificación ./Sources/Subs.php Prueba completada con éxito
* 21. Executar Modificación ./Sources/Subs-Admin.php Prueba completada con éxito
* 22. Executar Modificación ./Sources/Subs-BoardIndex.php Prueba completada con éxito
* 23. Executar Modificación ./Sources/Subs-Boards.php Prueba completada con éxito
* 24. Executar Modificación ./Sources/Subs-Categories.php Prueba completada con éxito
* 25. Executar Modificación ./Sources/Subs-Members.php Prueba completada con éxito
* 26. Executar Modificación ./Sources/Subs-MessageIndex.php Prueba completada con éxito
* 27. Executar Modificación ./Themes/default/index.template.php Prueba completada con éxito
* 28. Executar Modificación ./Themes/default/ManageBoards.template.php Prueba completada con éxito
* 29. Executar Modificación ./Sources/Load.php Prueba fallida
1. Reemplazar ./Sources/Load.php Prueba fallida
* 30. Executar Modificación ./Sources/ManageBoards.php Prueba fallida
1. Reemplazar ./Sources/ManageBoards.php Prueba completada con éxito
2. Reemplazar ./Sources/ManageBoards.php Prueba completada con éxito
3. Reemplazar ./Sources/ManageBoards.php Prueba completada con éxito
4. Reemplazar ./Sources/ManageBoards.php Prueba completada con éxito
5. Reemplazar ./Sources/ManageBoards.php Prueba completada con éxito
6. Reemplazar ./Sources/ManageBoards.php Prueba completada con éxito
7. Reemplazar ./Sources/ManageBoards.php Prueba fallida
8. Reemplazar ./Sources/ManageBoards.php Prueba completada con éxito
9. Reemplazar ./Sources/ManageBoards.php Prueba completada con éxito
10. Reemplazar ./Sources/ManageBoards.php Prueba completada con éxito
11. Reemplazar ./Sources/ManageBoards.php Prueba completada con éxito
12. Reemplazar ./Sources/ManageBoards.php Prueba completada con éxito
* 31. Executar Modificación ./Sources/Subs-Boards.php Prueba fallida
1. Añadir después ./Sources/Subs-Boards.php Prueba completada con éxito
2. Reemplazar ./Sources/Subs-Boards.php Prueba completada con éxito
3. Reemplazar ./Sources/Subs-Boards.php Prueba fallida
* 32. Executar Modificación ./Themes/default/ManageBoards.template.php Prueba fallida
1. Reemplazar ./Themes/default/ManageBoards.template.php Prueba completada con éxito
2. Reemplazar ./Themes/default/ManageBoards.template.php Prueba completada con éxito
3. Reemplazar ./Themes/default/ManageBoards.template.php Prueba completada con éxito
4. Reemplazar ./Themes/default/ManageBoards.template.php Prueba completada con éxito
5. Reemplazar ./Themes/default/ManageBoards.template.php Prueba completada con éxito
6. Reemplazar ./Themes/default/ManageBoards.template.php Prueba completada con éxito
7. Reemplazar ./Themes/default/ManageBoards.template.php Prueba completada con éxito
8. Reemplazar ./Themes/default/ManageBoards.template.php Prueba fallida
9. Reemplazar ./Themes/default/ManageBoards.template.php Prueba completada con éxito
10. Reemplazar ./Themes/default/ManageBoards.template.php Prueba fallida
11. Reemplazar ./Themes/default/ManageBoards.template.php Prueba fallida
12. Reemplazar ./Themes/default/ManageBoards.template.php Prueba fallida
13. Reemplazar ./Themes/default/ManageBoards.template.php Prueba completada con éxito
* 33. Executar Modificación ./Sources/Load.php Prueba fallida
1. Reemplazar ./Sources/Load.php Prueba fallida
2. Añadir antes ./Sources/Load.php Prueba completada con éxito
* 34. Executar Modificación ./Themes/default/ManageBoards.template.php Prueba fallida
1. Reemplazar ./Themes/default/ManageBoards.template.php Prueba fallida
35. Executar Modificación ./Sources/Subs-Portal.php Saltar archivo
36. Executar Modificación ./Sources/Subs-PortalAdmin.php Saltar archivo
37. Executar Modificación ./Sources/PortalAdminBlocks.php Saltar archivo
38. Executar Modificación ./Themes/default/PortalAdminBlocks.template.php Saltar archivo
* 39. Executar Modificación ./Sources/ManageBoards.php Prueba fallida
1. Reemplazar ./Sources/ManageBoards.php Prueba fallida
2. Añadir después ./Sources/ManageBoards.php Prueba fallida
3. Reemplazar ./Sources/ManageBoards.php Prueba completada con éxito
4. Reemplazar ./Sources/ManageBoards.php Prueba completada con éxito
5. Añadir después ./Sources/ManageBoards.php Prueba completada con éxito
6. Reemplazar ./Sources/ManageBoards.php Prueba completada con éxito
* 40. Executar Modificación ./Themes/default/ManageBoards.template.php Prueba fallida
1. Reemplazar ./Themes/default/ManageBoards.template.php Prueba completada con éxito
2. Reemplazar ./Themes/default/ManageBoards.template.php Prueba fallida
3. Añadir antes ./Themes/default/ManageBoards.template.php Prueba completada con éxito
4. Reemplazar ./Themes/default/ManageBoards.template.php Prueba completada con éxito
5. Reemplazar ./Themes/default/ManageBoards.template.php Prueba completada con éxito
6. Reemplazar ./Themes/default/ManageBoards.template.php Prueba fallida
* 41. Executar Modificación ./Sources/Admin.php Prueba completada con éxito
42. Executar Modificación ./Sources/PortalAdminBlocks.php Saltar archivo
43. Executar Modificación ./Sources/Subs-Portal.php Saltar archivo
44. Executar Modificación ./Themes/default/PortalAdminBlocks.template.php Saltar archivo
45. Executar Modificación ./Sources/Subs-PortalAdmin.php Saltar archivo
* 46. Executar Modificación ./SSI.php Prueba completada con éxito
* 47. Executar Modificación ./Sources/Load.php Prueba completada con éxito
48. Executar Modificación ./Sources/PortalAdminMain.php Saltar archivo
* 49. Executar Modificación ./Sources/Load.php Prueba fallida
1. Reemplazar ./Sources/Load.php Prueba fallida
50. Executar Modificación ./Sources/PortalAdminMain.php Saltar archivo
* 51. Executar Modificación ./Sources/ManageBoards.php Prueba completada con éxito
* 52. Executar Modificación ./Themes/default/ManageBoards.template.php Prueba fallida
1. Reemplazar ./Themes/default/ManageBoards.template.php Prueba fallida
2. Reemplazar ./Themes/default/ManageBoards.template.php Prueba fallida
3. Reemplazar ./Themes/default/ManageBoards.template.php Prueba fallida
4. Reemplazar ./Themes/default/ManageBoards.template.php Prueba fallida
5. Añadir después ./Themes/default/ManageBoards.template.php Prueba fallida
6. Reemplazar ./Themes/default/ManageBoards.template.php Prueba completada con éxito
7. Reemplazar ./Themes/default/ManageBoards.template.php Prueba completada con éxito
* 53. Executar Modificación ./Themes/default/languages/Admin.english.php Prueba completada con éxito
* 54. Executar Modificación ./Themes/default/languages/Errors.english.php Prueba completada con éxito
55. Executar Modificación ./Themes/default/languages/SPortalAdmin.english.php Saltar archivo
56. Executar Modificación ./Themes/default/languages/Admin.english-utf8.php Saltar archivo
57. Executar Modificación ./Themes/default/languages/Errors.english-utf8.php Saltar archivo
58. Executar Modificación ./Themes/default/languages/SPortalAdmin.english-utf8.php Saltar archivo
59. Extraer Archivo ./Sources/ManageSplitForums.php
60. Extraer Archivo ./Sources/Subs-ManageSplitForums.php
61. Extraer Archivo ./Sources/Subs-SplitForumHooks.php
62. Extraer Archivo ./Themes/default/css/splitforum.css
63. Extraer Archivo ./Themes/default/ManageSplitForums.template.php
64. Extraer Archivo ./Themes/default/languages/ManageSplitForums.english.php
65. Extraer Archivo ./Themes/default/languages/ManageSplitForums.english-utf8.php
66. Extraer Archivo ./Themes/default/images/empty.png
Instalar en Otros Temas
Para usar esta modificación en temas distintos al por defecto, el gestor de paquetes necesita realizar cambios adicionales a los otros temas. Si quisieras instalar esta modificiación en los otros temas, por favor selecciona estos temas abajo.
Core Theme
Executar Modificación ./Themes/core/index.template.php Prueba completada con éxito
Extraer Archivo ./Themes/core/images/empty.png
VskGaming
Executar Modificación ./Themes/VskGaming/index.template.php Prueba completada con éxito
Extraer Archivo ./Themes/VskGaming/images/empty.png
Red Clique
Executar Modificación ./Themes/red-clique/index.template.php Prueba completada con éxito
Extraer Archivo ./Themes/red-clique/images/empty.png
Gumus
Extraer Archivo ./Themes/Gumus/images/empty.png
Bella Citta
Extraer Archivo ./Themes/bellacitta/images/empty.png
Dilber Multicolor
Extraer Archivo ./Themes/DilberMC_2/images/empty.png
Black Ops
Extraer Archivo ./Themes/Black_Ops_2/images/empty.png
Reseller
Extraer Archivo ./Themes/Reseller/images/empty.png


---------------------------------------------------------------

Where Say
Prueba Fallida Means ( Failded )
Where Say Prueba completada con éxito Means Work Fine..

Now i Atachs some Photos too

See below.

Best Regards.

PD: I attach into one Word File I Made copy paste and you can read it well From there, thanks

Title: Re: Split Forum Mod
Post by: DenDen60 on October 10, 2014, 04:36:09 PM
Streamdark

Look at this message and download the attach file (Old version). Unzip it and install version 1.3. Then install version 1.4, then 1.5 etc. and it should work. It did for me and I had the same errors.

http://www.simplemachines.org/community/index.php?topic=523055.msg3750337#msg3750337 (http://www.simplemachines.org/community/index.php?topic=523055.msg3750337#msg3750337)

Good luck
DenDen60
Title: Re: Split Forum Mod
Post by: Kindred on October 10, 2014, 06:21:32 PM
streamdark....

http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Split Forum Mod
Post by: dougiefresh on October 10, 2014, 06:30:00 PM
Uploaded v1.12 - October 8th, 2014
o Mod rearranged due to some servers having difficulty processing this mod correctly...




@denden60: and @streamdark:  This update should resolve any installation issues with this mod. 
EDIT: Please upgrade to this version if you are at version 1.11 in order to be able to remove this mod.

@denden60: This update does not address the news request that you made.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 10, 2014, 07:37:22 PM
Thanks Dougiefresh.

I will try it out on a new install to see if it works on my server
Title: Re: Split Forum Mod
Post by: Streamlife on October 10, 2014, 08:18:34 PM
hello back Guys, denden60 dougiefresh and Kindred thanks for Fast Reply, You see Guys i Cant found the link You mention Sorry am kinda dizzy aready ;()
Can explain me like a baby please and Sorry for This order is just i still consufe or i miss some part i dont know I Try and i try to see here

http://www.simplemachines.org/community/index.php?topic=523055.msg3750337#msg3750337

and here

http://wiki.simplemachines.org/smf/Error_in_mod_installation

and cant undertend it, I just have this link from mod

http://custom.simplemachines.org/mods/index.php?mod=3730

And i try to parse it Too But no work
Thanks in advance guys
Title: Re: Split Forum Mod
Post by: Streamlife on October 10, 2014, 09:10:37 PM
Guys Guys I Think Now Work, I mean I Install The New Mod Version Split_Forum_Mod_v1.12.zip The master upload today and i get ZERO error Installing the mod now BUT!!!

but when finish installing a new window appear with this message

Unknown column 'forumid' in 'where clause'
Archivo: /home/vskgaming.com.ar/public_html/foro/Packages/temp/db_install.php
Línea: 59

Nota: Parece que tu base de datos puede necesitar una actualización. La versión de los archivos de tu foro están en la versión SMF 2.0.9, mientras que tu base de datos está en la versión de SMF 2.0.4. Este error probablemente desaparecerá si ejecutas la última versión de upgrade.php.

Also This is kinda extrange, here say i need upload my SMF data base and i have it on 2.0.9

here my place  www.vskgaming.com.ar/foro

Thanks again
Title: Re: Split Forum Mod
Post by: Streamlife on October 10, 2014, 09:31:57 PM
Guys, The Mod WORK!!!!! exelent now, Thanks So much so much, ( About that Error Code no idea But Seem All Work Fine Tehehehe )

This is a wonderfull Mod Really and i Want to thanks you So much for help guys really, One Hug To all ;)

Best regards
Title: Re: Split Forum Mod
Post by: DenDen60 on October 10, 2014, 10:57:55 PM
Works also on mine Dougiefresh.  8)

Thanks



Title: Re: Split Forum Mod
Post by: Streamlife on October 11, 2014, 09:27:38 AM
Hello back, Today the Mod Stop Working When i Install it Last night all Seem Like work fine , but nope!!
I noticed this morning The Mod Still not installed So i Try To Install it Again and get this Error ( See below )


Unknown column 'forumid' in 'where clause'
Archivo: /home/vskgaming.com.ar/public_html/foro/Packages/temp/db_install.php
Línea: 59

Nota: Parece que tu base de datos puede necesitar una actualización. La versión de los archivos de tu foro están en la versión SMF 2.0.9, mientras que tu base de datos está en la versión de SMF 2.0.4. Este error probablemente desaparecerá si ejecutas la última versión de upgrade.php.


i have This error  Sigh..
Title: Re: Split Forum Mod
Post by: Falcomfr on October 12, 2014, 06:07:54 AM
Hey dougiefresh,

When i use standalone portal for all my forum except my main. If i use block like "recent post" only my main forum is showing, can you help me ?

And how i can use "index.php?action=unread" for all my forum too ?

Many thanks :)
Title: Re: Split Forum Mod
Post by: dougiefresh on October 12, 2014, 11:26:33 AM
@denden60: Nope, only one member table.  And no, I have no ideas how to implement the last two ideas that are on my list yet....

@Streamlife: I think I've gotten rid of the error in the db_error.php file for the v1.13 release....

Quote from: Falcomfr on October 12, 2014, 06:07:54 AM
When i use standalone portal for all my forum except my main. If i use block like "recent post" only my main forum is showing, can you help me ?
I'm sorry.... I don't understand what you are asking.

Quote from: Falcomfr on October 12, 2014, 06:07:54 AM
And how i can use "index.php?action=unread" for all my forum too ?
I'm going to assume by "for all my forum" that you meant "for all of my subforums", correct?  If so, the subforums are supposed to appear completely seperate from each other.  However, I can write up something to make it possible to view the recent posts/topics for all subforums....  It will be completely seperate action, like "unreadglobal"....
Title: Re: Split Forum Mod
Post by: Kindred on October 12, 2014, 11:44:07 AM
Falcomfr wants to have this mod support the portal across his multiple sub-sites by being able to define which subsite a specific block appears in...

quite honestly, IMO, that goes well beyond support of this mod and heads into re-writing the portal mod to support this instead of the other way around. (but, since you are the one doing it, it is as always, up to you :) )
Title: Re: Split Forum Mod
Post by: dougiefresh on October 12, 2014, 12:07:33 PM
Hmmm.... The reloadSettings only checks for the URL to the each forum's index.php, but it doesn't check to see about the standalone portal....  I guess that is where the change needs to be made.... 

There is only problem that I can see with this: Let's say the primary forum using http://url/to/forum/standalone.php.  A secondary portal wants to use the same portal.  The code will ALWAYS select the primary forum's ID because it is the first in the list....  However, the .htaccess code already written into this mod might take care of that particular problem....
Title: Re: Split Forum Mod
Post by: Kindred on October 12, 2014, 12:30:36 PM
Dougie,

As I understand the original request, it's even more complicated than that... He mentions the standalone, but what he's actually asking for is some way to show different block contents on different subsites...

E.g. Recent posts block one site 1 shows recent posts from site 1, recent posts block on site 2 shows recent posts from site 2...  And block is never even displayed on site 3
Title: Re: Split Forum Mod
Post by: dougiefresh on October 12, 2014, 12:34:37 PM
I have made several modifications to the SimplePortal mod to allow it to properly support my mod.  But if he is wanting to mash blocks from different subforums together onto one page, then he is out of luck cause that's just impossible.  And I'm not going to make that possible because I would have to extensively rewrite the SimplePortal mod (or my mod), like you said.

EDIT: Hypothetical situation: If he were calling the SimplePortal functions himself, he could change the $forumid variable before making the function call.....

EDIT2: I just thought of another way to do it.  I would have to add a function to PortalBlocks.php something to allow a user to select the subforum ID to change the $forumid variable to....
Title: Re: Split Forum Mod
Post by: dougiefresh on October 12, 2014, 01:27:38 PM
Uploaded v1.13 - October 12th, 2014
o Fixed database installer by integrating multiple install scripts into one.
o Fixed SimplePortal block copying function to correctly duplicate blocks.
o Added ability to remove all defined blocks for a particular subforum.
o Added ability to change the SubForums top menu title.  (Defaults now to "Sister Sites")
o Fixed missing option description within SubForums Settings page.
o Added standalone portal URL checks to try to load the correct subforum ID.
o Added duplicate standalone portal URL check within Edit SubForum code.




@Falcomfr: This does not take care of your request for the "index.php?action=unread"....  However, it MIGHT take care of the standalone portal issue you reported.  Please let me know if it does.  Thanks!

@Streamlife: This should take care of the installation error you reported.

@denden60: Thank you for the report!

@Everybody: In case anybody was wondering, the reason that I changed the SubForums menu title was that I wanted to imply that they were related, but not imply that all the subforums were running under the same single piece of software.....
Title: Re: Split Forum Mod
Post by: Falcomfr on October 12, 2014, 02:13:50 PM
Wow thank a lot dougiefresh,

If i update the mod i don't lost my configurations ? I have change subs.php like that:
http://www.ode-gaming.com (http://www.ode-gaming.com)

How i can update ? Thank a lot


For "index.php?action=unread" maybe i can try to coding a table with all recent post on a another page. I just need to find the better sql request.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 12, 2014, 05:40:51 PM
Quote from: Falcomfr on October 12, 2014, 02:13:50 PM
If i update the mod i don't lost my configurations ?
You shouldn't lose your subforum information by upgrading.

Quote from: Falcomfr on October 12, 2014, 02:13:50 PM
For "index.php?action=unread" maybe i can try to coding a table with all recent post on a another page. I just need to find the better sql request.
I just need to adjust the sql request to omit the forumid if a certain action is requested.....  I felt it was more important to get a version of the mod out that actually installs 100% of the time, than to code a new feature.  Please be patient....
Title: Re: Split Forum Mod
Post by: dougiefresh on October 12, 2014, 07:34:02 PM
@denden60: News per Subforum request will be implemented in v1.14.  Was easy to implement, by the way....  Only 8 operations....
Title: Re: Split Forum Mod
Post by: Falcomfr on October 13, 2014, 05:20:54 AM
When try to uninstall your mod i get many error for uninstall, when i add the last version he tell me 1.13 is not the last version.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 13, 2014, 06:51:33 AM
@Falcomfr: The "unreadglobal" action has been implemented in v1.14.

Quote from: Falcomfr on October 13, 2014, 05:20:54 AM
When try to uninstall your mod i get many error for uninstall
(Sigh...) It uninstalled just fine for me.  Did you install anything else AFTER this mod?  Cause if they modify the same area, it's possible that that is where your problem is.  If not, then it sounds like your your file permissions may be screwed up....

Quote from: Falcomfr on October 13, 2014, 05:20:54 AM
when i add the last version he tell me 1.13 is not the last version.
HUH?!?  v1.13 is the last version that I published.  v1.14 hasn't been released yet......
Title: Re: Split Forum Mod
Post by: DenDen60 on October 13, 2014, 07:14:14 AM
Thanks for the news option Dougiefresh.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 13, 2014, 07:59:34 AM
@Falcomfr: Tell me what the errors are and maybe I can help you.  It might also be helpful to include the files that the uninstaller is having problems with....

@denden60: You're welcome.  In case you were wondering, establishing subforum news won't have any effect on the primary forum when the mod is uninstalled.

I'm gonna work up something for copying categories and/or boards for this mod.  Just so you know...
Title: Re: Split Forum Mod
Post by: DenDen60 on October 13, 2014, 08:57:11 AM
Thanks for the information Dougiefresh.

Do you think that each subforum could have its own calendar?
Title: Re: Split Forum Mod
Post by: dougiefresh on October 13, 2014, 10:26:32 AM
Quote from: denden60 on October 13, 2014, 08:57:11 AM
Do you think that each subforum could have its own calendar?
Uncertain....  Lemme look at the code and see.

EDIT: Yup.  Certainly could be added to the mod.  Added to the To-Do list....
Title: Re: Split Forum Mod
Post by: DenDen60 on October 13, 2014, 10:42:04 AM
Thanks. This way each community which is geographically disperse will be able to promote civic activities in their calendar.
Title: Re: Split Forum Mod
Post by: Falcomfr on October 13, 2014, 10:46:13 AM
http://imageshack.com/a/img633/9372/KHxlj2.jpg (http://imageshack.com/a/img633/9372/KHxlj2.jpg)
http://imageshack.com/a/img537/1609/g7mi12.jpg (http://imageshack.com/a/img537/1609/g7mi12.jpg)
http://imageshack.com/a/img661/5141/1uV6wl.jpg (http://imageshack.com/a/img661/5141/1uV6wl.jpg)
http://imageshack.com/a/img674/5953/kO2Mv0.jpg (http://imageshack.com/a/img674/5953/kO2Mv0.jpg)
http://imageshack.com/a/img540/1555/TVacSY.jpg (http://imageshack.com/a/img540/1555/TVacSY.jpg)

I get this errors when i trying to uninstall i have edit subs.php and index.french.php(theme files)

I have the last smf version and these mods:
Simple Audio Video Embedder
Quick Spoiler
Split Forum Mod (1.11)
SimplePortal
Bad Behavior mod
reCAPTCHA for SMF
Title: Re: Split Forum Mod
Post by: Streamlife on October 13, 2014, 01:24:07 PM
Hello back Guys

Hmm dougiefresh You are a genius Dude, also you try very hard to give us this wonderful mod, as others who have created

All Seem work Fine again, i mean When i Intall all Look Exelent, no error's BUT!! i get this new error When the Install finish, take one look

Photo below

I Try to Give all persmision to Folder Packages/temp  777 and 755 But no work Also i Enable The cokies like K@ Say on this post

Cita de: K@ en febrero 20, 2013, 06:58:57 am
Just a hunch, this, Mick...

In Admin>Server settings>Cookies and sessions try enabling "subdomain independent cookies" and disabling "local storage of cookies".

http://www.simplemachines.org/community/index.php?topic=497790.0


And well Sigh.... dont know what else to do



dougiefresh I can made One Admin usser on my Forum For you dougiefresh If you request it, Just Advice me please, thanks


Tipo Acción Descripción
1. Executar Código add_remove_hook.php
2. Adaptar Base de datos db_install.php
* 3. Executar Modificación ./index.php Prueba completada con éxito
* 4. Executar Modificación ./SSI.php Prueba completada con éxito
* 5. Executar Modificación ./Sources/Admin.php Prueba completada con éxito
* 6. Executar Modificación ./Sources/Load.php Prueba completada con éxito
* 7. Executar Modificación ./Sources/ManageBoards.php Prueba completada con éxito
* 8. Executar Modificación ./Sources/ManageCalendar.php Prueba completada con éxito
* 9. Executar Modificación ./Sources/ManageMaintenance.php Prueba completada con éxito
* 10. Executar Modificación ./Sources/ManageRegistration.php Prueba completada con éxito
* 11. Executar Modificación ./Sources/ManageServer.php Prueba completada con éxito
* 12. Executar Modificación ./Sources/News.php Prueba completada con éxito
* 13. Executar Modificación ./Sources/Packages.php Prueba completada con éxito
* 14. Executar Modificación ./Sources/PostModeration.php Prueba completada con éxito
* 15. Executar Modificación ./Sources/Profile-Modify.php Prueba completada con éxito
* 16. Executar Modificación ./Sources/Recent.php Prueba completada con éxito
* 17. Executar Modificación ./Sources/Register.php Prueba completada con éxito
* 18. Executar Modificación ./Sources/Reports.php Prueba completada con éxito
* 19. Executar Modificación ./Sources/Search.php Prueba completada con éxito
* 20. Executar Modificación ./Sources/Subs.php Prueba completada con éxito
* 21. Executar Modificación ./Sources/Subs-Admin.php Prueba completada con éxito
* 22. Executar Modificación ./Sources/Subs-BoardIndex.php Prueba completada con éxito
* 23. Executar Modificación ./Sources/Subs-Boards.php Prueba completada con éxito
* 24. Executar Modificación ./Sources/Subs-Categories.php Prueba completada con éxito
* 25. Executar Modificación ./Sources/Subs-Members.php Prueba completada con éxito
* 26. Executar Modificación ./Sources/Subs-MessageIndex.php Prueba completada con éxito
27. Executar Modificación ./Sources/PortalAdminBlocks.php Saltar archivo
28. Executar Modificación ./Sources/PortalAdminMain.php Saltar archivo
29. Executar Modificación ./Sources/Subs-Portal.php Saltar archivo
30. Executar Modificación ./Sources/Subs-PortalAdmin.php Saltar archivo
* 31. Executar Modificación ./Themes/default/ManageBoards.template.php Prueba completada con éxito
32. Executar Modificación ./Themes/default/PortalAdminBlocks.template.php Saltar archivo
* 33. Executar Modificación ./Themes/default/index.template.php Prueba completada con éxito
* 34. Executar Modificación ./Themes/default/languages/Admin.english.php Prueba completada con éxito
* 35. Executar Modificación ./Themes/default/languages/Errors.english.php Prueba completada con éxito
36. Executar Modificación ./Themes/default/languages/SPortalAdmin.english.php Saltar archivo
37. Executar Modificación ./Themes/default/languages/Admin.english-utf8.php Saltar archivo
38. Executar Modificación ./Themes/default/languages/Errors.english-utf8.php Saltar archivo
39. Executar Modificación ./Themes/default/languages/SPortalAdmin.english-utf8.php Saltar archivo
40. Extraer Archivo ./Sources/ManageSplitForums.php
41. Extraer Archivo ./Sources/Subs-ManageSplitForums.php
42. Extraer Archivo ./Sources/Subs-SplitForumHooks.php
43. Extraer Archivo ./Themes/default/css/splitforum.css
44. Extraer Archivo ./Themes/default/ManageSplitForums.template.php
45. Extraer Archivo ./Themes/default/languages/ManageSplitForums.english.php
46. Extraer Archivo ./Themes/default/languages/ManageSplitForums.english-utf8.php
47. Extraer Archivo ./Themes/default/images/empty.png
Instalar en Otros Temas
Para usar esta modificación en temas distintos al por defecto, el gestor de paquetes necesita realizar cambios adicionales a los otros temas. Si quisieras instalar esta modificiación en los otros temas, por favor selecciona estos temas abajo.
Core Theme
Executar Modificación ./Themes/core/index.template.php Prueba completada con éxito
Extraer Archivo ./Themes/core/images/empty.png
VskGaming
Executar Modificación ./Themes/VskGaming/index.template.php Prueba completada con éxito
Extraer Archivo ./Themes/VskGaming/images/empty.png
Red Clique
Executar Modificación ./Themes/red-clique/index.template.php Prueba completada con éxito
Extraer Archivo ./Themes/red-clique/images/empty.png
Red Clique
Executar Modificación ./Themes/red-clique/index.template.php Prueba completada con éxito
Extraer Archivo ./Themes/red-clique/images/empty.png
Gumus
Executar Modificación ./Themes/Gumus/index.template.php Prueba completada con éxito
Extraer Archivo ./Themes/Gumus/images/empty.png
Cadence-MultiColor
Executar Modificación ./Themes/Cadence_MultiColor1-1/index.template.php Prueba completada con éxito
Extraer Archivo ./Themes/Cadence_MultiColor1-1/images/empty.png
Title: Re: Split Forum Mod
Post by: dougiefresh on October 13, 2014, 03:25:20 PM
@Streamlife: PM me some credentials and the URL of your forum, please.

@Falcomfr: Some servers have difficulty properly dealing with upgrade files.  The problem and it's related solution was discussed here (http://www.simplemachines.org/community/index.php?topic=523055.msg3752297#msg3752297), which you really need to read.  The attachment in that post was moved to the mod download page.

@denden60: Just looked at the code.  Maximum number of subforums this mod supports is 10,000, including the primary forum.  The SMF software supports roughly 10k categories, 100k boards, and 10mil messages are supported without further modification.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 13, 2014, 04:12:55 PM
Quote from: dougiefresh on October 13, 2014, 03:25:20 PM
@denden60: Just looked at the code.  Maximum number of subforums this mod supports is 10,000, including the primary forum.  The SMF software supports roughly 10k categories, 100k boards, and 10mil messages are supported without further modification.

That is good for me.  Thanks for checking this. :)
Title: Re: Split Forum Mod
Post by: Streamlife on October 13, 2014, 08:07:12 PM
Ehmmmmm Dougiefresh

I get This error When i try to Join at my own forum

Di you touch someting?

i mean  i have this web page now error and cannot refresh page!!

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


My FTP and Cpanel Work just fine. Just cant Go to my web site, also i can read on my FTP on /foro/Packages/temp all files from Split forum there   To strange, I need make one backup i think



i made one Bkup Dougie From last night, all work fine now, Exept your Mod  Advice me please if you cand o someting and i Send u again one usser and password Again With one Admin to check it, thanks
Title: Re: Split Forum Mod
Post by: dougiefresh on October 14, 2014, 03:55:45 AM
Have been offline for the better part of 12 hours.... I go to bed at 7pm CST.   I just logged in just the creds that you PMed me for the first time.  I'm getting the same error you got.  And no, I haven't done anything....

On my personal computer, I cleared the cookie for your website and was able to at least browse the forum, but I wasn't logged in....

Will be leaving for work in a few minutes.  Dunno when I'll get back, as we work until the job is done....
Title: Re: Split Forum Mod
Post by: DenDen60 on October 14, 2014, 10:56:14 AM
Hi Dougie,

In the Create new subforum form you have this option:

QuotePrimary Membergroup for New Users

How can we change this? Should we?
Title: Re: Split Forum Mod
Post by: Streamlife on October 15, 2014, 08:58:01 AM
Quote from: dougiefresh on October 14, 2014, 03:55:45 AM
Have been offline for the better part of 12 hours.... I go to bed at 7pm CST.   I just logged in just the creds that you PMed me for the first time.  I'm getting the same error you got.  And no, I haven't done anything....

On my personal computer, I cleared the cookie for your website and was able to at least browse the forum, but I wasn't logged in....

Will be leaving for work in a few minutes.  Dunno when I'll get back, as we work until the job is done....

Ok Mister, Take Your Time and thanks for your effort Again. Just Advice me by pm or here to give you privileges at forum again, i make one back-up and i talk with my hosting about the Error Code "Internal Server Error" they are looking for it, i hope all work fine ;) i need refresh the page aroudn 10 times to Join.. sigh
Title: Re: Split Forum Mod
Post by: dougiefresh on October 15, 2014, 10:44:45 AM
@Streamlife: Unfortunately, until I know what the problem is, I can't advise how to fix it....  Do you have a .htaccess file in your forum folder?  If so, try renaming the .htaccess file to .htaccess.bak and see if that makes a difference....

Quote from: denden60 on October 14, 2014, 10:56:14 AM
In the Create new subforum form you have this option:
QuotePrimary Membergroup for New Users
How can we change this? Should we?
You would first have to create a non-"post-based" membergroup, then you can change that setting.  As for "should you", up to you and your needs....  One membergroup can have access to only one subforum, while yet another has access to a different one, or multiple subforums.  Naturally, you can't make new users adminstrators, global moderators, or moderators....
Title: Re: Split Forum Mod
Post by: dougiefresh on October 15, 2014, 10:48:47 AM
Uploaded v1.14 - October 15th, 2014
o Fixed database installer by removing the "gathering information from subforum table" code...
o Converted admin menu changes into hook and removed changes from Admin.php...
o Modified news admin and loader code in order to create seperate news per subforum.
o Added "unreadglobal" action to see unread topics from all subforums.
o Removed "subforums" action because of multiple issues, including security issues.
o Modified calendar system to allow seperate events per subforum.
Title: Re: Split Forum Mod
Post by: Falcomfr on October 15, 2014, 10:55:28 AM
Hey dougiefresh :)

If I understand I have to install 1.12 then 1.13. But when i click on "update now" the page will not load and idles.

Can you help me again ?

Thx again for this awesome mod :)
Title: Re: Split Forum Mod
Post by: Falcomfr on October 15, 2014, 11:32:43 AM
I have try with 1.14 now (no error) but same problem my page idle again :'(

Maybe the problem come from my database ?
Title: Re: Split Forum Mod
Post by: dougiefresh on October 15, 2014, 12:44:31 PM
Quote from: Falcomfr on October 15, 2014, 10:55:28 AM
If I understand I have to install 1.12 then 1.13.
Once you update to v1.12, you can correctly uninstall the mod.  So no, you don't NEED to upgrade to v1.13.  People with this particular server issue could uninstall v1.12, then install v1.14 if they wanted to.

Quote from: Falcomfr on October 15, 2014, 10:55:28 AM
But when i click on "update now" the page will not load and idles.
Quote from: Falcomfr on October 15, 2014, 11:32:43 AM
I have try with 1.14 now (no error) but same problem my page idle again :'(
What version of SMF are you running?  If you aren't running SMF v2.0.8 or better, you need to grab the Allocate More RAM (http://custom.simplemachines.org/mods/index.php?mod=3848) (which is included in SMF v2.0.8 and later).

Quote from: Falcomfr on October 15, 2014, 11:32:43 AM
Maybe the problem come from my database ?
I doubt it.  If by "idle", you mean you get a blank screen when you press Update, then it sounds like the package manager ran out of memory....
Title: Re: Split Forum Mod
Post by: DenDen60 on October 15, 2014, 01:38:29 PM
Hi Dougiefresh.

I installed the new version and it has installed like a charm.

The only thing that happened is that after the install, it sent me to this page:

With this error code;

So I just went to the appropriate link and everything went well.

I will be testing the news and calendar options and come back to you.

Thanks again for your great work.

Title: Re: Split Forum Mod
Post by: dougiefresh on October 15, 2014, 07:26:02 PM
Reupped a fixed version of v1.14 that addresses that bug report.  No other functionality changes were made.  Thanks for the bug report, denden60!
Title: Re: Split Forum Mod
Post by: Hoodie on October 16, 2014, 01:44:20 AM
Hey Dougie,

I've been following this mod for a while thinking I should start building a forum again.  I've wanted this feature for a long time now and requested the functionality on a few different boards and occasions.  Thank you for making this and really making it functional.  I do have great interest in this feature below as well.

Quote from: Kindred on October 06, 2014, 06:56:12 PM
Dougie...   Why not set the boards so they can be displayed in multiple subforums?  E.g. Board 1 is displayed in subforums a b and c. Board 2 is only displayed in b. Board 3 is displayed in b and c

Etc...

Would the code from this mod (http://custom.simplemachines.org/mods/index.php?mod=1024) be of any help to get this done as it's basically the same feature.  Hope it helps.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 16, 2014, 03:59:03 AM
Quote from: Hoodie on October 16, 2014, 01:44:20 AM
Quote from: Kindred on October 06, 2014, 06:56:12 PM
Dougie...   Why not set the boards so they can be displayed in multiple subforums?  E.g. Board 1 is displayed in subforums a b and c. Board 2 is only displayed in b. Board 3 is displayed in b and c

Etc...

Would the code from this mod (http://custom.simplemachines.org/mods/index.php?mod=1024) be of any help to get this done as it's basically the same feature.  Hope it helps.
I'm not going to duplicate/use another mod's code in my mod.  First of all, it's disrespectful of the original mod author.  Second, I'm not sure, but you should be able to install both mods and they should work together..... abet not quite properly, as the Alias Board mod doesn't understand subforums  :P  (I guess I should make mods there, too :o )  Third, it's in the works....  Just having started on it yet....
Title: Re: Split Forum Mod
Post by: DenDen60 on October 16, 2014, 07:17:47 AM
Quote from: Kindred on October 06, 2014, 06:56:12 PM
Dougie...   Why not set the boards so they can be displayed in multiple subforums?  E.g. Board 1 is displayed in subforums a b and c. Board 2 is only displayed in b. Board 3 is displayed in b and c

Etc...

I fail to see how useful this would be.  :(

The goal of a sub-forum is to be able to get different forums but managing only one member database.

If I take my project for example, each forum represent a different geographical area. I don't see how this would help.

Furthermore, there is a "default" forum people go to to register. If some boards needs to be seen by all, shouldn't they be seen in this  "default" forum?
Title: Re: Split Forum Mod
Post by: Kindred on October 16, 2014, 08:34:15 AM
actually, denden, what I listed was the primary factor when my company developed the first multi-domain - single install forum mod a while back...

they had a single install of SMF across multiple domains (not sub-domains, separate domains) - with a forum intended for the publication represented on each domain.  However, there were 3 or 4 boards which were general to the publisher, not the publication... and there were some publications that shared areas of interest.

so -
one login across the sites of any publication by this publisher.
one forum installation
different themes for each publication - even at the root of each "forum"
unique boards only on one of the publication sites...
shared boards across some (but not all) publication sites...
shared boards across all publication sites.

the company has since closed down or sold off all of the publications, so I can't show you a demo of what they did in action...

now, I just have to track down the archived code so I can send it to dougie...
Title: Re: Split Forum Mod
Post by: Hoodie on October 16, 2014, 08:35:16 AM
Quote from: dougiefresh on October 16, 2014, 03:59:03 AM
I'm not going to duplicate/use another mod's code in my mod.  First of all, it's disrespectful of the original mod author.  Second, I'm not sure, but you should be able to install both mods and they should work together..... abet not quite properly, as the Alias Board mod doesn't understand subforums  :P  (I guess I should make mods there, too :o )  Third, it's in the works....  Just having started on it yet....

Definitely understood on not taking the code.  I wasn't saying that by any means.  I think it may have come across the wrong way.  What I meant was to see how he did the code for that mod to get an idea where to start if you hadn't already.  I was just trying to point you in the direction of a tool that does what the poster (and me) was asking.  Like I said, I appreciate the work you are putting in to this mod and I was just trying to help.

I understand you could do it this way denden but for the network that I'm thinking of building, I want just a few common boards that go across all sites.  That way they don't essentially have two forums that they have to keep up with.  Just the one forum that has all information right there on it.  It wouldn't be something that everyone would want to use but I think it would be a great feature.
Title: Re: Split Forum Mod
Post by: Streamlife on October 16, 2014, 10:00:31 AM
hello back dougiefresh
You know mate, Since you update the New Mod ( 1.4 ) this one WORK!!!!!!!!! yeah WORK EXCELLENT am so so happy i Want To thanks you again For all Your Effort you do Day by day trying to give us the best, You work hard on each mod you made my friend, Thanks you one more time

sorry for not responding quickly, I was without light in home
http://i.imgur.com/spsAKuD.png
Best regards.
Title: Re: Split Forum Mod
Post by: Falcomfr on October 16, 2014, 01:32:20 PM
Allocate More RAM doesn't work for me.

When i try to uninstall any mod i get this error (like 6000 pages of errors) :

Quotehttp://www.myforum.com/index.php?action=admin;area=packages;sa=uninstall2;package=quick_spoiler.zip;pid=32
2: fread() expects parameter 1 to be resource, boolean given
Fichier: /home/myforum/www/Sources/Subs-Package.php
2831

Here  :

foreach ($files as $real_file => $file)               (!!!2809!!!)
{
if (!file_exists($real_file))
continue;

$stat = $file[1];
if (substr($file[0], -1) == '/')
$stat['size'] = 0;

$current = pack('a100a8a8a8a12a12a8a1a100a6a2a32a32a8a8a155a12', $file[0], decoct($stat['mode']), sprintf('%06d', decoct($stat['uid'])), sprintf('%06d', decoct($stat['gid'])), decoct($stat['size']), decoct($stat['mtime']), '', 0, '', '', '', '', '', '', '', '', '');

$checksum = 256;
for ($i = 0; $i < 512; $i++)
$checksum += ord($current{$i});

$fwrite($output, substr($current, 0, 148) . pack('a8', decoct($checksum)) . substr($current, 156, 511));

if ($stat['size'] == 0)
continue;

$fp = fopen($real_file, 'rb');
while (!feof($fp))
$fwrite($output, fread($fp, 16384));             (!!!2831!!!)
fclose($fp);

$fwrite($output, pack('a' . (512 - $stat['size'] % 512), ''));
}

$fwrite($output, pack('a1024', ''));
$fclose($output);


Thank you
Title: Re: Split Forum Mod
Post by: dougiefresh on October 18, 2014, 02:20:42 PM
Wow....  Whole conversations went on during my absence...  Lemme catch up and I'll start replying....
Title: Re: Split Forum Mod
Post by: dougiefresh on October 18, 2014, 02:38:53 PM
Quote from: Hoodie on October 16, 2014, 01:44:20 AM
Would the code from this mod (http://custom.simplemachines.org/mods/index.php?mod=1024) be of any help to get this done as it's basically the same feature.  Hope it helps.
I've looked at the code for the Alias Boards mod.  It would work just fine aliasing a board to another category, which is what it is designed to do.  But since it doesn't understand subforums, it wouldn't work for aliasing board to another subforum....  However, I've been doing some thinking on this and it may be possible to integrate the two.....  I'm waiting for a response from SleePy to my inquiry...

Quote from: Streamlife on October 16, 2014, 10:00:31 AM
hello back dougiefresh
You know mate, Since you update the New Mod ( 1.4 ) this one WORK!!!!!!!!! yeah WORK EXCELLENT am so so happy i Want To thanks you again For all Your Effort you do Day by day trying to give us the best, You work hard on each mod you made my friend, Thanks you one more time
Thank you for the update, Streamlife!  It is gratifying to hear that it works for you!

Quote from: Falcomfr on October 16, 2014, 01:32:20 PM
Allocate More RAM doesn't work for me.

When i try to uninstall any mod i get this error (like 6000 pages of errors) :
Obviously, your forum shouldn't be spitting out errors like that....  At this point, I don't know what to suggest to you, Falcomfr.....  Maybe a fresh install of your forum may be in order.

Quote from: Arantor on October 16, 2014, 01:48:36 PM
Um... no.

In a stock installation the figures are quite a bit out.

Category ids are tinyint(4) unsigned, meaning you get theoretical max 255 out of it.
Board ids are smallint(5) unsigned, meaning you get theoretical max 65535 out of it.
Topic ids are mediumint(8) unsigned, meaning you get theoretical max 16777215 out of it.
Message ids are int(10) unsigned, meaning you get theoretical max 4294967295 out of it.

Circumstances can mean these figures can be halved, however, but those are the stock limits. If you have modified them in this mod, I would be very, very careful if you have modified everywhere these limits are implicitly applied.

I would note that I know of an SMF forum with currently 70.7 million posts and none of these limits have been hit. Others, however, have such as an implied 65535/per day limit in the stats tracking.
Wow....  A little off base, I was... Thanks for the information, Arantor!

Quote from: denden60 on October 16, 2014, 03:41:30 PM
Now, if I understand what Dougiefresh, it really does not matter since, again, if I understand properly, the mod creates another instance of SMF.
No, this mod doesn't create anything but the APPEARANCE of another instance of SMF.  By restricting what is chosen by the database, I can effectively output multiple forums using the same code....  Keep in mind that it does NOTHING to prevent overloading the server.....

Quote from: denden60 on October 16, 2014, 03:41:30 PM
I hope I got this right. Otherwise, I will need to look at how to increase these maximums, especially the categories and the boards.
And I'm sure there are LOTS of places that such adjustments would have to be made.....

Quote from: Kindred on October 16, 2014, 03:47:01 PM
AFAIK, it uses the same database tables with additional fields to define what is displayed where...
You are correct, sir!
Title: Re: Split Forum Mod
Post by: dougiefresh on October 19, 2014, 10:17:38 AM
Regarding Alias Boards mod: I've gotten the Split Forum mod to install alongside the Alias Boards mod.  My test case was to create two subforums, one category per subforum, one board per category.  Aliased board in subforum # 1 to primary subforum.  Result: A non-selectable board shows up, and produces a ton of errors because the board information isn't loaded because it's located on a different subforum....

Attached picture shows the result....

EDIT: One possible solution would be to load everything, taking notes of what subforum it belongs to, then unsetting everything that doesn't belong....  Not sure I like this idea, though....
Title: Re: Split Forum Mod
Post by: Hoodie on October 20, 2014, 08:23:54 AM
Quote from: dougiefresh on October 19, 2014, 10:17:38 AM
Regarding Alias Boards mod: I've gotten the Split Forum mod to install alongside the Alias Boards mod.  My test case was to create two subforums, one category per subforum, one board per category.  Aliased board in subforum # 1 to primary subforum.  Result: A non-selectable board shows up, and produces a ton of errors because the board information isn't loaded because it's located on a different subforum....

Attached picture shows the result....

EDIT: One possible solution would be to load everything, taking notes of what subforum it belongs to, then unsetting everything that doesn't belong....  Not sure I like this idea, though....

Hmm, sucks to hear they can not be loaded together and something else will have to be done.  I appreciate your work on this and trying to get some kind of aliasing done.

I don't think loading everything and then unsetting what shouldn't be is the answer as that is a big load on the server and a hit on the page load time for every single boardindex load.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 20, 2014, 10:09:25 AM
Yup.... Which is why I'm not liking the idea....  There has to be a better way to minimize the impact....

On the other hand, including a single category in multiple subforums shouldn't be that hard....  The only problem right now is the number of changes between the current version and the planned version....  On the other hand, maybe I can just say f#$# it and kill the upgrade files for v1.x and not include some to go from v1.x to v2.0....
Title: Re: Split Forum Mod
Post by: margarett on October 20, 2014, 10:44:24 AM
As long as you keep the database schema (so that the changes are only code-wise), that's probably your best bet ;)
Users can uninstall it without removing associated data, so it's just an extra step that users need to perform. Even if you have database changes, you just need to perform the modifications in the installer.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 20, 2014, 05:05:02 PM
UPDATE: Here's what's happened today:
o 46 operations were required to make the source files capable of a single category in multiple subforums.... 
o Upgrade file from v1.14 to v2.0 has been built for source files....
o Split Forum Mod v2.0 upgrades SimplePortal compatibility from v2.3.5 to v2.3.6...
o UI changes have not been started on yet... 
o Minor database changes required for "single category in multiple subforums" change
Title: Re: Split Forum Mod
Post by: Hoodie on October 21, 2014, 07:49:19 AM
Quote from: dougiefresh on October 20, 2014, 05:05:02 PM
UPDATE: Here's what's happened today:
o 46 operations were required to make the source files capable of a single category in multiple subforums.... 

Great to hear.  Glad you figured it out and got it working.  I think sharing a category will work just fine vice a single board.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 21, 2014, 09:44:18 AM
Hi dougiefresh, I will install the mod later on to see how it behaves. I imagine that the shared category is optional?
Title: Re: Split Forum Mod
Post by: dougiefresh on October 21, 2014, 02:01:57 PM
Right now, shared categories are only available in v2.0 of this mod, which hasn't been released.  No, you don't HAVE to use a single category amongst multiple subforums....

The 46 operations were JUST database queries that needed to be changed....  I'm sure there's a few other things, including the UI, that needs changed.  After posting, I found another 2 operations in Sources/Load.php regarding subforum handling....  This morning, I found another two operations that needed to be changed, but they were a fix for the primary membergroup per subforum feature...  There are a few security issues that need to be fixed, as well....
Title: Re: Split Forum Mod
Post by: DenDen60 on October 21, 2014, 02:28:19 PM
Ok. I thought you had created version two.

I will wait until you released them.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 22, 2014, 05:15:53 PM
It's going to take a while to get v2.0 published.  There are more than a few issues involved with implementing code that allows a multiple subforums to share a single category, some of which will take some time and testing....

One such area is the board management code, where the admin is allowed to select where in the subforum the category is displayed....  With a single category only able to reside in a single subforum, the issues of how to sort the boards is non-existant, because all that was required to modify was how the query sorts the entries...  However, in a situation where a single category can reside in multiple subforums, the subforum column just doesn't sort correctly (aka: 1,0 comes after 0)....

I also have to figure out how to store the new board order, since a single column isn't enough (for pretty much the same reasons as the forumid column doesn't sort properly).  Since the board order probably going to be different with each subforum, a method to correctly sort the subforums within a single table is necessary....

Once I figure those two problems, there's the entire category & board management UI that needs altered to deal with the single category in multiple subforums issue....

I've got solutions to these problems, but I'm sure that there are plenty more issues I have to deal with....  Please be patient, as this won't be a "slap-a-quikie-patch" situation that takes a few minutes to fix....  Thanks.

BTW, if there is a necessary reason to issue a v1.15, then I will.....  But the focus right now will be on getting v2.0 totally up and running...




@Denis Pageau: Do either (1) I need to allow or (2) you want to allow calendar events to span multiple subforums?
Title: Re: Split Forum Mod
Post by: DenDen60 on October 22, 2014, 05:36:17 PM
Thanks for all your work dougiefresh.

Would it be a good idea to have two separate mods? One could be called the Split Forum Mod, which would be what we have now, and the second could be the Split Forum Enhancement Mod, or the Shared Category Mod for Split Forum Mod.


As for the Calendar, I do not really see how a shared calendar would be useful for my Citizens and Societies communities of practice for citizens.


Title: Re: Split Forum Mod
Post by: dougiefresh on October 22, 2014, 05:56:40 PM
I'd rather not split them like that....  It's gonna be hard enough writing one mod.  I don't feel like maintaining two different projects that do almost the exact same thing...   Although, come to think of it, that's not a bad idea....

Regarding the calendar: Okay.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 22, 2014, 10:09:10 PM
I think there are a few advantages of having two different mods. The first seems to be easier to do and will be more stable. The second is less stable and seems harder to do and maintain.

Everyone will want the first one, but not all will want the second one. So if there is more support to do to the second one, it will happen less often since less person will have installed the second one.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 23, 2014, 03:52:45 PM
Quote from: Denis Pageau on October 22, 2014, 10:09:10 PM
The first seems to be easier to do and will be more stable. The second is less stable and seems harder to do and maintain.
First, I want to say that it won't be issue of stability....  Once the code modifications are finished, then it will work as advertised.  PERIOD.

Second, I'm trying to say that I need TIME to make the necessary code changes so that the mod works as advertised....  and don't ask when it'll be done.  Version 2.0 is feature-incomplete right now, and I need to do changes to make it feature complete AGAIN... (sigh)

Quote from: Denis Pageau on October 22, 2014, 10:09:10 PM
So if there is more support to do to the second one, it will happen less often since less person will have installed the second one.
How do you figure it'll happen less often just because fewer people have installed it?  Frankly, if there is a bug in the software, I want to fix it ASAP so that the bug is squashed....  The faster I can find the bug(s), the sooner a new version gets released....
Title: Re: Split Forum Mod
Post by: Arantor on October 23, 2014, 03:54:40 PM
And this is why writing software for people for free kind of sucks :(

You'll get there, I have faith.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 23, 2014, 04:05:34 PM
Thank you, Arantor!
Title: Re: Split Forum Mod
Post by: DenDen60 on October 23, 2014, 04:12:32 PM
Quote from: Arantor on October 23, 2014, 03:54:40 PM
And this is why writing software for people for free kind of sucks :(

Is this suppose to mean something Arantor
Title: Re: Split Forum Mod
Post by: DenDen60 on October 23, 2014, 04:20:49 PM
Dougiefresh. My comment was not negative. I was just giving you my perception as an "outsider".

Now maybe I did not write this properly, but basically from what you wrote, the first part seem to be easier to developed with less complications, while the second was more complicated and harder to developed.

Hence the question I asked:
QuoteWould it be a good idea to have two separate mods?

To which you answered:
QuoteAlthough, come to think of it, that's not a bad idea....

My comment was just to let you know where I saw you would have a "return on investment."

This being said, you are better placed to evaluate if there is a "return on investment."  ;)
Title: Re: Split Forum Mod
Post by: dougiefresh on October 23, 2014, 08:01:12 PM
I admit, it is an interesting idea to seperate the v2.0 changes into it's own mod, but I perceive no value or ROI in doing so.  To do so creates additional complexity that I would have to keep track of, and heaven forbid I forget something that affects the other.  And I'll freely admit that I don't like seeing bug reports, because it means the bug reporter found something wrong that I have to fix  :P  But it comes with the territory, I guess....

I was simply stating that it will take time, not a day or so.....  I admit that I underestimated the number of changes needed to be made when I started on the conversion to a "single category in multiple subforums"-style mod.  I've made some progress in the conversion, such as adding fields to the boards table and populating them, and modifying the board resort and board index functions....  Mind you, I haven't tested the board resort function yet, but it looks like it should work....  :(

Anyways, the post was trying to get the idea across that v2.0 won't be coming out anytime soon, as there are major changes in the way the forum deals with subforums.  It just won't be as easy as v1.x had it....

As for Arantor's comment, I think he meant that mod authors have to field all sorts of questions, stupid or not, about their mod and how it interacts with everything else.  Some mod authors don't care about other mods and won't change their stuff to play nice with another mod.  I'm not like that.  I've personally had to field some questions via PM (which resulted in the signature I have).  It happens, and it comes with the territory.  That's not saying anything about your questions or Arantor's statement, but it is what it is.....  Take it with a grain of salt.

I hope this helps....  I'm going to bed now.  Good night.
Title: Re: Split Forum Mod
Post by: Arantor on October 23, 2014, 08:05:40 PM
For the record it was more of a reaction to the needing of time. People seem to forget how much time and energy goes into writing mods, let alone one as complex as this. And there is, very much in general, a lack of gratitude from those asking for mods, and a complete lack of understanding of what's involved and how this is done from peoples' own free time, when they could be spending that time with family or friends or having fun, and instead here they are making things for other people.

I'm also incredibly mindful that I wrote dozens and dozens of mods, and got so much flak for it from ungrateful people *expecting* me to build things for them for free on *my* time as though my time is theirs to spend. I do not want to see you go down this road.
Title: Re: Split Forum Mod
Post by: DenDen60 on October 23, 2014, 09:19:43 PM
I have not experience this, as I am not a programmer. :D I did take some programming courses but I am not good at it.  :(

However, I do appreciate the work that people invest in the development of software like SMF and the different MODs that complete them. This is why I support them financially, even if it is more a symbolic support. 
Title: Re: Split Forum Mod
Post by: SilverKnight on October 25, 2014, 08:46:06 PM
There appears to still be a minor incompatibiltiy with pretty urls still in:

ManageBoards.template.php

Original code of smf with prettyurls installed:

<li', !empty($modSettings['recycle_board']) && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] == $board['id'] ? ' id="recycle_board"' : ' ', ' class="windowbg', $alternate ? '' : '2', '" style="padding-' . ($context['right_to_left'] ? 'right' : 'left') . ': ', 5 + 30 * $board['child_level'], 'px;', $board['move'] ? 'color: red;' : '', '"><span class="floatleft"><a href="', $scripturl, '?board=', $board['id'], '">', $board['name'], '</a>', !empty($modSettings['recycle_board']) && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] == $board['id'] ? '<a href="' . $scripturl . '?action=admin;area=manageboards;sa=settings"> <img src="' . $settings['images_url'] . '/post/recycled.gif" alt="' . $txt['recycle_board'] . '" /></a></span>' : '</span>', '
<span class="floatright">', $context['can_manage_permissions'] ? '<span class="modify_boards"><a href="' . $scripturl . '?action=admin;area=permissions;sa=index;pid=' . $board['permission_profile'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '">' . $txt['mboards_permissions'] . '</a></span>' : '', '
<span class="modify_boards"><a href="', $scripturl, '?action=admin;area=manageboards;move=', $board['id'], '">', $txt['mboards_move'], '</a></span>
<span class="modify_boards"><a href="', $scripturl, '?action=admin;area=manageboards;sa=board;boardid=', $board['id'], '">', $txt['mboards_modify'], '</a></span>
', allowedTo('admin_forum') ? '<span class="modify_boards"><a href="' . $scripturl . '?action=admin;area=manageboards;sa=pretty;boardid=' . $board['id'] . '">' . $txt['pretty_urls'] . '</a></span>' : '', '</span><br style="clear: right;" />
</li>';


Original code if parsed into prettyurls:

Quote<li', !empty($modSettings['recycle_board']) && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] == $board['id'] ? ' id="recycle_board"' : ' ', ' class="windowbg', $alternate ? '' : '2', '" style="padding-' . ($context['right_to_left'] ? 'right' : 'left') . ': ', 5 + 30 * $board['child_level'], 'px;', $board['move'] ? 'color: red;' : '', '"><span class="floatleft"><a href="', $subforum_tree[$category['forumid']]['boardurl'], '/index.php?board=', $board['id'], '">', $board['name'], '</a>', !empty($modSettings['recycle_board']) && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] == $board['id'] ? '<a href="' . $subforum_tree[$category['forumid']]['boardurl'] . '?action=admin;area=manageboards;sa=settings"> <img src="' . $settings['images_url'] . '/post/recycled.gif" alt="' . $txt['recycle_board'] . '" /></a></span>' : '</span>', '
                     <span class="floatright">', $context['can_manage_permissions'] ? '<span class="modify_boards"><a href="' . $scripturl . '?action=admin;area=permissions;sa=index;pid=' . $board['permission_profile'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '">' . $txt['mboards_permissions'] . '</a></span>' : '', '
                     <span class="modify_boards"><a href="', $scripturl, '?action=admin;area=manageboards;move=', $board['id'], ($forumid == 0 ? ';sub=' . $category['forumid'] : ''), '">', $txt['mboards_move'], '</a></span>
                     <span class="modify_boards"><a href="', $scripturl, '?action=admin;area=manageboards;sa=board;boardid=', $board['id'], ($forumid == 0 ? ';sub=' . $category['forumid'] : ''), '">', $txt['mboards_modify'], '</a></span></span><br style="clear: right;" />
                     ', allowedTo('admin_forum') ? '<span class="modify_boards"><a href="' . $scripturl . '?action=admin;area=manageboards;sa=pretty;boardid=' . $board['id'] . '">' . $txt['pretty_urls'] . '</a></span>' : '', '</span><br style="clear: right;" />
                  </li>';

Issue marked in red. I appreciate the effort your putting in, keep up the good work Doug.
Title: Re: Split Forum Mod
Post by: SilverKnight on October 25, 2014, 09:14:13 PM
I would like to also note that prettyurls still has the issue of not understanding the subforum layout.

For example:

It should be:

Quotewww.mysite.com/subforum/scripting/

However the forum links for it's boards are being shortened to:

Quotewww.mysite.com/scripting/
Title: Re: Split Forum Mod
Post by: Kindred on October 25, 2014, 10:16:12 PM
Yet another reason to avoid silly things like prettyurls
Title: Re: Split Forum Mod
Post by: dougiefresh on October 26, 2014, 04:00:35 AM
@SilverKnight: That's because Pretty URLs isn't compatible with this mod at this time.  Thank you for the report and template modification info...
Title: Re: Split Forum Mod
Post by: dougiefresh on November 01, 2014, 11:14:18 AM
Uploaded v1.15 - November 1st, 2014
o Moved code responsible for primary membership setting after loading forum settings...
o Removed seperate cookie per subforum in favor of a more unified login process....
o A user logging into one subforum will log that user into all subforums automatically.
o Slight changes involved with changing SimplePortal compatibility from v2.3.5 to 2.3.6.
o Alias Boards v1.2+ (http://custom.simplemachines.org/mods/index.php?mod=1024) (found here (http://www.simplemachines.org/community/index.php?topic=210421.msg3759408#msg3759408)) now works within subforums.

NOTE: Aliased boards cannot be created when the board is in subforum # 1 and where you want it is in subforum # 2.....  This is a restriction of the database queries, because without further modifications, it just creates errors if such is allowed....  This may be fixed in future versions.
Title: Re: Split Forum Mod
Post by: DenDen60 on November 02, 2014, 08:10:01 AM
Thanks Dougiefresh. Can we just install this mod or do we need to uninstall the previous one?

Title: Re: Split Forum Mod
Post by: dougiefresh on November 02, 2014, 03:26:43 PM
You definitely will be able to upgrade from v1.14 to v1.15.  But upgradability is included from version 1.3 (or 1.4) upwards...  If you can't upgrade, then you will have to uninstall your current version, then install the new version.
Title: Re: Split Forum Mod
Post by: DenDen60 on November 02, 2014, 06:22:35 PM
Thanks
Title: Re: Split Forum Mod
Post by: dougiefresh on November 04, 2014, 07:47:58 PM
Just remembered that I will have to make sure that the aliases don't generate errors galore when a category and/or board is changed to a different subforum.....  Will try to take care of this in the next version.  Will also attempt to make Pretty URLs work with this mod.
Title: Re: Split Forum Mod
Post by: dougiefresh on November 14, 2014, 08:59:09 PM
For this mod's version 2.0, I'm going to add some permissions to make managing subforums easier.  Anyone want to give ideas about what should be permission-ed and/or changed, at least regarding permissions?

Planned:
o Manage Subforums
o Create Subforum
o Package Manager
o Server Settings (?)

Was also thinking about creating one page where admin areas and sections can be listed with checkboxes to select what cannot be entered while in a subforum....  Thoughts?
Title: Re: Split Forum Mod
Post by: DenDen60 on November 14, 2014, 11:30:25 PM
I will play with it this week end and come back with some ideas.

Thanks
Title: Re: Split Forum Mod
Post by: dougiefresh on November 15, 2014, 01:55:03 PM
UPDATE ON v2.0:
o Added a hook to add the option to turn on and off the Subforum mod within Configuration => Core Features.
o Modified things further so that when Subforum mod is off, the forum ID is not searched for used.

WHAT'S NOT DONE:
o Template modifications for Manage Boards and Manage Categories UI
o New Permissions (see here (http://www.simplemachines.org/community/index.php?topic=523055.msg3762913#msg3762913))
Title: Re: Split Forum Mod
Post by: Tair on November 16, 2014, 04:31:54 AM
Hi!I'm using middle size forum with 100k+ posts and PrettyURL.
It's very complicated to remove prettyurl because of Google and other search engines indexation.
Is is possible to see soon version with full support of PrettyURL? I'd like to use your mod.
Title: Re: Split Forum Mod
Post by: dougiefresh on November 16, 2014, 09:05:37 AM
Version 1.16 will fully support Pretty URLs, as well as make sure any aliased boards don't cause a bunch of errors.....

In case anybody is interested, fixes to support Pretty URL were made almost entirely within Sources/Load.php....

@SilverKnight: I solved the template issue by dividing up that operation into like 4 operations.  Works....
Title: Re: Split Forum Mod
Post by: dougiefresh on November 16, 2014, 06:18:56 PM
 >:(  :o This isn't good.... Been doing some testing to make sure things work, and I found that Alias Boards doesn't work as expected.  There are bugs in the Manage Boards UI, such as editing child boards within the Manage Boards UI kicks them out of the parent board, too...

Making modifications to the v2.0 mod broke it somehow....  I don't understand this one, either, because I did the same mods to the v1.15 version to make version 1.16 and had the same mod-breaking issues.  Had to start over with building v1.16 in order to solve the issue....  Probably will with v2.0 as well  :o
Title: Re: Split Forum Mod
Post by: Hoodie on November 16, 2014, 10:26:15 PM
Hey dougie

I haven't had a chance to play around with the mod still but I appreciate all the work that you are doing with updating this mod and the requests that have been made.  Hopefully soon I will be able to use this modification for my project.
Title: Re: Split Forum Mod
Post by: n00bmonkey on November 18, 2014, 11:42:18 PM
Hi! Great mod. Very useful in segregating content.

Is there a way to get recent posts in the subforum to only include posts made in the subforum? The recent posts that populate in the Info Center area, that is. I can't seem to figure it out by myself.

Thanks again!
Title: Re: Split Forum Mod
Post by: SauloA on November 19, 2014, 02:30:31 AM
I keep getting the following error message even though everything seems to be working perfectly fine:

QuoteNotice: Undefined index: path in [server-path]/simplemachinesforum/Sources/Load.php on line 157

Line 157 on my Load.php file is:

$check = (($test1 == $host || $test2 == $host) && $url['path'] == $uri);

Which is in the the following code block:

// Determine which subforum we are in and load settings for it:
$host = strtolower($_SERVER['SERVER_NAME']);
$uri = str_replace('/index.php', '', substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/')));
foreach ($subforum_tree as $id => $row)
{
$url = parse_url($row['boardurl']);
$test1 = strtolower($url['host']);
$test2 = strtolower(str_replace('www.', '', $test1));
$check = (($test1 == $host || $test2 == $host) && $url['path'] == $uri); // <------- Line 157
if (!empty($row['sp_standalone']))
{
$url = parse_url($row['sp_standalone']);
$test1 = strtolower($url['host']);
$test2 = strtolower(str_replace('www.', '', $test1));
$check = $check || (($test1 == $host || $test2 == $host) && $url['path'] == $uri);
}
if ($check)
{
// Assign global variables with row gleaned from database:
$forumid = $row['forumid'];
$boardurl = $row['boardurl'];
$forumdir = $row['forumdir'];
$subtheme = $row['subtheme'];
$mbname = $row['boardname'];
$language = $row['language'];
$favicon = $row['favicon'];
break;
}
}
$forumid = (int) $forumid;
Title: Re: Split Forum Mod
Post by: dougiefresh on November 19, 2014, 04:13:24 AM
@SauloA: Thank you for the bug report!  I've fixed this issue for v1.16 by actually checking to see if that array element was defined.  The online documentation led me to assume that when the function parsed the URL, it defined all parts of the array and it did so during my testing....  I guess it doesn't.  I assume your forum is at the root of the domain, right?
Title: Re: Split Forum Mod
Post by: SauloA on November 19, 2014, 02:07:30 PM
v1.16 sounds great.  Can't wait for it's release.  And, Yes, my forum is at the root of the domain.
Title: Re: Split Forum Mod
Post by: dougiefresh on November 19, 2014, 05:23:47 PM
@n00bmonkey: Thank you for pointing out an omission that was made.  I will make the necessary edits for v1.16.
Title: Re: Split Forum Mod
Post by: dougiefresh on November 19, 2014, 07:57:26 PM
Uploaded v1.16 - November 19th, 2014
o Fixed a few security issues within database queries in the mod.
o Fixed some query variable type-casting issues within the mod.
o Modified Edit Category UI so that SubForum selection box is on top of the form.
o Modified Recent Posts code so that it is limited to the subforum it is displaying for.
o Fixed compatibility with Pretty URLs (http://custom.simplemachines.org/mods/index.php?mod=636) mod...
o Fixed both the SSI bug report and undefined array element report in Load.php by SauloA...
o Fixed a small bug for Manage Board UI.

I've changed the minimum requirement for upgrading from v1.3 to v1.12, since that is the first version that will uninstall completely on ALL systems....  The Manage Board UI still doesn't work right for some reason, but there were plenty of other good reasons (to me, IMO) to release this version, as you can read in the release notice....
Title: Re: Split Forum Mod
Post by: Colin on November 19, 2014, 08:39:47 PM
Thank you!
Title: Re: Split Forum Mod
Post by: SauloA on November 19, 2014, 11:35:04 PM
I have upgraded to v1.16 and everything is working fantastically.  You are the man dougiefresh.  Thank You!
Title: Re: Split Forum Mod
Post by: dougiefresh on November 21, 2014, 10:20:43 AM
Uploaded v1.17 - November 21th, 2014
o Fixed template-breaking typo in Sources/ManageBoards.php
o Fixed Modify Boards UI to work correctly without Alias Boards mod installed...
o Fixed Modify Boards UI moving boards to bottom when making no position changes...
o Fixed undefined variable error within the Edit Categories UI...

This update makes me wish I had waited on the v1.16 release a few more days.....  The Modify Boards UI works correctly now.
Title: Re: Split Forum Mod
Post by: DenDen60 on November 21, 2014, 04:28:06 PM
Ok I have tried to install V1.17 over V1.14 I got an error message. Should I install V 1.15 and 1.16 first?
Title: Re: Split Forum Mod
Post by: dougiefresh on November 21, 2014, 07:25:29 PM
Quote from: Denis Pageau on November 21, 2014, 04:28:06 PM
Ok I have tried to install V1.17 over V1.14 I got an error message. Should I install V 1.15 and 1.16 first?
Without more information, I'm going to assume the "error message" you got is related to your server's inability to deal with multiple upgrade files correctly.  So you have two options: (1) install v1.15, then v1.16, then v1.17 --- OR --- (2) uninstall v1.14 and install v1.17.

I seem to recall making this statement (which is pretty applicable to this situation, as well):
Quote from: dougiefresh on November 02, 2014, 03:26:43 PM
You definitely will be able to upgrade from v1.14 to v1.15.  But upgradability is included from version 1.3 (or 1.4) upwards...  If you can't upgrade, then you will have to uninstall your current version, then install the new version.
Title: Re: Split Forum Mod
Post by: DenDen60 on November 21, 2014, 08:52:13 PM
Sorry I should have added the errors.

10.     Execute Modification     ./Sources/Load.php     Test failed
1.     Replace     ./Sources/Load.php     Test failed
6.     Replace     ./Sources/Load.php     Test failed
29.     Execute Modification     ./Themes/default/ManageBoards.template.php     Test failed
1.     Replace     ./Themes/default/ManageBoards.template.php     Test failed

I unistalled v.1.14 and installed 1.17 and beside an error in one of the theme, everything went ok.

Thanks
Title: Re: Split Forum Mod
Post by: dougiefresh on November 25, 2014, 03:59:23 AM
Uploaded v1.18 - November 24th, 2014
o Fixed install issue involving SimplePortal's block admin template...
o Moved Forum => Subforums menu beneath Boards in Admin menu.
Title: Re: Split Forum Mod
Post by: SauloA on November 25, 2014, 08:25:59 PM
I'm getting the following error when I click on the "Boards" link in the admin area:

Template Parse Error!
There was a problem loading the /Themes/default/ManageBoards.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)


It won't allow me to make adjustments to my boards.

Other than that everything is working well with the mod.

Also, you can get the mod to pass the session information to a subdomain and that works fine, but how do I get the session to another the main domain.  For example, the mod allows me to make a subdomain URL for a separate forum (forum.secondmywebsite.com), but how do I tie that session in the subdomain to the main domain (mysecondwebsite.com)?
Title: Re: Split Forum Mod
Post by: DenDen60 on November 26, 2014, 11:40:04 AM
Hi DougieFresh,

I got this error, but I imagine that it is because I don't use simpleportal.

1.Execute Codeadd_remove_hook.php

2.Adapt Databasedb_install.php

3.Execute Modification./Themes/default/PortalAdminBlocks.template.phpFile not found

4.Extract File./Sources/Subs-ManageSplitForums.php

I installed it anyway and it installed correctly. At least at first glance.
Title: Re: Split Forum Mod
Post by: Greygal on November 27, 2014, 03:00:53 AM
As you seem to be keen to have few conflicts as possible with other mods, I thought I'd share the following with you.  All the "My code..." bits are how my code read before the changes I made to install_source.xml below.

When I attempted to install this mod, these are the issues I had:

Line 5.2 File ./Sources/Display.php conflicted with "Event Reminder Mod for SMF2   2.31" modifications:

Code ("Find") Select

FROM {db_prefix}calendar AS cal
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = cal.id_member)
WHERE cal.id_topic = {int:current_topic}
ORDER BY start_date',
array(
'current_topic' => $topic,

Code ("Replace") Select

FROM {db_prefix}calendar AS cal
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = cal.id_member)
WHERE cal.id_topic = {int:current_topic}
AND cal.forumid = {int:forumid}
ORDER BY start_date',
array(
'current_topic' => $topic,
'forumid' => (int) $forumid,


This line conflicted with a prior replace made by the Calendar Events Reminder mod.  Here is my Display.php code as it is:

Code ("My Display.php code") Select

FROM {db_prefix}calendar AS cal
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = cal.id_member)
LEFT JOIN {db_prefix}hcb_reminders as h ON ((cal.id_event = h.id_event) AND (h.id_member = \'' . $user_info['id'] . '\'))

WHERE cal.id_topic = {int:current_topic}
ORDER BY start_date',
array(
'current_topic' => $topic,


As the bottom four lines are unique in the ./Sources/Display.php file, and identical in both the searched-for version and the Calendar Event Reminders-modified version, I simply edited this part of the install script to only search for the below four lines.

Code ("Change the FIND to just these lines") Select

WHERE cal.id_topic = {int:current_topic}
ORDER BY start_date',
array(
'current_topic' => $topic,

Code ("Change the REPLACE to just these lines") Select

WHERE cal.id_topic = {int:current_topic}
AND cal.forumid = {int:forumid}
ORDER BY start_date',
array(
'current_topic' => $topic,
'forumid' => (int) $forumid,






Line 15.2 File ./Sources/Post.php conflicted with "Event Registration Mod for SMF2   v2.26" modifications:

Code ("Find") Select

// Get the current event information.
$request = $smcFunc['db_query']('', '
SELECT
id_member, title, MONTH(start_date) AS month, DAYOFMONTH(start_date) AS day,
YEAR(start_date) AS year, (TO_DAYS(end_date) - TO_DAYS(start_date)) AS span
FROM {db_prefix}calendar
WHERE id_event = {int:id_event}
LIMIT 1',
array(
'id_event' => $context['event']['id'],

Code ("Replace") Select

// Get the current event information.
$request = $smcFunc['db_query']('', '
SELECT
id_member, title, MONTH(start_date) AS month, DAYOFMONTH(start_date) AS day,
YEAR(start_date) AS year, (TO_DAYS(end_date) - TO_DAYS(start_date)) AS span
FROM {db_prefix}calendar
WHERE id_event = {int:id_event}
AND forumid = {int:forumid}
LIMIT 1',
array(
'id_event' => $context['event']['id'],
'forumid' => (int) $forumid,



Here is the relevant code section in my post.php file:

Code ("My ./Sources/Post.php code") Select

// Get the current event information.
$request = $smcFunc['db_query']('', '
SELECT
id_member, title, MONTH(start_date) AS month, DAYOFMONTH(start_date) AS day,
YEAR(start_date) AS year, (TO_DAYS(end_date) - TO_DAYS(start_date)) AS span, hcc_max_attendants, hcc_confirm, hcc_days_closed, hcc_terms_conds, hcc_groups, hcc_sub_ids, hcc_reg_sub_ids, hcc_add_comment, hcc_see_comment, hcc_max_register
FROM {db_prefix}calendar
WHERE id_event = {int:id_event}
LIMIT 1',
array(
'id_event' => $context['event']['id'],


Similar solution to fix the conflict here.  In this case, the last six lines of the original FIND are unique in the ./Sources/Post.php file:

Code ("Change the FIND to just these lines") Select

FROM {db_prefix}calendar
WHERE id_event = {int:id_event}
LIMIT 1',
array(
'id_event' => $context['event']['id'],

Code ("Change the REPLACE to just these lines") Select

FROM {db_prefix}calendar
WHERE id_event = {int:id_event}
AND forumid = {int:forumid}
LIMIT 1',
array(
'id_event' => $context['event']['id'],
'forumid' => (int) $forumid,





Line 15.6 File ./Sources/Post.php conflicted with "Event Registration Mod for SMF2   v2.26" modifications:

Code ("Find") Select

UPDATE {db_prefix}calendar
SET end_date = {date:end_date},
start_date = {date:start_date},
title = {string:title}
WHERE id_event = {int:id_event}',
array(

Code ("Replace") Select

UPDATE {db_prefix}calendar
SET end_date = {date:end_date},
start_date = {date:start_date},
title = {string:title}
WHERE id_event = {int:id_event}
AND forumid = {int:forumid}',
array(
'forumid' => (int) $forumid,



My ./Sources/post.php code for this bit is:
Code ("My Post.php Code") Select

UPDATE {db_prefix}calendar
SET end_date = {date:end_date},
start_date = {date:start_date},
title = {string:title},hcc_max_attendants = {int:hcc_max_attendants}, hcc_confirm={int:hcc_confirm}, hcc_days_closed={int:hcc_days_closed}, hcc_terms_conds={string:hcc_terms_conds},hcc_groups={string:hcc_groups},hcc_sub_ids={string:hcc_sub_ids},hcc_reg_sub_ids={string:hcc_reg_sub_ids}, hcc_add_comment={int:hcc_add_comment}, hcc_see_comment={int:hcc_see_comment}, hcc_max_register={int:hcc_max_register}

WHERE id_event = {int:id_event}',
array(


Took me a bit to figure out a good unique-in-the-file FIND for this one :)

Code ("Change the FIND to just these lines") Select

WHERE id_event = {int:id_event}',
array(
'end_date'

Code ("Change the REPLACE to just these lines") Select

WHERE id_event = {int:id_event}
AND forumid = {int:forumid}',
array(
'forumid' => (int) $forumid,
'end_date'





There are a few other places where the Event Registration mod is conflicting, which I'll itemize in next post shortly.  I'll also attach my modified install_source.xml file once I've finished.

Thanks for a terrific mod!

GG
Title: Re: Split Forum Mod
Post by: Greygal on November 27, 2014, 03:44:43 AM
Line 28.5 File ./Sources/Subs-Calendar.php conflicted with "Event Registration Mod for SMF2   v2.26" modifications:


Code ("Find") Select

'start_date' => 'date', 'end_date' => 'date',
),
array(
$eventOptions['board'], $eventOptions['topic'], $eventOptions['title'], $eventOptions['member'],
$eventOptions['start_date'], $eventOptions['end_date'],

Code ("Replace") Select

'start_date' => 'date', 'end_date' => 'date', 'forumid' => 'int',
),
array(
$eventOptions['board'], $eventOptions['topic'], $eventOptions['title'], $eventOptions['member'],
$eventOptions['start_date'], $eventOptions['end_date'], $forumid,


My ./Sources/Subs-Calendar.php of this section reads as follows:

Code ("My Subs-Calendar.php code") Select

'start_date' => 'date', 'end_date' => 'date', 'hcc_max_attendants'=> 'int', 'hcc_confirm'=>'int', 'hcc_days_closed'=>'int', 'hcc_terms_conds'=>'string', 'hcc_groups'=>'string', 'hcc_sub_ids'=>'string', 'hcc_reg_sub_ids'=>'string', 'hcc_add_comment'=>'int', 'hcc_see_comment'=>'int', 'hcc_max_register'=>'int',
),
array(
$eventOptions['board'], $eventOptions['topic'], $eventOptions['title'], $eventOptions['member'],
$eventOptions['start_date'], $eventOptions['end_date'],


I broke this up into two operations, the first dealing with the change that occurrs in just the first line, then the second dealing with the change to the array at the end.

I replaced the following code in install_source.xml as follows:

Code ("Original install_source.xml code") Select

<operation>
<search position="replace"><![CDATA['start_date' => 'date', 'end_date' => 'date',
),
array(
$eventOptions['board'], $eventOptions['topic'], $eventOptions['title'], $eventOptions['member'],
$eventOptions['start_date'], $eventOptions['end_date'],]]></search>
<add><![CDATA['start_date' => 'date', 'end_date' => 'date', 'forumid' => 'int',
),
array(
$eventOptions['board'], $eventOptions['topic'], $eventOptions['title'], $eventOptions['member'],
$eventOptions['start_date'], $eventOptions['end_date'], $forumid,]]></add>
</operation>

Code ("Original install_source.xml code broken up into two operations as follows") Select

<operation>
<search position="replace"><![CDATA['start_date' => 'date', 'end_date' => 'date',]]></search>
<add><![CDATA['start_date' => 'date', 'end_date' => 'date', 'forumid' => 'int',]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[array(
$eventOptions['board'], $eventOptions['topic'], $eventOptions['title'], $eventOptions['member'],
$eventOptions['start_date'], $eventOptions['end_date'],]]></search>
<add><![CDATA[array(
$eventOptions['board'], $eventOptions['topic'], $eventOptions['title'], $eventOptions['member'],
$eventOptions['start_date'], $eventOptions['end_date'], $forumid,]]></add>
</operation>
Title: Re: Split Forum Mod
Post by: Greygal on November 27, 2014, 04:02:44 AM
Line 28.7 File .Sources/Subs-Calendar.php conflicted with "Event Registration Mod for SMF2   v2.26" modifications.  "Event Registration Mod" sure is a pesky little mod, eh?  But my members use it beyond belief, and despite the time I spent on modifying your code to work with it, it was still less time and less risky than touching the Event Registration mod, at least for me :)

Original find/replace modification code is:
Code ("Find") Select

id_topic = {int:id_topic}
WHERE id_event = {int:id_event}',
array(

Code ("Replace") Select

id_topic = {int:id_topic}
WHERE id_event = {int:id_event}
AND forumid = {int:forumid}',
array(
'forumid' => (int) $forumid,


The relevant section of my .Sources/Subs-Calendar.php file is as follows:

Code ("My Subs-Calendar.php code") Select

id_topic = {int:id_topic}
, hcc_max_attendants = {int:hcc_max_attendants}
, hcc_confirm = {int:hcc_confirm}
, hcc_days_closed = {int:hcc_days_closed}
, hcc_terms_conds = {string:hcc_terms_conds}
, hcc_groups = {string:hcc_groups}
, hcc_sub_ids = {string:hcc_sub_ids}
, hcc_reg_sub_ids = {string:hcc_reg_sub_ids}
, hcc_add_comment = {int:hcc_add_comment}
, hcc_see_comment = {int:hcc_see_comment}
, hcc_max_register = {int:hcc_max_register}

WHERE id_event = {int:id_event}',
array(


I changed the install_source.xml as follows:

Code ("Original install_source.xml code") Select

<operation>
<search position="replace"><![CDATA[id_topic = {int:id_topic}
WHERE id_event = {int:id_event}',
array(]]></search>
<add><![CDATA[id_topic = {int:id_topic}
WHERE id_event = {int:id_event}
AND forumid = {int:forumid}',
array(
'forumid' => (int) $forumid,]]></add>
</operation>

Code ("Original install_source.xml code changed as follows") Select

<operation>
<search position="replace"><![CDATA[WHERE id_event = {int:id_event}',
array(
'start_date']]></search>
<add><![CDATA[WHERE id_event = {int:id_event}
AND forumid = {int:forumid}',
array(
'forumid' => (int) $forumid,
'start_date']]></add>
</operation>


Edit: Fixed minor type/syntax error, forgot to remove the ', after WHERE id_event = {int:id_event} oops :)
Title: Re: Split Forum Mod
Post by: Greygal on November 27, 2014, 04:29:10 AM
Line 36.19 File ./Themes/default/ManageBoards.template.php has a small typo in it, that I wouldn't have thought would have mattered much but it throws it out as a "Test failed(Ignore Errors)"

On the lines that read:

foreach ($boards as $board)
echo '
<option', !isset($context['board']['is_new']) && in_array($board['id'], $context['board']['alias_child']) ? ' selected="selected"' : '', ' value="', $board['id'], '">', $board['name'], '</option>';


You need one less tab character before the "foreach" and "echo '" line.





I've attached my install_source.xml file to this post, with the above-mentioned changes I made so that it is now compatible with both the "Event Registration Mod for SMF2 (http://custom.simplemachines.org/mods/index.php?mod=3238)" (version 2.26) and the "Event Reminder Mod for SMF2 (http://custom.simplemachines.org/mods/index.php?mod=2860)"  (version  2.31) mods (note this mod is called "Calendar Event Reminder" in the mods database, but displays as "Event Reminder Mod" on the admin page once installed).

The changes I made should work whether or not either or both of these mods are installed.

I hope it is of help to you and/or someone else, and if not, that's okay, too :)

Whoops, forgot to mention, I'm using the latest 2.09 release :)

Thanks again for all your hard work on this fabulous mod!  It's the answer to my dreams!  I'm in the middle of merging 14 small forums into my one big most-popular forum, and this mod will allow me to continue to provide my members with the various "specialized" forums they have grown to love and adore yet save my sanity in now only having to deal with one primary forum, user database, etc.  This has been a pretty big - and much-procrastinated! - project, but thanks to your mod, I'm likely gaining 10 or more hours of my life back a week!

Keep up the awesome work!

GG

edit: attached corrected xml, small typo :)
Title: Re: Split Forum Mod
Post by: dougiefresh on November 27, 2014, 06:45:13 PM
@Greygal: WOW!!!  That is some major work you just did!  And you even included instructions on how to fix this compatibility issue!  Very impressive!  Thank you, I'll be sure to include these changes in the next version of the mod!  You are going to be credited in the readme with these changes in the mod, as well....

One question, though: What version of the mod are you including the changes from?  The v1.18 install_source.xml has a "1.17" version number attached to it, so I don't want to overwrite it and end up reverting the code a version....

Never mind, I made the changes myself.....  Thanks again!

Quote from: Denis Pageau on November 26, 2014, 11:40:04 AM
Hi DougieFresh,

I got this error, but I imagine that it is because I don't use simpleportal.

1.Execute Codeadd_remove_hook.php

2.Adapt Databasedb_install.php

3.Execute Modification./Themes/default/PortalAdminBlocks.template.phpFile not found

4.Extract File./Sources/Subs-ManageSplitForums.php

I installed it anyway and it installed correctly. At least at first glance.
If you don't have Simple Portal installed, you don't need the modifications that go into that file.  Easy-peasy....

EDIT: Whoops, fixed the upgrade_1.18.xml to make the package manager skip that operation if the file isn't present.  Thanks for reporting that bug!
Title: Re: Split Forum Mod
Post by: dougiefresh on November 27, 2014, 07:23:12 PM
Quote from: SauloA on November 25, 2014, 08:25:59 PM
I'm getting the following error when I click on the "Boards" link in the admin area:

Template Parse Error!
There was a problem loading the /Themes/default/ManageBoards.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)


It won't allow me to make adjustments to my boards.

Other than that everything is working well with the mod.
Let me research this issue.  I think I solved that particular error in v1.18, but I'll test it again....  What version of the mod are you running?  v1.17 ?

Quote from: SauloA on November 25, 2014, 08:25:59 PM
Also, you can get the mod to pass the session information to a subdomain and that works fine, but how do I get the session to another the main domain.  For example, the mod allows me to make a subdomain URL for a separate forum (forum.secondmywebsite.com), but how do I tie that session in the subdomain to the main domain (mysecondwebsite.com)?
That is a REALLY good question.  I'll have to do some research to figure out the answer to this one.....

EDIT: The session ID is stored in a cookie, and each cookie is associated with a domain name.  PHP code can't read the cookies from another domain, the BROWSER won't let it.  So we would have to write up an entirely new way to allow the forum to get that information....
Title: Re: Split Forum Mod
Post by: Arantor on November 27, 2014, 07:56:06 PM
You can cross *subdomains* with cookies by way of the 'use subdomain independent cookies' option in Admin > Configuration > Server Settings > Cookies and Sessions.

This allows a cookie for my.domain.com to be access from domain.com and also from example.domain.com - it binds it to the entire domain rather than a subset of it. But cross-domain cookies are voodoo.
Title: Re: Split Forum Mod
Post by: Greygal on November 27, 2014, 08:42:06 PM
:blush: and thank YOU, Dougie, for all the work you did putting this together, and being so on-the-ball with support of it!  More than glad to help!

I got "lucky" with this compatibility issue, in that the mod that was causing the conflict (the event registration mod) made its modifications with great consistency.  Makes it a lot easier to adapt around it :)

The "easy" solution would have been to just uninstall the Event Registration mod, then install the Split Forum mod, then reinstall the Event Registration mod.  But I didn't want to risk something breaking even worse that way, and besides, it wasn't a complicated fix, just a bit tedious :)

Meanwhile, I've got it up and running, but I think I didn't set up my subforum correctly.  The second forum is correctly displaying just the categories I want it to display.  But when I log into my second forum, it logs me in then redirects me to the first forum, which is kind of defeating the purpose of having two different front ends :)  Off hand, can you think of what I may have done wrong?  Both forums are on unique domain names, but the same server.

Title: Re: Split Forum Mod
Post by: dougiefresh on November 28, 2014, 03:57:25 AM
Quote from: Greygal on November 27, 2014, 08:42:06 PM
Meanwhile, I've got it up and running, but I think I didn't set up my subforum correctly.  The second forum is correctly displaying just the categories I want it to display.  But when I log into my second forum, it logs me in then redirects me to the first forum, which is kind of defeating the purpose of having two different front ends :)  Off hand, can you think of what I may have done wrong?  Both forums are on unique domain names, but the same server.
What mods do you have installed?  Cause I can't think of anything in my mod that would cause that.....
Title: Re: Split Forum Mod
Post by: Greygal on November 28, 2014, 04:00:10 PM
Quote from: dougiefresh on November 28, 2014, 03:57:25 AM
Quote from: Greygal on November 27, 2014, 08:42:06 PM
Meanwhile, I've got it up and running, but I think I didn't set up my subforum correctly.  The second forum is correctly displaying just the categories I want it to display.  But when I log into my second forum, it logs me in then redirects me to the first forum, which is kind of defeating the purpose of having two different front ends :)  Off hand, can you think of what I may have done wrong?  Both forums are on unique domain names, but the same server.
What mods do you have installed?  Cause I can't think of anything in my mod that would cause that.....

Not sure what I screwed up :)  I ended up deleting that subforum I created, then created a new one. 

Now, when I go to the new subforum, I see it, but whenever I try to click on the board I created or login, I get a 404 error. 

The main forum is at http://www.affirmativealliance.com and I am trying to create a subforum off of it to http://www.redemption-road.com

This is the URL to the test subforum I created: http://www.redemption-road.com/newforum/forum1/

The error I get when I try to login is:

Bad Request

Your browser sent a request that this server could not understand.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Any ideas what I screwed up?



Title: Re: Split Forum Mod
Post by: dougiefresh on November 29, 2014, 06:35:51 AM
@GrayGal: Since you failed to answer what mods you are running, I'm forced to make a guess as to what you're problem is....  I'm guessing you're running Pretty URLs, right?  Furthermore, I'm guessing is that .htaccess file doesn't have what Pretty URLs needs in order to function properly....  Cause I visited the secondary forum and that looks right....
Title: Re: Split Forum Mod
Post by: Greygal on November 29, 2014, 08:26:25 AM
woops sorry, forgot to post the mods!  Sorry!

Yes, running Pretty URLs.  Will check the .htaccess file right now.

1.   SBTM: Search Bar To Menu   1.0.1
2.   BK Modding TopMenu   1.0
3.   Split Forum Mod   1.18
4.   Alias Boards   1.2   
5.   SimplePortal   2.3.6   
6.   MultiForum Mod   1.1   
7.   Anti-Spam Links   1.0.1   
8.   Admin Toolbox   1.0   
9.   Quick Spoiler   0.9.5   
10.   Like Posts   2.0.2   
11.   Simple Audio Video Embedder   3.0.3   
12.   Member Awards   3.0
13.   DB Common Collation & Engine   1.1   
14.   SMF Quiz   1.1.1 beta1   
15.   Member NotePad   2.0.3   
16.   To-Do List   2.0   
17.   WysiBB for SMF   0.6.0.1   
18.   Event Reminder Mod for SMF2   2.31
19.   SMF 1.1.20 / 2.0.9 Update   1.0   
20.   SMF 2.0.8 Update   1.0   
21.   Christmas Smileys   1.2   
22.   Pretty URLs   1.1.2   
23.   IMDb BBC   1.0   
24.   PM Settings   1.0.1   
25.   Fanfics System   1.3   
26.   Tapatalk SMF 2.0 Plugin   4.0.1   
27.   Profile Statuses   3.1   
28.   Custom Form Mod   1.7   
29.   Voter Visibility   2.0   
30.   EFTMod   0.2.0   
31.   RSS Feed Poster   4.1
32.   New Layout for Last Post Info   1.5.1   
33.   Separate the sticky topics   1.0.0   
34.   Event Registration Mod for SMF2   2.26
35.   AdditionalMembergroups   1.01   
36.   Gamer IDs   1.4   
37.   Additional Instant Messengers   1.0.1   
38.   open mod reports   1.0   
39.   Country Flags   2.1   
40.   FantasticSmileys   1.0   
41.   Characters remaining of post   1.0.4   
42.   Drafts   2.0.5   
43.   Footer Menu   1.1.2   
44.   Post Notifier   1.0   
45.   Best Answer Intergration   1.4   
46.   Eve Events Importer   0.4   
47.   Temars EVE API   1.3.1 r5   
Title: Re: Split Forum Mod
Post by: Greygal on November 29, 2014, 08:36:13 AM
This is the .htaccess in the primary forum (the affirmative forum), which best I can tell appears to be good:

# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: November 28, 2014, 20:54

RewriteEngine on
RewriteBase /forum

# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|mediapro)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(emailuser|findmember|forum|portal|gamercard|groups|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jseditor|jsmodify|jsoption|lock|lockvoting|login|login2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(logout|markasread|mergetopics|mlist|moderate|modifycat|modifykarma|movetopic)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(movetopic2|notify|notifyboard|openidreturn|pm|post|post2|printpage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(profile|quotefast|quickmod|quickmod2|recent|register|register2|reminder)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removepoll|removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendtopic)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|SMFQuiz|SMFQuizAnswers|SMFQuizStart|SMFQuizEnd)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(SMFQuizQuestions|SMFQuizDispute|SMFQuizAjax|SMFQuizExport|stats|sticky|feedsadmin|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(todo|trackip|about:mozilla|about:unknown|unread|unreadglobal|unreadreplies|verificationcode)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewprofile|vote|votelog|viewquery|viewsmfile|who|calreminder|\.xml)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(registerEvent|xmlhttp|form|bestanswer)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS




This is the .htaccess in the secondary forum (the redemption forum):

Options +FollowSymlinks
RewriteEngine on
RewriteRule (.*)/(.*) ../../../affirmativealliance.com/forum$1/$2
Title: Re: Split Forum Mod
Post by: dougiefresh on November 29, 2014, 09:15:44 AM
Thank you for confirming this.  I will make the appropriate adjustments in the code to make it work properly with Pretty URLs....
Title: Re: Split Forum Mod
Post by: Greygal on November 29, 2014, 09:18:04 AM
You rock, Dougie!   :-*
Title: Re: Split Forum Mod
Post by: dougiefresh on November 29, 2014, 11:36:42 AM
Uploaded v1.19 - November 29th, 2014
o Modifications made by Greygal (http://www.simplemachines.org/community/index.php?action=profile;u=394494) made it compatible with Event Registration for SMF2 (http://custom.simplemachines.org/mods/index.php?mod=3238) mod.
o Fixed subforum management code to include Pretty URLs htaccess modifications.  Thanks, Greygal (http://www.simplemachines.org/community/index.php?action=profile;u=394494)!
o upgrade_1.19.xml attempts to execute failed operation regarding Alias Boards mod.
o Fixed upgrade_1.18.xml to skip SimplePortal template operations if file doesn't exist.

@Greygal: This update should solve the .htaccess issues that have given you grief.  You will need to into your primary forum, go to the Manage Subforums area, then click Modify for each subforum, then save the subforum settings.  You don't need to make any changes to the subforum settings.  The code will update the .htaccess for you so that Pretty URL works correctly....




@Everybody: After much thought given to v2.0, I've decided that I am going to release it as a paid mod.  It'll get released after my redesigned website goes live.....
Title: Re: Split Forum Mod
Post by: Greygal on November 29, 2014, 04:34:29 PM
Dougie, you are a wonder, I cannot think of the last time I've seen a mod author be so responsive!

The upgrade installed perfectly :)

I went into subforums, clicked modify and save on the test subforum, and the issue with PrettyURLs is fixed.  When I click on any links on the subforum, it stays on that subforum appropriately.

I then created a new subforum, and got the 404 error problem again when I attempted to click any links on the new subforum!  However, just going into the subforum > modify > save fixed the 404 issue.  In other words, after creating a new subforum, you have to save it after creating it for the proper .htaccess file to be created (at least that's the way I'm reading it!)

The only problem right now is after the subforum is created, the front page shows the theme properly, but any link you click on does not show the theme.  I am digging around right now to see if this is an issue on my side.  Example:  http://www.redemption-road.com/newforum/forum2/public-chat-120/what-type-of-system-are-you-running-eve-on-or-what-would-be/msg12368/?topicseen#msg12368

Edit: On the new testing subforum I created, when I click the "Register" link, it does show with the theme, but there is no text in the "User Agreement" area. Looking into this...

Edit2: Ya, seems like it's not actually pulling the "content" part of any page it creates... digging...

New test subforum base URL is http://www.redemption-road.com/newforum/forum2/

Thanks again, Dougie!!

GG

Edit: Including .htaccess
Primary forum .htaccess
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: November 29, 2014, 21:26

RewriteEngine on
RewriteBase /forum

# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|mediapro)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(emailuser|findmember|forum|portal|gamercard|groups|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jseditor|jsmodify|jsoption|lock|lockvoting|login|login2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(logout|markasread|mergetopics|mlist|moderate|modifycat|modifykarma|movetopic)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(movetopic2|notify|notifyboard|openidreturn|pm|post|post2|printpage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(profile|quotefast|quickmod|quickmod2|recent|register|register2|reminder)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removepoll|removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendtopic)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|SMFQuiz|SMFQuizAnswers|SMFQuizStart|SMFQuizEnd)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(SMFQuizQuestions|SMFQuizDispute|SMFQuizAjax|SMFQuizExport|stats|sticky|feedsadmin|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(todo|trackip|about:mozilla|about:unknown|unread|unreadglobal|unreadreplies|verificationcode)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewprofile|vote|votelog|viewquery|viewsmfile|who|calreminder|\.xml)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(registerEvent|xmlhttp|form|bestanswer)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS


Subforum .htaccess
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: November 29, 2014, 21:26

RewriteEngine on
RewriteBase /forum

# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|mediapro)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(emailuser|findmember|forum|portal|gamercard|groups|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jseditor|jsmodify|jsoption|lock|lockvoting|login|login2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(logout|markasread|mergetopics|mlist|moderate|modifycat|modifykarma|movetopic)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(movetopic2|notify|notifyboard|openidreturn|pm|post|post2|printpage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(profile|quotefast|quickmod|quickmod2|recent|register|register2|reminder)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removepoll|removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendtopic)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|SMFQuiz|SMFQuizAnswers|SMFQuizStart|SMFQuizEnd)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(SMFQuizQuestions|SMFQuizDispute|SMFQuizAjax|SMFQuizExport|stats|sticky|feedsadmin|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(todo|trackip|about:mozilla|about:unknown|unread|unreadglobal|unreadreplies|verificationcode)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewprofile|vote|votelog|viewquery|viewsmfile|who|calreminder|\.xml)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(registerEvent|xmlhttp|form|bestanswer)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

# SUBFORUM MOD BEGINS
RewriteEngine on
Options +FollowSymlinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*)/(.*) ../../../affirmativealliance.com/forum$1/$2
# SUBFORUM MOD ENDS


EDIT:  I don't think it's a prettyURLs problem, at least not sure ... it seems to be writing the URLs correctly.  Primary forum URL is first, subforum URL is second, 2nd subforum (new testing subforum) is 3rd, for the same post:

http://www.affirmativealliance.com/forum/public-chat-120/what-type-of-system-are-you-running-eve-on-or-what-would-be/msg12368/?topicseen#msg12368
http://www.redemption-road.com/newforum/forum1/public-chat-120/what-type-of-system-are-you-running-eve-on-or-what-would-be/msg12368/?topicseen#msg12368
http://www.redemption-road.com/newforum/forum2/public-chat-120/what-type-of-system-are-you-running-eve-on-or-what-would-be/msg12368/?topicseen#msg12368

/me thinks she should give up on prettyURLs... but so many of my forum users want prettified URLs... sigh....
Title: Re: Split Forum Mod
Post by: dougiefresh on November 29, 2014, 06:58:17 PM
Wow.... Looks like I've got some investigation to do on the mod.  I can personally verify that the subforum's registration agreement doesn't come up when attempting to register....  That ain't supposed to happen!!  :P
Title: Re: Split Forum Mod
Post by: Greygal on November 29, 2014, 07:10:09 PM
My "gut" is telling me its related to the pretty-fied URLs, but it makes no sense, and I can't see where its going wrong.  No error messages on the forum's logs.  The server log shows this error message (I renamed my folder name before posting it here though):

[Sat Nov 29 17:53:55 2014] [error] [client 50.45.167.76] File does not exist: /home3/myname/public_html/redemption-road.com/400.shtml, referer: http://www.redemption-road.com/newforum/forum2/public-chat-120/what-type-of-system-are-you-running-eve-on-or-what-would-be/msg12368/?topicseen

That's when attempting to open a post.  When attempting to register, this is the error message on the server log.  The script it is looking for has nothing to do with the body text of the user agreement though - but I'm going to temporarily deactivate that mod anyways (it's just a special bbc mod for posting eve online fits) to see if that helps.

[Sat Nov 29 18:05:49 2014] [error] [client 50.45.167.76] File does not exist: /home3/myname/public_html/affirmativealliance.com/forum/Themes/Default Redemption/scripts/fitting.js, referer: http://www.redemption-road.com/newforum/forum2/?action=register
[Sat Nov 29 18:05:49 2014] [error] [client 50.45.167.76] File does not exist: /home3/myname/public_html/affirmativealliance.com/forum/Themes/Default Redemption/css/fitting.css, referer: http://www.redemption-road.com/newforum/forum2/?action=register

Edit: So I uninstalled the "eft" mod, and broke my forum lol ... fixing now ... if it turns out it's this mod causing the issue, I'm going to cry... :)

Notice: Undefined index: user in /home3/myname/public_html/affirmativealliance.com/forum/Themes/default/languages/Modifications.english.php on line 291
Fatal error: Call to undefined function call_integration_hook() in /home3/myname/public_html/affirmativealliance.com/forum/Sources/Load.php on line 354

Edit: So when I uninstalled the "EFT" mod, it broke my forum, took me a bit to figure out what went wrong, and I'm not entirely sure how this happened, but my Subs.php file ended up empty, like it wiped it out completely.  Very bizarre and not related to this ... just bizarre!  Anyways, it doesn't appear that the "EFT" mod is causing the issue with the body content of posts and the registration agreement not being pulled, or the theme not displaying on pages after the index page.

I'm pretty certain it has something to do with PrettyURLs, and tomorrow I'll uninstall that and see if it works without it.

Title: Re: Split Forum Mod
Post by: dougiefresh on November 30, 2014, 06:36:19 PM
I think I figured out why the registration agreement wasn't being pulled up....  The forum was looking for agreement.forum1..txt instead of agreement.forum1.txt (note the 2 periods before txt)....

In Sources/Register.php, find this:
Code (Find) Select
$agree = 'agreement' . ($forumid == 0 ? '' : '.forum' . $forumid . '.');
and replace it with this:
Code (Replace) Select
$agree = 'agreement' . ($forumid == 0 ? '' : '.forum' . $forumid);
Does this solve your problem?  Is there anything else I need to fix?  Thanks!

EDIT: I'm also noticing that logging in from the subforums redirects to the primary board for some reason when Pretty URLs is installed.  I've got the code responsible narrowed down to the .htaccess creation code in Subs-PrettyURLs.php, however, I'm too tired to attempt to fix this tonight....  I'll write something up to rewrite the .htaccess files upon installation of the mod, as well.  It'll be automatic....
Title: Re: Split Forum Mod
Post by: Greygal on November 30, 2014, 08:17:17 PM
Thanks Dougie, you're amazing!

I'll try that out soon as work is over and will let you know!

GG
Title: Re: Split Forum Mod
Post by: Greygal on December 02, 2014, 08:50:21 AM
That fixed the Register text issue!

So far regarding the theme and content issue (not loading the theme - or content - on pages beyond the front page or the register page), best I can figure somewhere is it's not reading the loadTemplate('Display'); code in the .Sources/Display.php file when on a subforum.  Not entirely sure why, but digging.  Will let you know if I figure it out :)

Thanks again!

GG
Title: Re: Split Forum Mod
Post by: SauloA on December 02, 2014, 08:11:30 PM
Quote from: dougiefresh on November 27, 2014, 07:23:12 PM
Quote from: SauloA on November 25, 2014, 08:25:59 PM
I'm getting the following error when I click on the "Boards" link in the admin area:

Template Parse Error!
There was a problem loading the /Themes/default/ManageBoards.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)


It won't allow me to make adjustments to my boards.

Other than that everything is working well with the mod.
Let me research this issue.  I think I solved that particular error in v1.18, but I'll test it again....  What version of the mod are you running?  v1.17 ?

I upgraded to v1.19 and I still got the same error message.  I went to /Themes/default/ManageBoards.template.php to see if I could find anything.  I was able to get rid of the error by:

Code (Find) Select
$txt['pretty_urls']
Code (Replace) Select
$txt['mboards_modify']

In:
Code (ManageBoards.template.php) Select
// List through every board in the category, printing its name and link to modify the board.
foreach ($category['boards'] as $board)
{
$alternate = !$alternate;

echo '
<li', !empty($modSettings['recycle_board']) && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] == $board['id'] ? ' id="recycle_board"' : ' ', ' class="windowbg', $alternate ? '' : '2', '" style="padding-' . ($context['right_to_left'] ? 'right' : 'left') . ': ', 5 + 30 * $board['child_level'], 'px;', $board['move'] ? 'color: red;' : '', '"><span class="floatleft"><a href="', $scripturl, '?board=', $board['id'], '">', $board['name'], '</a>', !empty($modSettings['recycle_board']) && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] == $board['id'] ? '<a href="' . $scripturl . '?action=admin;area=manageboards;sa=settings"> <img src="' . $settings['images_url'] . '/post/recycled.gif" alt="' . $txt['recycle_board'] . '" /></a></span>' : '</span>', '
<span class="floatright">', $context['can_manage_permissions'] ? '<span class="modify_boards"><a href="' . $scripturl . '?action=admin;area=permissions;sa=index;pid=' . $board['permission_profile'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '">' . $txt['mboards_permissions'] . '</a></span>' : '', '
<span class="modify_boards"><a href="', $scripturl, '?action=admin;area=manageboards;move=', $board['id'], '">', $txt['mboards_move'], '</a></span>
<span class="modify_boards"><a href="', $scripturl, '?action=admin;area=manageboards;sa=board;boardid=', $board['id'], '">', $txt['mboards_modify'], '</a></span>
', allowedTo('admin_forum') ? '<span class="modify_boards"><a href="' . $scripturl . '?action=admin;area=manageboards;sa=pretty;boardid=' . $board['id'] . '">' . $txt['pretty_urls'] . '</a></span>' : '', '</span><br style="clear: right;" />
</li>';

if (!empty($board['move_links']))
{
$alternate = !$alternate;

echo '
<li class="windowbg', $alternate ? '' : '2', '" style="padding-', $context['right_to_left'] ? 'right' : 'left', ': ', 5 + 30 * $board['move_links'][0]['child_level'], 'px;">';

foreach ($board['move_links'] as $link)
echo '
<a href="', $link['href'], '" class="move_links" title="', $link['label'], '"><img src="', $settings['images_url'], '/board_select_spot', $link['child_level'] > 0 ? '_child' : '', '.gif" alt="', $link['label'], '" style="padding: 0px; margin: 0px;" /></a>';

echo '
</li>';
}
}


I'm not using the Pretty URLs mod so I figured that was the problem, I guess it was.  The only thing is that I don't know if I'm using the correct variable in that line of code.

Quote from: dougiefresh on November 27, 2014, 07:23:12 PM
Quote from: SauloA on November 25, 2014, 08:25:59 PM
Also, you can get the mod to pass the session information to a subdomain and that works fine, but how do I get the session to another the main domain.  For example, the mod allows me to make a subdomain URL for a separate forum (forum.secondmywebsite.com), but how do I tie that session in the subdomain to the main domain (mysecondwebsite.com)?
That is a REALLY good question.  I'll have to do some research to figure out the answer to this one.....

EDIT: The session ID is stored in a cookie, and each cookie is associated with a domain name.  PHP code can't read the cookies from another domain, the BROWSER won't let it.  So we would have to write up an entirely new way to allow the forum to get that information....

I did what Arantor suggested by going to "Admin > Configuration > Server Settings > Cookies and Sessions" and now my session is being carried over to the main domain.

Quote from: Arantor on November 27, 2014, 07:56:06 PM
You can cross *subdomains* with cookies by way of the 'use subdomain independent cookies' option in Admin > Configuration > Server Settings > Cookies and Sessions.

This allows a cookie for my.domain.com to be access from domain.com and also from example.domain.com - it binds it to the entire domain rather than a subset of it. But cross-domain cookies are voodoo.

This mod just keeps getting better and better.
Title: Re: Split Forum Mod
Post by: Greygal on December 02, 2014, 10:34:11 PM
So, I gave up on PrettyURLs, because it's just causing WAY too many problems with WAY too many bits and pieces and such... just sick of trying to tweak everything to get it to work with everything.  In particular it's breaking the authorization system I use that is tied in with the EveOnline API that these forums I'm merging together are about.  And that auth code is beyond spagettified as it is...

EDIT:  Note that removing PrettyURLs removed the theme issues and redirect issues, no surprise.  The subforum I created is working pretty much perfectly now.

However, I kept it installed on a copy of my forum for testing, so that I can help you out further if and as needed with getting SplitForums to work with PrettyURLs.

Meanwhile... a question that I think may have already been answered but I'm so brain-dead right now can't seem to find answer... is there any way for one catagory to show on both forums?  Meaning, is it possible to have my "Welcome" section show on both the primary forum and subforum 1?

I have alias boards installed, and I did install it prior to installing SplitForum, but if I'm reading that right, it can only alias boards within the same subforum, not across subforums...?

Thanks again for all that you do, Dougie!

GG
Title: Re: Split Forum Mod
Post by: dougiefresh on December 03, 2014, 05:09:57 PM
Quote from: Greygal on December 02, 2014, 10:34:11 PM
So, I gave up on PrettyURLs, because it's just causing WAY too many problems with WAY too many bits and pieces and such... just sick of trying to tweak everything to get it to work with everything.  In particular it's breaking the authorization system I use that is tied in with the EveOnline API that these forums I'm merging together are about.  And that auth code is beyond spagettified as it is...

EDIT:  Note that removing PrettyURLs removed the theme issues and redirect issues, no surprise.  The subforum I created is working pretty much perfectly now.

However, I kept it installed on a copy of my forum for testing, so that I can help you out further if and as needed with getting SplitForums to work with PrettyURLs.
I haven't had any time to look at the code lately.  Yesterday, I worked a 12-hour shift.  Today was 10 1/2 hours....

Quote from: Greygal on December 02, 2014, 10:34:11 PM
Meanwhile... a question that I think may have already been answered but I'm so brain-dead right now can't seem to find answer... is there any way for one catagory to show on both forums?  Meaning, is it possible to have my "Welcome" section show on both the primary forum and subforum 1?
Not with the version 1.x mod series.  I am working on a 2.0 version of the mod that will allow people to do so, but it will be a paid mod ONLY.

Quote from: Greygal on December 02, 2014, 10:34:11 PM
I have alias boards installed, and I did install it prior to installing SplitForum, but if I'm reading that right, it can only alias boards within the same subforum, not across subforums...?
Correct.  Attempting to pull the board information from an aliased category ends up displaying that category in the board index, which is just wrong.  I haven't figured out a way to fix this, or work around it yet....
Title: Re: Split Forum Mod
Post by: Greygal on December 03, 2014, 05:13:22 PM
Assuming the price is right, you can count me in as a customer for 2.0 :)

I've got it up and running properly now, just not with PrettyURLs.  Which I'm fine with not using, as it's a major PITA.

Thanks for all that you do!

GG
Title: Re: Split Forum Mod
Post by: jjsmith on December 11, 2014, 03:13:07 PM
Hi Dougiefresh,

I have SMF 2.0.9, and am trying to install ver 1.19 of this mod.

I'm getting errors when installing this mod.  Can you help with resolving them?

(Sorry for the long post.  It's really not too bad - I just posted in a lot of code so you could easily see the what's going on.)

All errors are "Test failed" when I click "Install Mod", and all are with the "Replace" modification.  It looks like all of them are because the "Find" source code isn't being found. 

Thanks for your help!
Josh




In - ./Sources/ManageBoards.php - two errors

1 - Code to find:

// Start with one - "In first place".
$context['category_order'] = array(
array(
'id' => 0,
'name' => $txt['mboards_order_first'],
'selected' => !empty($_REQUEST['cat']) ? $cat_tree[$_REQUEST['cat']]['is_first'] : false,
'true_name' => ''
)
);


That's not found, but I do have the following.  Note the additional 'color' and 'icon' array elements.

// Start with one - "In first place".
$context['category_order'] = array(
array(
'id' => 0,
'color' => '',
'icon' => '',
'name' => $txt['mboards_order_first'],
'selected' => !empty($_REQUEST['cat']) ? $cat_tree[$_REQUEST['cat']]['is_first'] : false,
'true_name' => ''
)
);



2 - Code to find. 

$boardOptions['alias_cat'] = isset($_POST['alias_cat']) ? implode(',', $_POST['alias_cat']) : '';
$boardOptions['alias_child'] = isset($_POST['alias_child']) ? implode(',', $_POST['alias_child']) : '';


That's not found.  In this program, I did a find on "alias_cat" and "alias_child" and neither are present.

Also - This error says "Test failed (Ignore errors)".  Does this really mean I can ignore this error and do the install?





In - ./Themes/default/ManageBoards.template.php - three errors

1 - Code to find:

<li', !empty($modSettings['recycle_board']) && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] == $board['id'] ? ' id="recycle_board"' : ' ', ' class="windowbg', $alternate ? '' : '2', '" style="padding-' . ($context['right_to_left'] ? 'right' : 'left') . ': ', 5 + 30 * $board['child_level'], 'px;', $board['move'] ? 'color: red;' : '', '"><span class="floatleft"><a href="', $scripturl, '?board=', $board['id'], '">', $board['name'], '</a>', !empty($modSettings['recycle_board']) && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] == $board['id'] ? '<a href="' . $scripturl . '?action=admin;area=manageboards;sa=settings"> <img src="' . $settings['images_url'] . '/post/recycled.gif" alt="' . $txt['recycle_board'] . '" /></a></span>' : '</span>', '


That's not found, but I do have the following:

<li', !empty($modSettings['recycle_board']) && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] == $board['id'] ? ' id="recycle_board"' : ' ', ' class="windowbg', $alternate ? '' : '2', '" style="padding-' . ($context['right_to_left'] ? 'right' : 'left') . ': ', 5 + 30 * $board['child_level'], 'px;', $board['move'] ? 'color: red;' : '', '"><span class="floatleft"><a href="', $scripturl, '?board=', $board['id'], '"', !empty($board['color']) ? ' style="color: ' . $board['color'] . ';">' : '>' , $board['name'], '</a>' , !empty($board['icon']) ? ' <img src="' . $board['icon'] . '" style="width:18px;height:18px;" alt="" /> ' : ''



2 - Code to find:

</dt>
<dd>
<select name="alias_cat[]" multiple="multiple">
<option value="">', $txt['no_cat_selected'], '</option>';
foreach ($cat_tree as $category)
echo '
<option', !isset($context['board']['is_new']) && in_array($category['node']['id'], $context['board']['alias_cat']) ? ' selected="selected"' : '', ' value="', $category['node']['id'], '">', $category['node']['name'], '</option>';
echo '
</select>
</dd>



That's not found.  Also did a search on "alias_cat" and that wasn't found.
This error also says "Test failed (Ignore errors)"


3 - Code to find:

</dt>
<dd>
<select name="alias_child[]" multiple="multiple">
<option value="">', $txt['no_boards_selected'], '</option>';
foreach ($boards as $board)
echo '
<option', !isset($context['board']['is_new']) && in_array($board['id'], $context['board']['alias_child']) ? ' selected="selected"' : '', ' value="', $board['id'], '">', $board['name'], '</option>';
echo '
</select>
</dd>


That's not found.  Also did a search on "alias_child" and that wasn't found.
This error also says "Test failed (Ignore errors)".

Title: Re: Split Forum Mod
Post by: Kindred on December 11, 2014, 03:50:15 PM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Split Forum Mod
Post by: dougiefresh on December 11, 2014, 07:39:06 PM
Quote from: jjsmith on December 11, 2014, 03:13:07 PM
All errors are "Test failed" when I click "Install Mod", and all are with the "Replace" modification.  It looks like all of them are because the "Find" source code isn't being found. 
You are correct.

Quote from: jjsmith on December 11, 2014, 03:13:07 PM
In - ./Sources/ManageBoards.php - two errors
2 - Code to find. 

$boardOptions['alias_cat'] = isset($_POST['alias_cat']) ? implode(',', $_POST['alias_cat']) : '';
$boardOptions['alias_child'] = isset($_POST['alias_child']) ? implode(',', $_POST['alias_child']) : '';


That's not found.  In this program, I did a find on "alias_cat" and "alias_child" and neither are present.

Also - This error says "Test failed (Ignore errors)".  Does this really mean I can ignore this error and do the install?
Quote from: jjsmith on December 11, 2014, 03:13:07 PM
In - ./Themes/default/ManageBoards.template.php - three errors
2 - Code to find:

</dt>
<dd>
<select name="alias_cat[]" multiple="multiple">
<option value="">', $txt['no_cat_selected'], '</option>';
foreach ($cat_tree as $category)
echo '
<option', !isset($context['board']['is_new']) && in_array($category['node']['id'], $context['board']['alias_cat']) ? ' selected="selected"' : '', ' value="', $category['node']['id'], '">', $category['node']['name'], '</option>';
echo '
</select>
</dd>



That's not found.  Also did a search on "alias_cat" and that wasn't found.
This error also says "Test failed (Ignore errors)"


3 - Code to find:

</dt>
<dd>
<select name="alias_child[]" multiple="multiple">
<option value="">', $txt['no_boards_selected'], '</option>';
foreach ($boards as $board)
echo '
<option', !isset($context['board']['is_new']) && in_array($board['id'], $context['board']['alias_child']) ? ' selected="selected"' : '', ' value="', $board['id'], '">', $board['name'], '</option>';
echo '
</select>
</dd>


That's not found.  Also did a search on "alias_child" and that wasn't found.
This error also says "Test failed (Ignore errors)".
Yes, these operations relate to the Alias Board (http://custom.simplemachines.org/mods/index.php?mod=1024) mod.  If you don't have Alias Boards mod installed, you can ignore these errors.  If you do have Alias Boards installed, you should upgrade to the latest version.

Regarding the rest of your problems, I will have to figure out what is going on tomorrow.....  Offhand, I know that ManageBoards.php relates to the management of categories and boards for the forum.  The code is modified to allow the UI to list categories in all subforums, and boards in all categories....  I'm too tired to research this issue tonight...
Title: Re: Split Forum Mod
Post by: Hj Ahmad Rasyid Hj Ismail on December 12, 2014, 01:12:01 AM
Take it slowly dougiefresh. Take a break if you need it. All I can see is you are doing good so far. Keep it up. This is kind of mod is one of my main interest in SMF.
Title: Re: Split Forum Mod
Post by: Greygal on December 12, 2014, 01:33:49 AM
@JJSmith:  Are you using some sort of mod that colors your board names, instead of (or in addition to) showing an icon?  Or are you using a nonstandard theme?

On the manageBoards.php errors you are receiving, it's because your code is different starting at
Code (code to search for) Select

<a href="', $scripturl, '?board=', $board['id'], '">', $board['name'], '</a>', !empty($modSettings['recycle_board']) && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] == $board['id'] ? '<a href="' . $scripturl . '?action=admin;area=manageboards;sa=settings"> <img src="' . $settings['images_url'] . '/post/recycled.gif" alt="' . $txt['recycle_board'] . '" /></a></span>' : '</span>', '


Code (your code) Select

<a href="', $scripturl, '?board=', $board['id'], '"', !empty($board['color']) ? ' style="color: ' . $board['color'] . ';">' : '>' , $board['name'], '</a>' , !empty($board['icon']) ? ' <img src="' . $board['icon'] . '" style="width:18px;height:18px;" alt="" /> ' : ''


Note how your code, starting right at $board['id'] is different. The original code is ending the a href link, your code is adding some color styling to the link.  The original code has a image for "recycled.gif" where your code uses a board icon with 18px height/width.

Same thing with the first ManageBoards.php error - you have two additional array items for color and and icon that are not in the original code. 

So that means that since both of these errors are relating to something that changes how your categories are displayed (specifically changes their color and/or icon), that means the error is caused by the same issue - a mod you have installed or some sort of nonstandard theme that has altered this file.

Try and figure out what mod it is, uninstall that mod, install SplitForum, then reinstall that mod.

The solution to this is to either manually edit these lines after you've installed the mod (see the link already posted about that to you), or to remove the mod that caused these changes to your ManageBoards.php file.  Or manually make the relevant edits after installing.

It would be helpful if you listed what mods you had installed ;)

GG
Title: Re: Split Forum Mod
Post by: SilverKnight on December 16, 2014, 05:43:47 PM
I noticed a weird bug when trying to move forums around, although they were moved around in the subforum, the actual appearance would not display the correct sequence layout when actually displayed, i found, to fix this, i found if you move a forum over to another sub-forum or the main forum and moved it back it resolved this. Maybe some weird cache\config issue.

Love all the fixes Doug, keep up the good work.

In terms of prettyurls the only issue i am currently seeing with it's integration the navigation tree links are not functioning correctly. ]

E.G.

Cipherspace: Starbound Roleplay » Server Information » Server news and Information » Stub topic

( From top to bottom in that order)
http://www.na.net/index.php // Not correct (main forum instead of sub)
http://www.na.net/index.php#c41 // Main forum instead of sub)
http://www.na.net/index.php?board=540.0 // Correct - Same as : http://www.na.net/cipherspace/server-news-and-information/

http://www.na.net/cipherspace/server-news-and-information/stub-topic/ // Correct

It also seems on the main navigation, when on the sub-forum index, it displays everything correctly, go into a board inside the sub-forum and the navigation has issues including the subforum in it's url and displays the mainforums navigation instead. I use a custom menu but not sure why pretty is getting that. Such a pain, i guess i will have to turn it off again.
Title: Re: Split Forum Mod
Post by: TonyG on December 22, 2014, 07:31:06 PM
@DougieFresh: I posted this thread (http://www.simplemachines.org/community/index.php?topic=531541.0) here about creating a multi-site, single-signon instance of SMF, and I was appropriately referred here. If you have any interest I'd be happy to show you my site and Skype with you. Perhaps you can comment on whether this would be a good fit for the Split Forum Mod, and if so I'd be happy to have it serve as a reference site for you. If you're interested, please PM. If it turns out that my site is Not a good fit then I think we'll both benefit from looking into it.

Thanks!
Title: Re: Split Forum Mod
Post by: Falcomfr on January 14, 2015, 10:30:56 AM
Hello :)

Bonjour,

I get this errors about your mod (i think) and i don't know why can you help me ?

Thank you



Errors:

Quotehttp://www."monsite".com/index.php?action=admin;area=manageboards;sa=board;boardid=67
8: Undefined index: sub
Fichier: /home/astreagadq/www/Themes/default/ManageBoards.template.php
Ligne: 411

Quote
http://www."monsite".com/index.php?action=admin;area=manageboards;sa=board;boardid=67
8: Undefined index: sub
Fichier: /home/astreagadq/www/Themes/default/ManageBoards.template.php
Ligne: 391

Quotehttp://www."monsite".com/index.php?action=admin;area=manageboards;sa=board;boardid=83
8: Undefined index: sub
Fichier: /home/astreagadq/www/Themes/default/ManageBoards.template.php
Ligne: 398

ManageBoards.template.php:
// Option for choosing the subforum the board lives in.
if (count($subforum_tree) > 1)
{
echo '
<dt>
<strong>', $txt['forumid_title'], ':</strong>

</dt>
<dd>
<select name="new_forum" onchange="hideCategories(this.options[this.selectedIndex].value);">';
foreach ($subforum_tree as $subforum)
echo '
[b]391[/b] <option value="', $subforum['forumid'], '" ', $subforum['forumid'] == $_REQUEST['sub'] ? ' selected="selected"' : '', '>', $subforum['boardname'], '</option>';
echo '
</select>
</dd>';
}
else
echo '
[b]398[/b] <input type="hidden" name="new_forum" value="', $_REQUEST['sub'], '" />';

// Option for choosing the category the board lives in.
echo '

<dt>
<strong>', $txt['mboards_category'], ':</strong>

</dt>
<dd>';
foreach ($subforum_tree as $subforum)
{
echo '
[b]411[/b] <select name="new_cat', $subforum['forumid'], '" id="new_cat', $subforum['forumid'], '" onchange="hideBoards(this.options[this.selectedIndex].value);"', ($subforum['forumid'] <> $_REQUEST['sub'] ? ' style="display: none;"' : ''), ((isset($context['board']['is_new']) && count($context['categories'][$subforum['forumid']]) > 0) || count($context['categories'][$subforum['forumid']]) > 1 ? '' : ' disabled="disabled"'), '>';
foreach ($context['categories'][$subforum['forumid']] as $category)
echo '
<option', $category['selected'] ? ' selected="selected"' : '', ' value="', $category['id'], '">', $category['name'], '</option>';
echo '
</select>';
}
echo '
</dd>';

________________et____________________

Quotehttp://www."monsite".com/index.php?action=admin;area=subforums;e0d22d89fac=aef4def61b7dac8779b59f701c17e475
8: Undefined index: label
Fichier: /home/astreagadq/www/Themes/default/GenericMenu.template.php
Ligne: 327

Quote
http://www."monsite".com/index.php?action=admin;area=permissions;sa=index;a08f8a66845c=0d0ae03a04e5a947c27764f25d001ac1
8: Undefined index: label
Fichier: /home/astreagadq/www/Themes/default/GenericMenu.template.php
Ligne: 180

GenericMenu.template.php:
// Is there any subsections?
$additional_items_sub = 0;
if (!empty($area['subsections']))
{
echo '
<ul>';

foreach ($area['subsections'] as $sa => $sub)
{
if (!empty($sub['disabled']))
continue;

$url = isset($sub['url']) ? $sub['url'] : (isset($area['url']) ? $area['url'] : $menu_context['base_url'] . ';area=' . $i) . ';sa=' . $sa;

echo '
<li', (++$additional_items_sub > 6) ? ' class="additional_items"' : '' ,'>
[b]180 [/b] <a ', !empty($sub['selected']) ? 'class="active" ' : '', 'href="', $url, $menu_context['extra_parameters'], '"><span>', $sub['label'], '</span></a>
</li>';
}

echo '
</ul>';
}

echo '
</li>';
}
echo '
</ul>
</li>';
}

echo '
</ul>
</div>';



// Print out all the items in this tab.
foreach ($tab_context['tabs'] as $sa => $tab)
{
if (!empty($tab['disabled']))
continue;

if (!empty($tab['is_selected']))
{
echo '
<li>
<a class="active firstlevel" href="', isset($tab['url']) ? $tab['url'] : $menu_context['base_url'] . ';area=' . $menu_context['current_area'] . ';sa=' . $sa, $menu_context['extra_parameters'], isset($tab['add_params']) ? $tab['add_params'] : '', '"><span class="firstlevel">', $tab['label'], '</span></a>
</li>';
}
else
echo '
<li>
[b]327[/b] <a class="firstlevel" href="', isset($tab['url']) ? $tab['url'] : $menu_context['base_url'] . ';area=' . $menu_context['current_area'] . ';sa=' . $sa, $menu_context['extra_parameters'], isset($tab['add_params']) ? $tab['add_params'] : '', '"><span class="firstlevel">', $tab['label'], '</span></a>
</li>';
}
Title: Re: Split Forum Mod
Post by: dougiefresh on January 19, 2015, 09:41:56 AM
Uploaded v1.20 - January 19th, 2015
o License change to Simplified BSD.
o Fixed issue with the registration agreement not being pulled up for subforums....
o Modified Edit Subforum code so that .htaccess is properly updated by Pretty URLs.
Title: Re: Split Forum Mod
Post by: tranhiep_116 on January 19, 2015, 09:52:03 AM
thanks, i can using this
Title: Re: Split Forum Mod
Post by: dougiefresh on January 19, 2015, 06:29:59 PM
@Falcomfr: I will look into these undeclared variable issues.

@SilverKnight:  I will look into your bug report.  It's been almost a month (or so) since I worked on this mod, so hopefully, I'll be able to nail down some bugs...

Title: Re: Split Forum Mod
Post by: SHome on February 02, 2015, 02:25:35 AM
Great mod but i'm having an issue creating new subboards.  When I fill the "Create New SubForum" form and click on Save, I am redirected to the subforums list without any errors displayed but the sub forum is never created.

Looking at the SMF error log, I see the following errors:


8: Undefined index: sp_portal
File: Sources/ManageSplitForums.php
Line: 155

8: Undefined index: path
File: Sources/ManageSplitForums.php
Line: 231

8: Undefined index: path
File: Sources/ManageSplitForums.php
Line: 232

8: Undefined variable: boardurl
File: Sources/ManageSplitForums.php
Line: 294

FWIW, I'm using both SimplePortal 2.3.6 and PrettyURL.  Tried disabling PrettyURL but the same issue still occurs.
Title: Re: Split Forum Mod
Post by: SHome on February 02, 2015, 10:19:25 AM
Sorry, please disregard my last post.  The issue was caused by the mod not installing properly due to a server path mismatch.
Title: Re: Split Forum Mod
Post by: dougiefresh on February 02, 2015, 12:49:52 PM
@SatelliteHome: I've made some code alterations to fix the errors you reported.  The undefined indexes should no longer cause errors to pop up in your error logs anymore with v1.21....

@Falcomfr: I've gotten the bugs worked out of ManageBoards.template.php, and I'm looking into the GenericMenu.php, trying to figure out exactly where that one's originating from....
Title: Re: Split Forum Mod
Post by: dougiefresh on February 02, 2015, 03:28:57 PM
Quote from: dougiefresh on February 02, 2015, 12:49:52 PM
@Falcomfr: I've gotten the bugs worked out of ManageBoards.template.php, and I'm looking into the GenericMenu.php, trying to figure out exactly where that one's originating from....
Lemme correct myself.  I've gotten the undefined index errors worked out of the ManageBoards.template.php file.

On to the GenericMenu.template.php file, that is where the error is reported from, but it is not the source of the error.  The source of the error is not defining the "label" element of the tabbed menu.  Unfortunately, I can't find the source within my mod.  So I don't believe that I will be able to resolve this without more information.....
Title: Re: Split Forum Mod
Post by: Falcomfr on February 03, 2015, 02:43:23 PM
Quote from: dougiefresh on February 02, 2015, 03:28:57 PM
So I don't believe that I will be able to resolve this without more information.....

Thank you,

So this error does not come from slipt forum mod ?

What informations you need?
Title: Re: Split Forum Mod
Post by: dougiefresh on February 03, 2015, 06:50:23 PM
Quote from: Falcomfr on February 03, 2015, 02:43:23 PM
So this error does not come from slipt forum mod ?
Well, I installed this mod on a clean SMF 2.0.9 install and went through the areas affected by the subforum mod.  I didn't see anything in the error logs  resulting from the mod being used/installed, so I'm pretty sure that it isn't this mod making those errors.....

Quote from: Falcomfr on February 03, 2015, 02:43:23 PM
What informations you need?
I MIGHT be able to narrow it down with a list of mods, as well as information on what other modifications that have been made to the forum.....  However, considering ANY incorrectly altered/coded code (including incorrectly altered/coded mods) could be causing that error, it would be a huge task to search for it.  And it's something that I frankly don't have enough time at present to figure out what might be causing that particular error in a sea of code....

EDIT: I can narrow it down based on my copy of GenericMenu.template.php....  It's somewhere in the Admin menu building code....  Try looking at Sources/Admin.php, as well as the hooks for the Admin menu....
Title: Re: Split Forum Mod
Post by: dougiefresh on February 23, 2015, 07:44:53 PM
Uploaded v1.21 - February 18th, 2015
o POLICY CHANGE: Mod upgrade capability limited to previous version of the mod.
o Resolved several undefined index errors within ManageBoards.template.php
o Resolved several undefined index errors within ManageSplitForums.php




@Everybody: I've made a few changes to this mod over the last 2 months, and while I don't remember everything that I've done, I think the changelog covers it all.  This update does NOT address compatibility and/or usage issues with Pretty URLs. 

"Previous version of the mod" is hereby defined as the version prior to this one.  In other words, you may upgrade from v1.20 to v1.21 using the v1.21 version for mod, but not from v1.19.  There are server compatibility issues with trying to upgrade the same file with multiple XML instructions, and this policy change makes these issues less likely to happen.

Additionally, I am unable to edit the first post of this thread.  However, I've been told there are changes in the works to address the "first topic" issue...
Title: Re: Split Forum Mod
Post by: SaltedWeb on February 27, 2015, 11:10:20 PM
Fresh install only SP installed as Mod multiple errors in Admin Logs,
Including those listed by Falcomfr .
Removed Split Forum and errors went away.
Installed fine but looks like its not stable for me.

Thanks for the try.
Title: Re: Split Forum Mod
Post by: Empire KickAss on February 27, 2015, 11:32:30 PM
Is there an video on this?
Title: Re: Split Forum Mod
Post by: Empire KickAss on February 27, 2015, 11:51:46 PM
I have an problem, It's working alright and it's showing on my secound domain but when I go to the new subforum, I see it, but whenever I try to click on the board I created or login, I get a 404 error. 

This is the main forum http://www.baysidegamers.com and I'm trying to create a subforum off of it to http://www.baysideves.com/forum/

List of M Mods.

1.   Split Forum Mod   
2.   404 on Missing Topics/Boards
3.   Custom Form Mod   
4.   Downloads System Pro   
5.   Simple Audio Video Embedder   
6.   Login Security   
8.   Enhanced PM System   
9.   Ad Seller Pro   
10.   SimplePortal   
12.   Add Favicon.ico Support   
13.   Remove Help From Menu   
14.   Alias Boards   
15.   Pretty URLs   
16.   'Read the Rules' Link Above Post Button   
17.   Newsletter Pro   
18.   BBPh Smilies   
19.   Registered Links   
20.   SMF Gallery Pro   
21.   Tapatalk SMF 2.0 Plugin   
22.   Unknown Actions      
23.   Notifications on Register   
24.   Arantor CAPTCHA   
25.   Badge Awards   
26.   The Rules

Please help thanks
Title: Re: Split Forum Mod
Post by: Empire KickAss on February 28, 2015, 06:24:14 PM
From the post above, this is the code.

.htaccess # PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: February 28, 2015, 17:50

RewriteEngine on
RewriteBase /

# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|emailuser)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(findmember|forum|portal|groups|help|helpadmin|im|jseditor)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(jsmodify|jsoption|lock|lockvoting|login|login2|logout|markasread)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|reminder|removepoll|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(reporttm|requestmembers|restoretopic|search|search2|sendtopic|smstats|suggest)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(spellcheck|splittopics|stats|sticky|theme|trackip|about:mozilla|about:unknown)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(unread|unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile|who)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(\.xml|xmlhttp)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

# SUBFORUM MOD BEGINS
RewriteEngine on
Options +FollowSymlinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*)/(.*) ../../$1/$2
# SUBFORUM MOD ENDS

index.php
<?php
require_once('/home3/empire/public_html/index.php');
?>
Title: Re: Split Forum Mod
Post by: dougiefresh on March 05, 2015, 11:39:30 AM
@Empire KickAss: Even though efforts to make this mod compatible with Pretty URLs have been made, it still does not work properly with Pretty URLs.  I haven't looked at the mod in a few months to make any corrections, but maybe I will be able to in the upcoming week or so.  That's the best I can promise at the moment.

@SaltedW:  It would be helpful if you can give more information about what failed, what errors, etc....  I can't fix it without a lot more information from you.
Title: Re: Split Forum Mod
Post by: SaltedWeb on March 05, 2015, 10:36:04 PM
Quote from: dougiefresh on March 05, 2015, 11:39:30 AM

@SaltedW:  It would be helpful if you can give more information about what failed, what errors, etc....  I can't fix it without a lot more information from you.

I thank you,, for me it was many errors I see other reports. I tried it on a clean site same issue.
So just went a different route, and used two domains on my server. This would have been easier and way faster your way.
But today finished the move and changes after a weeks work or well its how it goes. Couldn't tell you the errors, but as I previously put was duplicates of what others had here. 

Title: Re: Split Forum Mod
Post by: Empire KickAss on March 22, 2015, 02:09:49 AM
Quote from: dougiefresh on March 05, 2015, 11:39:30 AM
@Empire KickAss: Even though efforts to make this mod compatible with Pretty URLs have been made, it still does not work properly with Pretty URLs.  I haven't looked at the mod in a few months to make any corrections, but maybe I will be able to in the upcoming week or so.  That's the best I can promise at the moment.

Hows it going? when Do you think that the mod will work 100% with the URL? It's been weeks past and I gotta get that part of the site up and running by the end of the month.  When you think it be done by?
Title: Re: Split Forum Mod
Post by: Kindred on March 22, 2015, 06:51:09 AM
why even bother with prettyurls?
They serve no real purpose with regards to SEO and they cause issues with mods... (like this)
Title: Re: Split Forum Mod
Post by: n00bmonkey on March 22, 2015, 07:57:02 AM
Not to mention a htaccess rewrite on every page probably gives you a performance penalty for SEO lol
Title: Re: Split Forum Mod
Post by: dougiefresh on March 22, 2015, 02:42:40 PM
@Empire KickAss: Well, I've been working mandatory 7 days a week for the past few weeks, taking very little time off for doctors appointments and such....  This mod or any other has not been a priority in my life.  I apologize if this is inconvenient for you....
Title: Re: Split Forum Mod
Post by: iain sherriff on March 30, 2015, 11:10:28 AM
Hi
Installed without ant problem and works as it should....much admired Mod  :)

Is there a way to stop people registering to the subforum.........or forcing them to regiter with the main forum ?
Title: Re: Split Forum Mod
Post by: Greygal on March 30, 2015, 04:37:03 PM
When they register on one, they are members of both, as the subforum is using the same user database.

You should be able to turn off new registrations in Admin > Members > Registration > Settings for the subforum and/or the main forum separately.



Title: Re: Split Forum Mod
Post by: iain sherriff on March 30, 2015, 05:14:41 PM
Thanks........for some reason when I turn off registration on my sub forum it also turns it off on the main ?

I realise the dB is shared and the fact that people are members of both does not matter, it would judt suit the layout and instructions if they had to register on the main forum   :)
Title: Re: Split Forum Mod
Post by: Greygal on March 30, 2015, 05:27:25 PM
Hrm... I could have sworn that registration settings were saved separately for the main forum and the subforum... must not be remembering right! 

A quick-and-easy solution might be to just edit the theme for the subforum to remove the link to the registration form, maybe?

Title: Re: Split Forum Mod
Post by: iain sherriff on March 31, 2015, 04:59:38 AM
Thanks again :)
I was thinking there may be a way to "globally" redirect

/forum1/index.php?action=register

to

/index.php?action=register

but don't know how to do it
Title: Re: Split Forum Mod
Post by: Empire KickAss on April 02, 2015, 08:30:37 PM
Quote from: dougiefresh on March 22, 2015, 02:42:40 PM
@Empire KickAss: Well, I've been working mandatory 7 days a week for the past few weeks, taking very little time off for doctors appointments and such....  This mod or any other has not been a priority in my life.  I apologize if this is inconvenient for you....

I have it working 100%, is there away for Pretty URLs works on the main site? My Url looks off putting without Pretty URLs
Title: Re: Split Forum Mod
Post by: dougiefresh on April 11, 2015, 07:36:33 PM
@Everybody: I'm working to resolve the errors that have been reported in this mod.  Please be patient, as I've been also working to convert all my other mods to work with SMF 2.1 Beta 1.  This one will be converted as well, once the bugs are taken care of....  I also apologize for half-ass fixing this mod, as the modifications for Pretty URLs seem to be more complex than I expected.

Quote from: Empire KickAss on February 27, 2015, 11:32:30 PM
Is there an video on this?
@Empire KickAss: I don't understand what you're asking?  Are you asking for an instructional/tutorial video about using this mod?  If so, no there isn't one yet and there are no plans currently to make one.

Quote from: Empire KickAss on April 02, 2015, 08:30:37 PM
I have it working 100%, is there away for Pretty URLs works on the main site? My Url looks off putting without Pretty URLs
@Empire KickAss: I've implemented an option to disable Pretty URLs per subforum in the next mod version, per your request.

Quote from: iain sherriff on March 31, 2015, 04:59:38 AM
I was thinking there may be a way to "globally" redirect
@iain sherriff: I've implemented an option to globally redirect all registration requests to the Primary forum in the next mod version, per your request.

Quote from: Greygal on March 30, 2015, 05:27:25 PM
Hrm... I could have sworn that registration settings were saved separately for the main forum and the subforum... must not be remembering right! 
@Greygal: No, like most forum options, the registration options are globally shared.  Do you need to be allow to disable registration per subforum?
Title: Re: Split Forum Mod
Post by: Empire KickAss on April 11, 2015, 09:32:42 PM
Quote@Empire KickAss: I've implemented an option to disable Pretty URLs per subforum in the next mod version, per your request.

Thanks, Thanks for your work  ;)
Title: Re: Split Forum Mod
Post by: TomW on April 22, 2015, 09:30:47 PM
dougiefresh, thank you for your efforts; it is appreciated.
Title: Re: Split Forum Mod
Post by: dougiefresh on April 24, 2015, 07:34:37 PM
UPDATE: I've gotten the Modify Boards UI to successfully change which category that a board is assigned to, but still haven't gotten the board order thingy to work.  I've also implemented an online version check that will show if your install of Split Forum Mod is up to date on the SubForums' Settings page.  I've got to fiddle with the Pretty URLs compatibility still, but hopefully will have it working within the next week or so....  Thought I'd update y'all on my progress....
Title: Re: Split Forum Mod
Post by: dougiefresh on June 06, 2015, 04:35:35 PM
Uploaded v1.22 - June 6th, 2015
o Fixed Modify Board UI so that boards can be moved between subforums & categories.
o Added online version check to the Split Forum Mod settings page.
o Fixed package-info.xml to remove Subs-SplitForumAdminHooks.php upon uninstall.
o Added an option to enable or disable Pretty URLs per subforum.
o Added an option in Subforum Settings to redirect registration attempts to Primary forum.
o Resolved some undefined variables and index error within ManageSplitForums.php
o Fixed an undefined variable error in ManageBoards.php.
o Moved SubForums admin area from Forum section to the Configuration section.




@Everybody:  I've been sitting on this update for a while, and decided it was past time to release it.  No progress has been made since April 24th, 2015, so pretty much nothing happened since then....  I've had to fix way too many other issues in other mods, and I finally have caught up.  I'll be working on some other bug fixes for the next version....
Title: Re: Split Forum Mod
Post by: dougiefresh on June 18, 2015, 05:25:10 PM
Uploaded v1.23 - June 18th, 2015
o Fixed Modify Board UI so that board order can be changed correctly.
o Fixed Modify Board UI so that category list doesn't disappear when changing subforums.
o Modified installation process so that subforum .htaccess files are updated properly.
o Modified Pretty URL source code to write the base folder to .htaccess correctly.




@Everybody: Because of the number of changes required for compatibility with SMF 2.1, I am excluding those changes from this version of the mod.  In addition, I think I've fixed compatibility with the Pretty URLs mod.  Let me know if this doesn't solve the issues....
Title: Re: Split Forum Mod
Post by: sangham.net on June 18, 2015, 09:06:06 PM
It's always a pleasure to see Mr dougiefresh's effort and care about wishes and problems of others he would be able to release. Sadhu!
Title: Re: Split Forum Mod
Post by: dougiefresh on June 26, 2015, 10:29:48 AM
Uploaded v1.24 - June 25th, 2015
o Updated for SMF 2.1 Beta 1
o Modified ManageSplitForums.template.php to use 2.1-styled appearance under SMF 2.1.
o Modified Subs-SplitForumAdminHooks.php to load css file for SMF 2.1 instead of SMF 2.0.
Title: Split Forum Mod - Installation Failure
Post by: rtwingfield on July 02, 2015, 10:59:35 AM
Another member suggested that I post to this thread . . .perhaps a broader audience for the question.

http://www.simplemachines.org/community/index.php?topic=537854.0 (http://www.simplemachines.org/community/index.php?topic=537854.0)
Title: Re: Split Forum Mod
Post by: dougiefresh on July 02, 2015, 04:30:48 PM
Quote from: rtwingfield on July 02, 2015, 09:28:58 AM
Just installed SMF 2.0.10 . . .clean fresh install . . .working as advertised.

Tried to install Split Forum Mod . . .encountered some problems . . .reran a time or two and the mod_install.php script simply reports

Congratulations! You have successfully installed this mod!

Base SMF system does not show mod as installed; the admin functions are not available; no additional DB tables were created.

Running mod_uninstall.php complains:

  • Database Error
    Unknown column 'forumid' in 'order clause'
    File: /usr/local/www/smf-2.0.10/mod_uninstall.php
    Line: 19

Some flag or file (table element?) must be set that indicates that the mod was successfully installed . . .but obviously is wasn't, so how do I reset or delete  whatever to enable a successful rerun?
I've just installed the Split Forum Mod on my localhost and it installed properly for me....  Make sure that the credentials for MySQL allow for full access to the database in question, as this MAY be part of your issue....

It's possible to remove the mod from the install history by opening up your phpMyAdmin, navigating to {db_prefix}log_packages (where {db_prefix} is the prefix for your forum) and delete the last entry with the following package ID:Dougiefresh:Split_Forum
Using phpMyAdmin, your MySQL query (assuming your forum prefix is smf_),  should read:
DELETE FROM `smf_log_packages` WHERE package_id = 'Dougiefresh:Split_Forum'
PLEASE NOTE that doing so only deletes the record of installation of the mod.  It does nothing to the source and template files of your forum!

For future reference, it's always a good idea to point questions in the thread for the mod that you're having problems with, instead of posting questions in other forums asking for help with a particular mod...
Title: Re: Split Forum Mod
Post by: rtwingfield on July 02, 2015, 11:17:41 PM
First, apologies for initially posting on the "wrong" thread (I'm still learning the protocols).  I wasn't sure if the issue involved the base SMF system, or the mod, and I'm still not.   

Regardless, I have deleted and reinstalled both the SMF-2.0.10 base (successfully) and then the  Split_Forum_Mod . . .with the same failing results.  I think this may be an installation script path issue.  On the base install, I specify, "https://archaxis.net/smf-forums", an alias, as the URL to the installed forum software. 

In my ./Apache24/httpd.conf file, I alias the system as follows:

    Alias /smf-forums/ "/usr/local/www/smf-2.0.10/"
    <Directory "/usr/local/www/smf-2.0.10/">
        Options +Includes -Indexes
        AllowOverride all
        Require all granted
        RewriteEngine On
        RewriteOptions Inherit
        DirectoryIndex index.php
    </Directory>


Notice the actual installation directory path and the alias, and the -Indexes option.

This technique is what I use regarding other applications such as phpMyAdmin, Zen-Cart, WebCalendar, etc., . . .all incorporate the MySQL database, and all work well.  Reason for this, . . .still locates the application software within the /www hierarchy but outside of the /www/vhosts level; therefore, they are only browser accessible via the http aliases.

So, the mod_install.php only displays, "Congratulations! You have successfully installed this mod!", but no, it has failed, no additional DB tables have been created, the mod's additional admin options to create sub-forums are not enabled, and the {db_prefix}log_packages table is empty.

Is your Split Forum Mod looking for "hard-coded" paths and base system naming conventions.
(. . .asking this question before I dig into the code.)
Title: Re: Split Forum Mod
Post by: dougiefresh on July 03, 2015, 10:44:35 AM
I have to assume you're installing the mod via the Package Manager, correct?  Cause that's what the mod package is designed for....  It can be manually installed, but it really is a pain to do (primarily because of the number of operations)...

The mod_install.php script handles some of the "nasty" little details that are essential for setting up the subforum settings, while mod_uninstall.php attempts to clean up the forum and make it "livable" without the mod....

The db_install.php script actually handles the database additions, whereas db_uninstall.php script handles the reorganization of the categories so that they are in order first by forum ID, then category order....

The add_remove_hooks.php script inserts and removes the hooks necessary for this mod to function...
Title: Re: Split Forum Mod
Post by: rtwingfield on July 03, 2015, 12:42:26 PM
With apologies, your assumption is wrong, sir.  I'm an old programmer and I started by first hauling down the tarball for the base smf_2-0-10_install.tar.gz system, and then the Split_Forum_Mod_v1.24.zip.  After first successfully installing the base system, I then unzip'ed the the latter (tar -xvf Split_Forum_Mod_v1.24.zip) into a temporary directory, looked for an instructional installation README, script, etc. and found none; consequently, preparing for battle, I moved some objects around, pointed my browser to the mod_install.php but at that point, things began to fail.

I have now used the built-in Package Manager feature and it worked as advertized . . .very smooth and easy -- my compliments!   Somewhere lost in the documentation (see my attached reading list), I was unaware of the Package Manager feature and I simply did not appreciate its significance.  If I may make a suggestion, I would clarify the significance of the Package Manager feature and increase its standout visibility in the documentation for the benefit of new first-time users.

I just lost a very good friend who was always saying, "This is going to make perfect sense . . .once I understand it.", so now I do.

BTW & FYI, I have been a user/provider of the earlier SMF Forum 1.something for several years.  That forum has been decommissioned (intended users simply refused to use it).  Wiped clean, I've started fresh with the v2.0.10 and plan to present it to a new group of users that will have no choice but to use it (policy!). 

Title: Re: Split Forum Mod
Post by: dougiefresh on July 03, 2015, 01:14:48 PM
 ;D LOL!!!!  Figures!  :P  I kinda thought that you were somehow attempting a manual installation, but I had to ask...  I'm glad that the mod works for you.  Let me know if there is anything more I can help with!
Title: mod_rewrite - Strange Behaviour
Post by: rtwingfield on July 04, 2015, 03:46:03 PM
I cannot configure the sub-forums system to route to the requested sub-forum(s).  If I create a sub-forum/forum2,then  the SubForum Web Address (URL):  (after a refresh) displays http://https://archaxis.net/smf-forums/forum2

Notice the http://https:// syntax.  This results in rerouting via mod_rewrite?, to . . .of all things, an Error 404 - Not Found displayed on a http://www.homeimprovement.com/archaxis.net/smf-forums/forum2 website, which also includes some gratuitous advertisements. 

Regarding this, I have found this testy discussion:  http://forums.mozillazine.org/viewtopic.php?p=13394957#p13394957  . . .check it out, read JayhawksRock's  FWIW.  It'll be a cold day in hell before I ever purchase anything from homeimprovement.com.  I'd like to tear out the tonsils of the @$$hole that dreamed up this scheme   >:(

So . . .how is this rewrite scheme finding it's way in to the SplitForum scenario?  Note also that if I manually correct the query address to https://archaxis.net/smf-forums/forum2/, then only the primary base web page will be displayed.

I've attached an example copy of the SubForum settings . . .and I've salted a couple of "debug echos" in the code:


# php index.php | less

GOT HERE in ./forum2/index.php

Notice: Undefined index: SERVER_NAME in /usr/local/www/smf-2.0.10/Sources/Load.php on line 148
GOT HERE in ./Sources/Load.php:  $host=<>
Notice: Undefined index: REQUEST_URI in /usr/local/www/smf-2.0.10/Sources/Load.php on line 150


. . .what am I doing wrong?


Title: Re: Split Forum Mod
Post by: dougiefresh on July 04, 2015, 04:33:10 PM
You're not doing anything wrong.  I made the assumption during coding that subforums (or the primary forum) would start with http://.  So it is an issue of the correcting the mod's assumption....

Can you replace your Sources/ManageSplitForums.php file (the file with the erroneous assumption) with this attachment, then try to reconfigure the subforum settings and tell me if this fixes the issue you see?  Thanks in advance....

EDIT: If successful, this constitutes that entirety of the upgrade to v1.25....
Title: Re: Split Forum Mod
Post by: rtwingfield on July 04, 2015, 04:35:58 PM
I know what is happening . . .what was wrong with my configuration assumption(s).

When the SubForum Web Address (URL): is simply specified as  archaxis.net/smf-forums/forum2 then everything will be fine.  The system will prefix http:// to the address string.

If you specify http://archaxis.net/smf-forums/forum2 then the system is still happy and nothing appears to have changed.

However, if you specify https://archaxis.net/smf-forums/forum2 then the system will still prefix http:// to the https://archaxis.net/smf-forums/forum2 string resulting in the concatenated string http://https://archaxis.net/smf-forums/forum2This will also happen if you change http:// tp https://.

. . .which will result in this piece of work http://forums.mozillazine.org/viewtopic.php?p=13394957#p13394957 (http://forums.mozillazine.org/viewtopic.php?p=13394957#p13394957) that I described in my previous post.

. . .who'd a' thought?
Title: Re: Split Forum Mod
Post by: rtwingfield on July 04, 2015, 04:41:06 PM
I was posting just as you posted the following:

Quote from: dougiefresh on July 04, 2015, 04:33:10 PM
You're not doing anything wrong.  I made the assumption during coding that subforums (or the primary forum) would start with http://.  So it is an issue of the correcting the mod's assumption....

Can you replace your Sources/ManageSplitForums.php file (the file with the erroneous assumption) with this attachment, then try to reconfigure the subforum settings and tell me if this fixes the issue you see?  Thanks in advance....

Certainly be glad to help with the test.  looks like it could involve a PCRE  oversight?
Title: Re: Split Forum Mod
Post by: dougiefresh on July 04, 2015, 04:43:42 PM
Quote from: rtwingfield on July 04, 2015, 04:41:06 PM
looks like it could involve a PCRE  oversight?
Huh?  What's a PCRE?  Yes, I looked it up before asking.....
Title: Re: Split Forum Mod
Post by: rtwingfield on July 04, 2015, 04:55:33 PM
Actually, I've NEVER thought there was anything "regular" about a REGEX or PCRE. I think "irregular" would be a better word . . .or "obtuse expression"   ;)

BTW, I just FTPd the ./Sources/ManageSplitForums.php file to the server.  I'll let you know the results of the test.
Title: Re: Split Forum Mod
Post by: dougiefresh on July 04, 2015, 04:59:27 PM
Oh.... I'm getting better at regular expressions, but no, this particular problem doesn't involve regular expressions at all....

If this is successful, this constitutes that entirety of the upgrade to v1.25....
Title: Re: Split Forum Mod
Post by: rtwingfield on July 04, 2015, 05:17:43 PM
There was a syntax problem with the string replace instruction.  I found it . . .the two optional replacements just needed to be "or'ed" as follows: 


221         $arr['forumdir'] = str_replace('http://', '' | 'https://', '', $arr['forumdir']);
222      // $arr['forumdir'] = str_replace('http://', '', str_replace('https://', '', $arr['forumdir']);


BTW, are you here in the US of A?   . . .and working on the 4th of July ;D
Title: Re: Split Forum Mod
Post by: dougiefresh on July 04, 2015, 07:45:21 PM
Quote from: rtwingfield on July 04, 2015, 05:17:43 PM
There was a syntax problem with the string replace instruction.  I found it . . .
:o Oops...  Fixed it and attached the new version to this post.

Quote from: rtwingfield on July 04, 2015, 05:17:43 PM
the two optional replacements just needed to be "or'ed" as follows: 

221         $arr['forumdir'] = str_replace('http://', '' | 'https://', '', $arr['forumdir']);
222      // $arr['forumdir'] = str_replace('http://', '', str_replace('https://', '', $arr['forumdir']);

Pretty sure the "or" thingy doesn't work like that.   But I tried it anyway in a test script...  The php statement you gave, while technically valid, produced nothing.

Quote from: rtwingfield on July 04, 2015, 05:17:43 PM
BTW, are you here in the US of A?   . . .and working on the 4th of July ;D
Yup.  In Tennessee, USA....  I'm on vacation since the 3rd thru next week.
Title: Re: Split Forum Mod
Post by: rtwingfield on July 04, 2015, 10:53:49 PM
Quote from: dougiefresh on July 04, 2015, 07:45:21 PM
Quote from: rtwingfield on July 04, 2015, 05:17:43 PM
the two optional replacements just needed to be "or'ed" as follows: 

221         $arr['forumdir'] = str_replace('http://', '' | 'https://', '', $arr['forumdir']);
222      // $arr['forumdir'] = str_replace('http://', '', str_replace('https://', '', $arr['forumdir']);

Pretty sure the "or" thingy doesn't work like that.   But I tried it anyway in a test script...  The php statement you gave, while technically valid, produced nothing.

How odd. . .?  I diff'ed the version that I "fixed" against the latest version that you attached and found the following:

# diff ManageSplitForums.php 'ManageSplitForums(1).php'
<    $arr['forumdir'] = str_replace('http://', '' | 'https://', '', $arr['forumdir']);
< // $arr['forumdir'] = str_replace('http://', '', str_replace('https://', '', $arr['forumdir']);
-
>    $arr['forumdir'] = str_replace('http://', '', str_replace('https://', '', $arr['forumdir']);


Your latest version is is identical to this afternoon's earlier version.  You can see that I commented-out the construct that was causing a syntax error and the or'ed construct is working in my installation with no complaints.

Just for chuckles and grins, I went back and reversed the commented lines
221      // $arr['forumdir'] = str_replace('http://', '' | 'https://', '', $arr['forumdir']);
222         $arr['forumdir'] = str_replace('http://', '', str_replace('https://', '', $arr['forumdir']);


and again I get the

Parse error: syntax error, unexpected ';' in /usr/local/www/smf-2.0.10/Sources/ManageSplitForums.php on line 222

. . .and of all things, what does it mean by unexpected semi-colon . . .crikey! you gott'a have one at the end of the php instruction.

My version of PHP is 5.6.10.   What are you using?  Regardless, I've gone back to the or'ed syntax and all is well.  I'll keep looking for an explanation.


. . .well, it sounds like the fireworks at the Pleasant Valley Country Club here in Little Rock, AR are over.  Hope you're having some quality time off (don't dwell on this issue).  BTW, I've worked a lot of projects in Memphis -- where in TN are you located?
Title: Re: Split Forum Mod
Post by: dougiefresh on July 06, 2015, 10:28:37 AM
Uploaded v1.25 - July 6th, 2015
o Fixed code that made the assumption all subforums would start with http://.




@rtwingfield: I really don't know how I managed to miss that a second time....  I'm near Murfreesboro.
Title: Display only Boards Associated with Subforum on Edit Member Group Page
Post by: rtwingfield on July 07, 2015, 05:46:52 PM
I have found this comment by searching this post:
QuoteOn the Admin -> Forum -> Boards page using the primary subforum, the categories and boards are seperated by which subforum they belong to.  On secondary subforums, only those categories and boards that belong to that subforum show up.
and it works very well; however, on the Edit Membergroup -> show boards page, categories and boards  from other subforums are commingled (see the attached image).  My subforums have many identical or similar occurrences and this makes for a very difficult task to differentiate between the subforums. 

Have I overlooked an option to sort the categories and boards as subsets of the associated subforum?

Title: Re: Split Forum Mod
Post by: dougiefresh on July 07, 2015, 06:09:04 PM
Quote from: rtwingfield on July 07, 2015, 05:46:52 PM
I have found this comment by searching this post:
QuoteOn the Admin -> Forum -> Boards page using the primary subforum, the categories and boards are seperated by which subforum they belong to.  On secondary subforums, only those categories and boards that belong to that subforum show up.
and it works very well; however, on the Edit Membergroup -> show boards page, categories and boards  from other subforums are commingled (see the attached image).  My subforums have many identical or similar occurrences and this makes for a very difficult task to differentiate between the subforums. 

Have I overlooked an option to sort the categories and boards as subsets of the associated subforum?
Good eye!  I completely missed that one.....  Let me see what I can do about that one....
Title: Re: Split Forum Mod
Post by: rtwingfield on July 07, 2015, 09:16:10 PM
. . .you know, while you're at it, this could probably become a problem, too, if group names are not "spelled" with a prefix to identify the associated subforum.

The MPCATA (Milton Pitts Crenchaw Aviation Training Academy) are member-groups in that subforum, while all CAP* are member-groups associated with the Civil Air Patrol subforum.   (See the attached image.)

Regarding sub-setting these lists, I suspect that SELECT FROM WHERE sql queries needs their "I"s crossed and "T"s dotted.

. . .sorry to be such a pest  ;)
Title: Re: Split Forum Mod
Post by: dougiefresh on July 08, 2015, 06:56:54 PM
I could make those modifications, even though they involve as many as 30 source files and probably multiple template files....  Keep in mind that other mods could refer to the membergroups table, too, and those mods not understanding that certain membergroups are assigned to certain subforums might lead to undesirable results...  (Can't imagine the negative effects would be too bad, though)  I'll see what I can do....

I've got the source modified on the board listing part of the editing membergroup template.  I've got to figure out how I want to modify the template itself in order to display the subforums....
Title: Re: Split Forum Mod
Post by: rtwingfield on July 09, 2015, 06:56:17 PM
First, let me thank you for your attention to this scenario.  From an  old programmer's experience, I know that you can't just toss something into a system without exhaustive testing and evaluation.

That said, I'm looking at the design of the sub-forum concept from two points of view:

1) From a maintenance and support perspective (this is the programmer talking), I like the idea of one database schema, and one application code installation.  When a new version release is available, or a modification necessary, then only one upgrade has to be installed.

2) From a marketing and sales point of view, if I am installing the system on a platform that will serve multiple entities (as in a "cloud" or what we used to call a time-sharing service bureau environment), for example, a federal agency, a regional warehouse distribution center, and a financial institution,  and each of the entities want to have their own administrator, then these administrators are going to be uncomfortable and probably "put off" when they see registered members associated with the other entity sub-forums appear in a member list.  Same thing regarding category and  boards lists, and so on.

I think you're already aware of this.

Of course I have to admit that I am not familiar with the nuances of the application code, and I haven't really explored the MySQL database schema, although I do use phpMyAdmin and I have taken a look at some of the table templates.  Never-the-less, I have invested considerable hours in learning to use the system and basically I like the visual presentation of the application.  Without changing any CSSs, I think you are suggesting that the SQL table templates (what I call a file record layout or in OS/400 speak, a data description specification) would be modified to include an additional table/row/element for forum-number.   This would become part of a primary key on each sub-forum table.  Essentially, this would represent a major system upgrade release. 

But perhaps I should have asked this first -- how do you describe or identify a "Sister Site"?
Title: Re: Split Forum Mod
Post by: dougiefresh on July 09, 2015, 07:19:52 PM
Damn, you're finding a lot of things to fix/address!  :P  It's going to take me a while to address all these issues....

Quote from: rtwingfield on July 09, 2015, 06:56:17 PM
1) From a maintenance and support perspective (this is the programmer talking), I like the idea of one database schema, and one application code installation.  When a new version release is available, or a modification necessary, then only one upgrade has to be installed.
That's the goal.

Quote from: rtwingfield on July 09, 2015, 06:56:17 PM
2) From a marketing and sales point of view, if I am installing the system on a platform that will serve multiple entities (as in a "cloud" or what we used to call a time-sharing service bureau environment), for example, a federal agency, a regional warehouse distribution center, and a financial institution,  and each of the entities want to have their own administrator, then these administrators are going to be uncomfortable and probably "put off" when they see registered members associated with the other entity sub-forums appear in a member list.  Same thing regarding category and  boards lists, and so on.
Well, regarding categories and boards, you could create multiple membergroups, each with their own permissions and board lists, so that one group can't browse the content of another subforums.  I can do something about the members appearing in the board index's Info Center....  However, the member table is meant to be shared between all subforums.  I don't know if I can do something to seperate them easily...

Quote from: rtwingfield on July 09, 2015, 06:56:17 PM
But perhaps I should have asked this first -- how do you describe or identify a "Sister Site"?
The idea for the "Sister Sites" concept came from someone who wanted to be able to allow their members to go to the other sites that are connected to the forum, whether it be to the primary forum or the other subforums.  Obviously, this is not ideal for forums demanding seperateness, but would work for related sites....
Title: Re: Split Forum Mod
Post by: Kindred on July 09, 2015, 08:17:46 PM
I will note that large changes to the database should be avoided -- because the more changes are made, the more chance that something will break in a future upgrade or will NOT be portable to the next version
Title: Re: Split Forum Mod
Post by: dougiefresh on July 09, 2015, 10:06:30 PM
Quote from: Kindred on July 09, 2015, 08:17:46 PM
I will note that large changes to the database should be avoided -- because the more changes are made, the more chance that something will break in a future upgrade or will NOT be portable to the next version
Agreed....
Title: Re: Split Forum Mod
Post by: dougiefresh on July 10, 2015, 03:02:38 PM
@rtwingfield:  Just for giggles, I looked under another place that the boards are listed: Permissions -> Board Permissions....  Fixes are needed there, too....

Also, I thought I'd post a pic detailing what the "Add Membergroup" page now looks like with the primary and at least one subforum.  Similar changes will come to both the Edit Membergroup page, as well as the Board Permissions page....  I should point out that when browsing these pages in a subforum, other subforum boards won't be shown, nor will the subforum selection tabs.

@Kindred: At most, these changes involve a single addition to the table(s) involved, as well as a few code alterations....  Nothing too serious, but geez....
Title: Re: Split Forum Mod
Post by: Kindred on July 10, 2015, 03:27:07 PM
The alternative, dougiefresh, is to add a new table or two with all of the extra sub-forum information and then JOIN it based on user ID, category ID or board ID

That way,, altering the core tables isnot an issue (that is the way my old company did it, when they modified 2.0RC3 to handle multiple sites with a single install...  I believe they read it into the context array for ease of access
Title: Re: Split Forum Mod
Post by: dougiefresh on July 10, 2015, 07:01:17 PM
UPDATE: Under the Membergroups section, I've completed modifications to the Add Membergroup page and the Edit Membergroup page to seperate the boards and categories by subforum for SMF 2.0.  Under the Permissions section, I've completed the same modifications for the Boards Permissions page.  I've got to do the same modifications for SMF 2.1 before I proceed to alter anything else on the mod....

I've found the code responsible for writing the online log (in Sources/Subs.php, function writeLog) and definitely can adapt it to add which subforum that user is browsing, as well as restrict the Info Center's display of members online to those surfing that particular subforum....  I will also need to alter the "Who's Online" action to filter out users by subforum as well....  I'm going to add a switch to enable this particular modification, that way the mod acts like it always has for those that want it to do so....
Title: Re: Split Forum Mod
Post by: Adrek on October 24, 2015, 06:09:32 PM
Does this mod have option to select global moderators for subforum?
Title: Re: Split Forum Mod
Post by: Adrek on November 04, 2015, 03:20:11 PM
Problem above was solved by creating additional forum profile.

Another question - is there any variable to check on which forum we are? I want to use it to hide selected categories on SMF Gallery.
Title: Re: Split Forum Mod
Post by: dougiefresh on November 04, 2015, 04:52:11 PM
Apologies about the lateness of the reply.  Things have been hectic for the last few weeks.....

Quote from: phantomm on October 24, 2015, 06:09:32 PM
Does this mod have option to select global moderators for subforum?
No, this mod does not have that ability yet.

Quote from: phantomm on November 04, 2015, 03:20:11 PM
Problem above was solved by creating additional forum profile.
Not sure what you mean by this statement....

Quote from: phantomm on November 04, 2015, 03:20:11 PM
Another question - is there any variable to check on which forum we are? I want to use it to hide selected categories on SMF Gallery.
$forumid is the global variable that holds which subforum that is being browsed at the moment by the script.  It is an index of the $subforum_tree global array, which contains information about all subforums contained within the forum install.  So this:
$subforum_tree[$forumid]
points to the current subforum.  In order to use either variable, make sure you declare them global.....
Title: Re: Split Forum Mod
Post by: Adrek on November 04, 2015, 04:59:17 PM
Thanks for pointing $forumid :) Everything works fine now.

Quote from: dougiefresh on November 04, 2015, 04:52:11 PM
Quote from: phantomm on October 24, 2015, 06:09:32 PM
Does this mod have option to select global moderators for subforum?
No, this mod does not have that ability yet.

Quote from: phantomm on November 04, 2015, 03:20:11 PM
Problem above was solved by creating additional forum profile.
Not sure what you mean by this statement....


I just created new forum profile with correct permissions and assigned it to boards on subforum :)
Title: Re: Split Forum Mod
Post by: Adrek on November 14, 2015, 04:09:56 PM
Again me :)

I'm trying to assign primary group for members registered from alias, but mod doesn't seem to see any groups?
Title: Re: Split Forum Mod
Post by: dougiefresh on November 14, 2015, 08:20:07 PM
Uploaded v1.26 - November 14th, 2015
o SMF 2.0.x: Modified Add Membergroup in order to group boards by subforum, then category.
o SMF 2.0.x: Modified Edit Membergroup in order to group boards by subforum, then category.
o SMF 2.0.x: Modified Board Permissions UI in order to group boards by subforum, then category.
o Fixed issue with primary membergroup per subforum setting not showing any membergroups.
o Removed "db_uninstall.php" and renamed other files to reduce confusion.




@phantomm: Thanks for the bug report!  This should solve this particular bug report.  I still have to implement the changes for SMF 2.1 that I implemented solely for SMF 2.0....
Title: Re: Split Forum Mod
Post by: Adrek on November 15, 2015, 04:56:35 AM
Thank you for update :)
Title: Re: Split Forum Mod
Post by: Adrek on November 15, 2015, 03:54:27 PM
Now I can select group for new members on alias, but new users do not have any group after registration.
Error log is empty.
Title: Re: Split Forum Mod
Post by: dougiefresh on November 18, 2015, 07:11:01 PM
Sorry for replying so late.  I will take another look....
Title: Re: Split Forum Mod
Post by: dougiefresh on November 19, 2015, 07:19:37 PM
Quote from: phantomm on November 15, 2015, 03:54:27 PM
Now I can select group for new members on alias, but new users do not have any group after registration.
Error log is empty.
That's weird.  I just created a new group named Blegh on my test forum, assigned it to the primary forum (forum id # 0), then logged out of my admin account and registered as a new user.  Opened the profile settings as the new user and saw that it was assigned to membergroup Blegh.....

Can you attach your Sources/Subs-Members.php so that I can see what is going on, please?
Title: Re: Split Forum Mod
Post by: Adrek on November 20, 2015, 02:49:48 PM
Now I see what is happening: I select group from dropdown, but after saving primary group is empty.
Title: Re: Split Forum Mod
Post by: dougiefresh on November 20, 2015, 04:53:42 PM
I figured out why that setting won't save: Wrong setting NAME.   ::)   I've fixed the subforum settings page for the next version.  Thanks for the bug report, phantomm!
Title: Re: Split Forum Mod
Post by: Adrek on November 20, 2015, 05:44:53 PM
I would never looked there :) for now I added group ID directly in database.

Thanks for finding fix so quickly :)
Title: Re: Split Forum Mod
Post by: dougiefresh on November 20, 2015, 08:20:23 PM
Uploaded v1.27 - November 20th, 2015
o Fixed issue where primary membergroup field on settings page wasn't set correctly in UI.
Title: Re: Split Forum Mod
Post by: Adrek on December 02, 2015, 02:49:20 PM
In ./Sources/ManageMembergroups.php function AddMembergroup is missing global $forumid
Title: Re: Split Forum Mod
Post by: dougiefresh on December 02, 2015, 07:44:03 PM
Quote from: phantomm on December 02, 2015, 02:49:20 PM
In ./Sources/ManageMembergroups.php function AddMembergroup is missing global $forumid
Thanks for the bug report!  It's fixed for the next version.  Before I can release it, I need to fix the SMF 2.1 stuff first.....
Title: Re: Split Forum Mod
Post by: Adrek on December 03, 2015, 11:15:04 AM
few more:
ManagePermissions.template.php: function template_by_board missing global $subforum_tree
ManagePermissions.php: function PermissionByBoard missing global $forumid
Title: Re: Split Forum Mod
Post by: dougiefresh on December 03, 2015, 01:14:25 PM
 :o  Damn, I missed those, too?!  It's been fixed for the next version....  Thanks again for the bug reports!
Title: Re: Split Forum Mod
Post by: dougiefresh on December 04, 2015, 08:31:40 AM
Uploaded v1.28 - December 2nd, 2015
o SMF 2.1: Modified Add Membergroup in order to group boards by subforum, then category.
o SMF 2.1: Modified Edit Membergroup in order to group boards by subforum, then category.
o SMF 2.1: Modified Board Permissions UI in order to group boards by subforum, then category.
o Fixed undefined variable errors in the Add & Edit Membergroup UIs, and Manage Permissions UI.
o Added code to restrict the display of users online in Who's Online to those in subforum.
Title: Re: Split Forum Mod
Post by: dougiefresh on December 30, 2015, 01:22:07 PM
Uploaded v1.29 - December 30th, 2015
o Added support for EZ Portal so that the blocks are subforum-restricted.
o Added support for EZ Portal UI so that blocks can be seperated by subforum.
o Fixed a template file error that causes the Manage Boards UI to crash.
o Fixed 4 issues within Recent.php that display wrong error message.
Title: Re: Split Forum Mod
Post by: eagled2 on December 31, 2015, 02:09:41 AM
Are there plans to add support for portamx and/or dream portal or do I need to ask the makers of those mods?
Title: Re: Split Forum Mod
Post by: Geor'G on December 31, 2015, 03:45:04 AM
It will support PortalMX?
Title: Re: Split Forum Mod
Post by: dougiefresh on December 31, 2015, 03:47:20 AM
Quote from: eagled2 on December 31, 2015, 02:09:41 AM
Are there plans to add support for portamx and/or dream portal or do I need to ask the makers of those mods?
I'll be honest with you: I wasn't planning on doing so, but if you are requesting me to do so, then I can.  The makers of those mods aren't likely to add support for this mod because this mod make database changes that aren't easily detected without more database queries, and will definitely cause errors if they are not checked for.
Title: Re: Split Forum Mod
Post by: Kindred on December 31, 2015, 07:43:30 AM
Also, portaMX has their own version of this sort of mod
Title: Re: Split Forum Mod
Post by: dougiefresh on December 31, 2015, 08:34:47 PM
UPDATE:  Dream Portal will not be supported by this mod, mostly because of the Dream Portal website that's been shut down.  After all, I can't make modifications to the source and template if I can't see for myself what the outcome is.  The mod comes with only one module, which is a PHP/HTML module, and it doesn't list the boards, so it becomes difficult to see what my changes produce.....  Until this situation changes in some way, I cannot support Dream Portal.
Title: Re: Split Forum Mod
Post by: dougiefresh on January 01, 2016, 08:10:45 PM
UPDATE: Okay, let me just say that I'm looking into Dream Portal support....  Possibilities exist where I didn't see them yesterday....

PortalMX looks like it might be easy easier to adapt for compatibility with this mod.

I've briefly looked at TinyPortal.  The blocks use the SSI functions, so they should be good to go.  However, I haven't looked too much at the UI....
Title: Re: Split Forum Mod
Post by: dougiefresh on January 05, 2016, 03:08:59 PM
UPDATE: My modifications to EzPortal were incomplete....  I am working to fix the issues for the next version.  I apologize to anybody who has run into these errors that I introduced.  Hopefully they will be fixed shortly....
Title: Re: Split Forum Mod
Post by: dougiefresh on January 19, 2016, 07:21:44 AM
Uploaded v1.30 - January 19th, 2016
o Added donate button to Subforum management page.
o Added several settings to subforum UI in order to control EzPortal per subforum.
o Added template changes for EzPortal running under SMF 2.1.
o Fixed issue with undefined array element error in ManageNews.php.
o Fixed issue where theme may not have been able to be changed in subforums.
o Fixed several issues with new EzPortal changes made in version 1.29.
o Moved some subforum init code from source files to Subs-SplitForum.php.
o Made numerous small fixes for better installation compatibility with other mods.
Title: Re: Split Forum Mod
Post by: Adrek on January 20, 2016, 04:26:19 PM
Thanks for update :)

Missing global $forumid in function Who() (file Who.php).
Title: Re: Split Forum Mod
Post by: dougiefresh on January 21, 2016, 10:41:10 AM
Quote from: phantomm on January 20, 2016, 04:26:19 PM
Missing global $forumid in function Who() (file Who.php).
Thanks for the report!  I've fixed it for the next version.
Title: Re: Split Forum Mod
Post by: dougiefresh on January 22, 2016, 08:12:00 AM
Uploaded v1.31 - January 22nd, 2016
o Fixed undefined variable error in Sources/Who.php.
Title: Re: Split Forum Mod
Post by: Falcomfr on March 02, 2016, 10:21:07 AM
Hey Dougiefresh,

I have a few questions about this mod. I did not update the mod how long, how to proceed to update it properly ? ( My version is 1.19)

I modified the sub file ( www / sources / sub.php ) to have multiple forums in 1 menu. You can see here : www.astrea-gaming.com (http://www.astrea-gaming.com) . If I put a day the version that he could be a problem ?

Is it possible to have the latest post / message to all forums ?

Thank you very much for this mod.
Falcom
Title: Re: Split Forum Mod
Post by: dougiefresh on March 02, 2016, 11:56:09 AM
Quote from: Falcomfr on March 02, 2016, 10:21:07 AM
I have a few questions about this mod. I did not update the mod how long, how to proceed to update it properly ? ( My version is 1.19)
You should first the forum into maintenance mode, in order to minimize your guests' confusion.  Then uninstall your current version and install the most recent.  Then take your forum out of maintenance mode...

Quote from: Falcomfr on March 02, 2016, 10:21:07 AM
I modified the sub file ( www / sources / sub.php ) to have multiple forums in 1 menu. You can see here : www.astrea-gaming.com (http://www.astrea-gaming.com) . If I put a day the version that he could be a problem ?
I wouldn't think that it would produce any issues.  However, a similar bit of functionality is provided by the mod, and it's called Sister Sites.  You definitely should disable that before you go back out of maintenance mode....

Quote from: Falcomfr on March 02, 2016, 10:21:07 AM
Is it possible to have the latest post / message to all forums ?
You can using ?action=unreadglobal, but only for unread messages.  Do you need more?
Title: Re: Split Forum Mod
Post by: Falcomfr on March 02, 2016, 04:03:35 PM
Many thanks :)
Title: Re: Split Forum Mod
Post by: tetaye on March 02, 2016, 07:30:54 PM
Hello dougiefresh, and thank you for your mod and the updates

I'm sorry if you already answered this question (I could not find if on the thread), but after installing the split mod on SMF 2.0.11, when I'm on admin menu, I can see the "Sister site" in the top menu, but when I quit to the forum or any other menu, the label "disappear". He still here, but we don't see it and we have to search him with the mouse cursor (I'm on SMF - Curve theme)
(http://img15.hostingpics.net/pics/399674Sanstitre1.png)

Furthermore, I have tryed to change the Sister Sites menu title to "Sous Forums", but nothing happen and I still have "Sister Sites" on the top menu (when I'm on admin menu of course).

At last, I don't manage to organize the categories on a sub-forum :
On sub-forum #1, I created the categorie "Fufufu" on first position, and after, a 2nd categorie "AAaaa" on order "After Fufufu".
Unfortunately, when I navigate to the sub-forum #1, categorie "AAaaa" appear before "Fufufu"...

thank you for your help, and I hope you will understand my issues.
Title: Re: Split Forum Mod
Post by: Colin on March 03, 2016, 02:50:04 AM
Hi Tetaye,

The best place to ask this would be in the respective support topic for this mod.
Title: Re: Split Forum Mod
Post by: tetaye on March 03, 2016, 04:34:38 AM
Isn't here ?

I just followed the "Support and comments for this mod" link on the Split Forum mod page (http://custom.simplemachines.org/mods/index.php?mod=3730) which brough me on this thread.
Furthermore, the previous discussions here seem to be support subjects (my questions are about Split forum mod).

My apologies if I made a mistake.
Title: Re: Split Forum Mod
Post by: Kindred on March 03, 2016, 07:07:38 AM
nope....  you made no mistake. This is the correct place. :)

I think Colin maybe posted before he completely woke up. :)
Title: Re: Split Forum Mod
Post by: dougiefresh on March 03, 2016, 01:08:44 PM
Uploaded v1.32 - March 3rd, 2016
o Fixed mods' "Sister Sites" functionality so that it works now.
o Fixed wrong permissions issue with creating new subforums.
o Fixed mod packages' redirect instruction in package-info.xml.
o Modified settings_install.php to fix permissions on subforums on install.




@tetaye: Thank you for reporting this bug!  It's been fixed.
Title: Re: Split Forum Mod
Post by: JerzyLS on March 05, 2016, 02:19:14 AM
Hello,

It's great modification for SMF. Working well.
But I have some issues with images on my server.
For example I created main forum, as main.forum.org
and subforum, as sub.forum.org

I have installed SMF Gallery and Member Awards and it's problem with images in the gallery and with member awards - blanks with no images on subforums. The URL of images is redirecting to sub.forum.org, but it should go to main.forum.org.
I think I should configure .htaccess but I have no idea, what I need to rewrite.

Any solutions?
Thanks
Title: Re: Split Forum Mod
Post by: JerzyLS on March 05, 2016, 05:43:46 AM
Here I'm attaching 500 Internal Errors and htaccess.

# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: March 4, 2016, 23:36

RewriteEngine on
RewriteBase

# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]

# Rules for: actions
RewriteRule ^(activate|admin|enotify|announce|attachapprove|buddy|calendar|clock)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mediapro|emailuser|findmember|groups|help|gallery|helpadmin|im)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(jseditor|jsmodify|jsoption|lock|lockvoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(markasread|mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notify|notifyboard|openidreturn|pm|post|post2|printpage|profile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quotefast|quickmod|quickmod2|recent|register|register2|reminder|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendtopic|shoutbox)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|stats|sticky|theme|trackip)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(about:mozilla|about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote|viewquery)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewsmfile|who|\.xml|xmlhttp)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

# SUBFORUM MOD BEGINS
RewriteEngine on
Options +FollowSymlinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*)/(.*) ../spolecznosc$1/$2
# SUBFORUM MOD ENDS
Title: Re: Split Forum Mod
Post by: JerzyLS on March 05, 2016, 01:13:33 PM
Okay, I got it!
Here is solution:

# SUBFORUM MOD BEGINS
RewriteEngine on
Options +FollowSymlinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*)/(.*) http://{rootforumURL}/$1/$2
# SUBFORUM MOD ENDS

Other issue:
During editing the board from root forum I have errors in logs:

8: Undefined offset: 0
{server path}/Themes/default/ManageBoards.template.php
Line: 422

Title: Re: Split Forum Mod
Post by: tetaye on March 05, 2016, 03:19:56 PM
Thank you for this new update dougiefresh.
Let's go try this !
Title: Re: Split Forum Mod
Post by: Falcomfr on March 07, 2016, 06:58:45 AM
Hey dougiefresh :)

?action=unreadglobal does not show all my forums. How it works ?

Thank you

Up ! I have update 1.31=>1.32 and now i have an error when i trying to access to my subforum.

i got this error :
Forbidden

You don't have permission to access /subforum2/index.php on this server.

help me  :-\
Title: Re: Split Forum Mod
Post by: dougiefresh on March 07, 2016, 08:19:44 AM
Can you post your .htaccess for me?
Title: Re: Split Forum Mod
Post by: Falcomfr on March 07, 2016, 08:22:26 AM
I can't copy  .htaccess of my subforum (i using filezilla)

http://www.astrea-gaming.com/index.php?action=admin;area=packages;sa=uninstall2;package=Split_Forum_Mod_v1.31.zip;pid=47
8: Undefined variable: db_prefix
Fichier: /home/astreagadq/www/Packages/temp/settings_uninstall.php
Ligne: 41


I got this error in Error Log
Title: Re: Split Forum Mod
Post by: Falcomfr on March 08, 2016, 10:34:06 AM
Please how to get back my subforum ? I must delete subforum folder with filzilla and create same subforum ?

Thx you Dougie
Title: Re: Split Forum Mod
Post by: JerzyLS on March 08, 2016, 01:54:49 PM
LikePosts didn't works on subforums.
It's possible to solve it?
Title: Re: Split Forum Mod
Post by: dougiefresh on March 08, 2016, 02:49:04 PM
Quote from: Falcomfr on March 08, 2016, 10:34:06 AM
Please how to get back my subforum ? I must delete subforum folder with filzilla and create same subforum ?
Try deleting your .htaccess file.  That may get rid of the error....  If that doesn't work, you'll have to delete the subforum folder and recreate it....

Quote from: JerzyLS on March 08, 2016, 01:54:49 PM
LikePosts didn't works on subforums.
It's possible to solve it?
Let me look into it.....

EDIT: In what way does it not work?
Title: Re: Split Forum Mod
Post by: Falcomfr on March 08, 2016, 03:41:33 PM
Yes my forum is back :) Thx

?action=unreadglobal does not show all my forums. How it works please?

I donate for support your mod Thx you again  :laugh:
Title: Re: Split Forum Mod
Post by: JerzyLS on March 08, 2016, 03:46:17 PM
Quote from: dougiefresh on March 08, 2016, 02:49:04 PM

EDIT: In what way does it not work?

There's no "like it" button in posts and don't display likes count under avatar on subforums.
On the root working fine.
Title: Re: Split Forum Mod
Post by: dougiefresh on March 08, 2016, 03:50:41 PM
Quote from: Falcomfr on March 08, 2016, 03:41:33 PM
Yes my forum is back :) Thx
Good to hear!  Try editing the subforum, which should should recreate the .htaccess file.  If the error returns after doing so, then let me know, please!

Quote from: Falcomfr on March 08, 2016, 03:41:33 PM
?action=unreadglobal does not show all my forums. How it works please?
Basically, the unreadglobal action calls the same code as the unread and [/b]unreadreplies[/b] action, just modified so that it is not restricted to a single subforum.

Quote from: Falcomfr on March 08, 2016, 03:41:33 PM
I donate for support your mod Thx you again  :laugh:
Thank you!  My paypal is [email protected]....

Quote from: JerzyLS on March 08, 2016, 03:46:17 PM
There's no "like it" button in posts and don't display likes count under avatar on subforums.
On the root working fine.
I'll look and see what I can do about this.....
Title: Re: Split Forum Mod
Post by: Falcomfr on March 08, 2016, 03:56:52 PM
Quote from: dougiefresh on March 08, 2016, 03:50:41 PM
Good to hear!  Try editing the subforum, which should should recreate the .htaccess file.  If the error returns after doing so, then let me know, please!
index.php was broken too, i have delete all subforum folder. It's ok now

Quote from: dougiefresh on March 08, 2016, 03:50:41 PM
Basically, the unreadglobal action calls the same code as the unread and [/b]unreadreplies[/b] action, just modified so that it is not restricted to a single subforum.

Yes but when i use this on my forum nothing appears
Title: Re: Split Forum Mod
Post by: dougiefresh on March 08, 2016, 04:04:57 PM
Quote from: Falcomfr on March 08, 2016, 03:56:52 PM
Yes but when i use this on my forum nothing appears
That's pretty much SMF's unread and unreadreplies function....  I can't explain why it does what it does....
Title: Re: Split Forum Mod
Post by: dougiefresh on March 08, 2016, 04:26:50 PM
Quote from: JerzyLS on March 08, 2016, 03:46:17 PM
There's no "like it" button in posts and don't display likes count under avatar on subforums.
On the root working fine.
On my localhost forum, I've installed both mods and they appear to install fine side-by-side without issue.  I had to set the permissions and which boards it is active in so that the "Like" button appears underneath the posts.  Have you done that yet?  Those settings are under Admin -> Configuration -> Like Posts....

Just a reminder: You may have to repeat the "selecting boards" action for every subforum....
Title: Re: Split Forum Mod
Post by: Falcomfr on March 08, 2016, 07:00:41 PM
Quote from: dougiefresh on March 08, 2016, 04:04:57 PM
That's pretty much SMF's unread and unreadreplies function....  I can't explain why it does what it does....

I just can see my primary forum with unreadglobal
Title: Re: Split Forum Mod
Post by: JerzyLS on March 09, 2016, 04:52:04 AM
Quote from: dougiefresh on March 08, 2016, 04:26:50 PM
Quote from: JerzyLS on March 08, 2016, 03:46:17 PM
There's no "like it" button in posts and don't display likes count under avatar on subforums.
On the root working fine.
On my localhost forum, I've installed both mods and they appear to install fine side-by-side without issue.  I had to set the permissions and which boards it is active in so that the "Like" button appears underneath the posts.  Have you done that yet?  Those settings are under Admin -> Configuration -> Like Posts....

Just a reminder: You may have to repeat the "selecting boards" action for every subforum....

But if I'm checking the boards on the first subforum, It's going to disabled on other.
Title: Re: Split Forum Mod
Post by: chuman on March 23, 2016, 10:45:11 PM
Hello I know in the settings it ays you can restrict the who's online based on subforum however i was wonering if there was a way to show posts on all forums, like the newst post on any sub forum an on the main forum, I could not find it in the settings and I searche the thread and did not find it there either.

Also, when I go to change the subforum url from domain.com/forum1 to domain.com/harrypotter it gives me an error and says the url cannot be found, are these changeable or do I need to do something special.
Title: Re: Split Forum Mod
Post by: dougiefresh on March 24, 2016, 08:55:31 PM
Quote from: chuman on March 23, 2016, 10:45:11 PM
Hello I know in the settings it ays you can restrict the who's online based on subforum however i was wonering if there was a way to show posts on all forums, like the newst post on any sub forum an on the main forum, I could not find it in the settings and I searche the thread and did not find it there either.
There is no way to do that currently in the mod.....  Hypothetically speaking, where would you envision this taking place?  On the Board Index?

Quote from: chuman on March 23, 2016, 10:45:11 PM
Also, when I go to change the subforum url from domain.com/forum1 to domain.com/harrypotter it gives me an error and says the url cannot be found, are these changeable or do I need to do something special.
It should be changeable.  I'll look into this bug report.....
Title: Re: Split Forum Mod
Post by: JerzyLS on April 08, 2016, 11:59:19 AM
How about LikePosts?

Does Split Forum Mod will suport SSL certificates?
Title: Re: Split Forum Mod
Post by: -Rock Lee- on April 08, 2016, 01:35:15 PM
Really great job thanks for the effort @dougiefresh :D also as usual here I leave translations to the Latin Spanish :laugh:


Regards!
Title: Re: Split Forum Mod
Post by: dougiefresh on April 08, 2016, 07:42:11 PM
@Rock Lee [BC]: I've added the translations to the mod for the next version!  Thank you again!

Quote from: JerzyLS on April 08, 2016, 11:59:19 AM
How about LikePosts?
:o  Damn....  I had forgotten about the LikePosts mod request!  I'll try to get that working for you....

Quote from: JerzyLS on April 08, 2016, 11:59:19 AM
Does Split Forum Mod will suport SSL certificates?
Um....  Good question....  Let me look into how the mod handles that, cause it's been a LOOOONG time since I've dealt with that code....
Title: Re: Split Forum Mod
Post by: Daegaladh on April 09, 2016, 02:10:09 PM
Hi, have you figured out how to make the Alias Boards mod work between subforums? If so, when will it be available? Thanks!
Title: Re: Split Forum Mod
Post by: dougiefresh on April 11, 2016, 05:08:06 PM
Quote from: Daegaladh on April 09, 2016, 02:10:09 PM
Hi, have you figured out how to make the Alias Boards mod work between subforums? If so, when will it be available? Thanks!
I'm not going to attempt to make Alias Board mod version 1.x work with the Subforum mod, mostly because the way they work is incompatible with the Subforum mod.....  I've been trying to get the version 2.x editions to work with the Subforum mod, without success so far....
Title: Re: Split Forum Mod
Post by: dougiefresh on April 11, 2016, 07:07:19 PM
UPDATE: In my test forum, I've got 2 boards: "Original Board" in subforum 0, and "Board Alias" as an alias to "Original Board" in subforum 1.  Currently, I can pull up the topic listing for "Original Board" from subforum 1.  However, when I try to view the topics, I get an error message indicating the board is on another subforum....  Getting closer and closer....

UPDATE 2: Fixed error message previously mentioned....  8)

UPDATE 3: compatibility with HTTPS protocol for redirection to another subforum should work with the latest version (unpublished as of right now).  Unfortunately, I have no way to test whether the functionality works as expected on my test forum....  All other HTTPS functionality should work as expected....

UPDATE 4: Bummer.... Wrong categories are shown in subforum 1 when clicking on any topic in the aliased board....
Title: Re: Split Forum Mod
Post by: dougiefresh on April 15, 2016, 01:01:14 PM
UPDATE:  I've dropped support for the Alias Boards v1.x mod and have got everything working with the Alias Boards v2.x mod, with exception of the Manage Boards UI.  I'm gonna try to get it operational later today, but it might be tomorrow, as I have a family get-together to go to this evening....
Title: Re: Split Forum Mod
Post by: dougiefresh on April 19, 2016, 04:03:54 PM
UPDATE: With the latest unpublished version, the Alias Boards (http://custom.simplemachines.org/mods/index.php?mod=1024) mod now works properly with the Split Forum Mod.  I'm now looking into compatibility with the Likes mod....
Title: Re: Split Forum Mod
Post by: JerzyLS on April 22, 2016, 01:24:09 PM
Ok.

How can I move links from "sister sites" to "home" as sub_buttons?
Title: Re: Split Forum Mod
Post by: dougiefresh on April 23, 2016, 06:25:22 PM
Uploaded v1.33 - April 19th, 2016
o SMF 2.0: Added full support for Alias Boards v2.x mod to this mod.
o Removed support for Alias Boards v1.x mod from this mod.
o Added option to move Sister Sites menu under the Home link in top menu.
o Added option to include current subforum in Sister Sites menu.
o Added support for Likes Post mod so that boards in all subforums are selectable in primary subforum.
o Added Spanish Latin translation by Rock Lee [BC] (http://www.simplemachines.org/community/index.php?action=profile;u=322597)




Quote from: JerzyLS on April 22, 2016, 01:24:09 PM
How can I move links from "sister sites" to "home" as sub_buttons?
This update should take care of this particular request.  Thank you!

Quote from: Daegaladh on April 09, 2016, 02:10:09 PM
Hi, have you figured out how to make the Alias Boards mod work between subforums? If so, when will it be available? Thanks!
This update addresses this particular request.  Please note that it is Alias Boards mod version 2.x, not the 1.x series!!  Thank you!
Title: Re: Split Forum Mod
Post by: JerzyLS on April 25, 2016, 02:30:17 PM
Dougiefresh, thanks for your attention.

I just found the important issue: When I switch on the cache on my board, to change for example the news I must clear the cache (main forum works fine in every time).
When I switch it off, it's working. Immediately.
Title: Re: Split Forum Mod
Post by: garyee on April 26, 2016, 04:26:30 AM
Hi,

I installed the mod (as the first mod)on a clean and fresh installation of the latest version (2.0.11) of SMF.
When I installed it there was an Error (in the ManageBoards.template.php file). I suspect that it is due to the compatibility to the Board alias mod, but I am not sure.

And secondly I created a first subforum, but there was no folder nor index.php created.
In the description it says "This mod can create the folder and generate an "index.php" if required"
What can I do to make it create those two? Or how can I do it manually ?
Title: Re: Split Forum Mod
Post by: JerzyLS on April 26, 2016, 04:41:13 AM
Ignore this.

It's doesn't important for you, it's from Alias mod.
Title: Re: Split Forum Mod
Post by: garyee on April 26, 2016, 04:44:10 AM
Quote from: JerzyLS on April 26, 2016, 04:41:13 AM
Ignore this.

It's doesn't important for you, it's from Alias mod.

okay and thanks for the quick answer.
And for my second problem? Is there somewhere I can get a sample index.php for my subforum.
Or how can I make the mod generate the folder and the file for me ?
Title: Re: Split Forum Mod
Post by: garyee on April 26, 2016, 07:06:30 AM
Hi,

so I solved the "issue":
If one want's to have a subforum like "mydomain/specialForumName", one must not forget to change the "Path to the sub folder" ( in the "DON'T change these settings unless.." section),
or the .htaccess accordingly. If not the standard folder name (forum1) will be applied and if there is no .htaccess, mydomain/specialForumName will gibe a 404 HTTP Error.

But now there is another Problem. I changed the the URL of my root-Forum  from mydomain/ to mydomain/specialForumName.
If I want to change any setting now, it won't work (even for some core stuff like  "Default time format" ).
Does anyone have an idea?
Title: Re: Split Forum Mod
Post by: JerzyLS on April 27, 2016, 04:51:53 AM
Index should be generated immediately.
But if it don't generating your index, this is content of mine.

<?php
require_once('[path to your forum root on the server]');
?>

QuoteIf I want to change any setting now, it won't work (even for some core stuff like  "Default time format" ).

I just reported it above - try to clear the cache or disable it.
Title: Re: Split Forum Mod
Post by: dougiefresh on April 29, 2016, 09:18:31 AM
@garyee: I'm sorry I haven't been able to reply sooner, as my work schedule has been hectic.  I didn't think that anyone would try to change the primary subforum's location, so I didn't protect against that possibility.... 

Attached is a replacement Subs-SplitForumHooks.php file that you need to place in your forum's Sources folder.  This SHOULD restore the default paths to the subforum tree array, fixing any issues caused by you changing the primary forum's path/URL....

Quote from: JerzyLS on April 27, 2016, 04:51:53 AM
Quote from: garyee on April 26, 2016, 07:06:30 AM
If I want to change any setting now, it won't work (even for some core stuff like  "Default time format" ).
I just reported it above - try to clear the cache or disable it.
I've seen this issue happen with my localhost forum, even with a plain vanilla install (no mods installed), and can't understand why this issue occurs....  I've fixed it temporarily by changing the permissions back to what they should be, but for some reason, they get changed back to a read-only status....  I would suggest changing your permissions on the cache folder to 0644 (I think that's proper) and seeing if it makes a difference.
Title: Re: Split Forum Mod
Post by: dougiefresh on April 29, 2016, 04:15:53 PM
Quote from: dougiefresh on April 29, 2016, 09:18:31 AM
Quote from: JerzyLS on April 27, 2016, 04:51:53 AM
Quote from: garyee on April 26, 2016, 07:06:30 AM
If I want to change any setting now, it won't work (even for some core stuff like  "Default time format" ).
I just reported it above - try to clear the cache or disable it.
I've seen this issue happen with my localhost forum, even with a plain vanilla install (no mods installed), and can't understand why this issue occurs....  I've fixed it temporarily by changing the permissions back to what they should be, but for some reason, they get changed back to a read-only status....  I would suggest changing your permissions on the cache folder to 0644 (I think that's proper) and seeing if it makes a difference.
I wrote a quick and not-so-dirty mod to attempt to fix this reported situation.  It's available on my website here: SMF 2.0.x Cache Fix v1.0 (http://www.xptsp.com/board/index.php?topic=677.0).....
Title: Re: Split Forum Mod
Post by: Adrek on May 08, 2016, 07:55:50 AM
did anyone tried to make it work with Tapatalk?
Title: Re: Split Forum Mod
Post by: garyee on May 26, 2016, 02:56:30 AM
Hello,

I am currently using your split forum Mod and it is working nicely so far, very nice mod!
Today I ran into a problem with the management of the registration agreements.
I have one main and one child forum and German(-utf8) & English are installed.

1. If there is no agreement.txt or if the agreements files have the wrong name, the select box for the languages is not displayed
(which the user doesn't see if the files are having the right names.) It would be better to generate the select box depending on the installed languages instead of existing files.

2. Php is looking for the agreement files with a wrong name in:"
ManageRegistration.php:201
if (file_exists($boarddir . '/' . $agree . $lang['filename'] . '.txt'))

results in looking for: "pathToForum/agreement.ForumNameLanguage.txt" ("/var/www/vhosts/example.com/agreement.forum1german-utf8.txt")
or "pathToForum/agreementLanguage.txt" (/var/www/vhosts/example.com/agreementgerman-utf8.txt) for the parentForum.

I fixed this by adding a "." after $agree, because that is what php is looking for in line 222

3. The same for:
Register.php: 122 & 123
Title: Re: Split Forum Mod
Post by: dougiefresh on June 01, 2016, 02:46:20 PM
Quote from: phantomm on May 08, 2016, 07:55:50 AM
did anyone tried to make it work with Tapatalk?
Sorry about the lateness of my reply.  I haven't tried to make it work with Tapatalk, no....

Quote from: garyee on May 26, 2016, 02:56:30 AM
Hello,

I am currently using your split forum Mod and it is working nicely so far, very nice mod!
Today I ran into a problem with the management of the registration agreements.
I have one main and one child forum and German(-utf8) & English are installed.

1. If there is no agreement.txt or if the agreements files have the wrong name, the select box for the languages is not displayed
(which the user doesn't see if the files are having the right names.) It would be better to generate the select box depending on the installed languages instead of existing files.

2. Php is looking for the agreement files with a wrong name in:"
ManageRegistration.php:201
if (file_exists($boarddir . '/' . $agree . $lang['filename'] . '.txt'))

results in looking for: "pathToForum/agreement.ForumNameLanguage.txt" ("/var/www/vhosts/example.com/agreement.forum1german-utf8.txt")
or "pathToForum/agreementLanguage.txt" (/var/www/vhosts/example.com/agreementgerman-utf8.txt) for the parentForum.

I fixed this by adding a "." after $agree, because that is what php is looking for in line 222

3. The same for:
Register.php: 122 & 123
Sorry about the lateness of my reply.  I've fixed bug #2 and #3 on your list.  Regarding bug #1, the mod only modifies the code so that each subforum has it's own set of agreements....  Although I probably should look at the code that generates subforums further, as I'm not sure that all agreements are duplicated if they are not present....
Title: Re: Split Forum Mod
Post by: Adrek on June 01, 2016, 03:07:11 PM
I made few tweaks in TT files and it works nice with mobile app :) I will later post instructions 'how to' if someone is interested.
Title: Re: Split Forum Mod
Post by: garyee on June 06, 2016, 04:50:48 AM
Hi,

one other thing...

I would want to create a forum with the subforum and they will have the same categories and the same boards.
Thing is, if I want to move a Topic to another board, I can not differentiate between the forum-boards and the subforum-boards.
Would it be possible to prepend the Forum-name on the category-names in the dropdown list where one can chose whereto move the topic to?
I tried working around with dummy boards ... but it is just not right :)
Title: Re: Split Forum Mod
Post by: garyee on June 06, 2016, 05:32:31 AM
Hi,
I created a quick mod for the purpose described in the last post (Forum Title in Topic Move-Select), would be nice, if you could integrate it into yours.
http://pastebin.com/nHGYqbVj (http://pastebin.com/nHGYqbVj)
Title: Re: Split Forum Mod
Post by: dougiefresh on June 10, 2016, 05:51:25 PM
Quote from: phantomm on June 01, 2016, 03:07:11 PM
I made few tweaks in TT files and it works nice with mobile app :) I will later post instructions 'how to' if someone is interested.
Are the tweaks related to this mod?  If so, I would be interested in seeing them.

Quote from: garyee on June 06, 2016, 05:32:31 AM
Hi,
I created a quick mod for the purpose described in the last post (Forum Title in Topic Move-Select), would be nice, if you could integrate it into yours.
http://pastebin.com/nHGYqbVj (http://pastebin.com/nHGYqbVj)
Sorry I haven't been around lately.  Life has been hell lately....

Cool beans about your mod!  I'll integrate it into this mod for you!  Thank you!
Title: Re: Split Forum Mod
Post by: Tair on June 12, 2016, 05:05:47 PM
Hi everybody!

Is it possible to limit Latest Post from BoardIndex.template.php to show only this subforum's posts ?

Same for usersonline stats and statistic section of  BoardIndex.template.php ?
Title: Re: Split Forum Mod
Post by: dougiefresh on June 12, 2016, 06:54:07 PM
Uploaded v1.34 - June 12th, 2016
o SMF 2.0: Fixed issue in MoveTopic.php where destination boards weren't limited to that subforum.
o Added error checking to make sure removal of subforum tree elements doesn't generate errors.
o Added code to always "fix" primary forum URLs and path using defaults in Settings.php.
o Removed ability to change path and URL for primary forum (subforum # 0).
o Fixed issue so that the Alias Boards operations are ignored if it isn't installed.




@Everybody:  I apologize for the lengthy absense.  Life has been hell recently and I've just been trying to keep my head above the water.....

Quote from: garyee on June 06, 2016, 04:50:48 AM
I would want to create a forum with the subforum and they will have the same categories and the same boards.
Thing is, if I want to move a Topic to another board, I can not differentiate between the forum-boards and the subforum-boards.
Would it be possible to prepend the Forum-name on the category-names in the dropdown list where one can chose whereto move the topic to?
I tried working around with dummy boards ... but it is just not right :)
I fixed the mentioned issue within the mod by limiting the destination boards like I did throughout the rest of the forum.  Thank you for bringing it to my attention!

Quote from: Tair on June 12, 2016, 05:05:47 PM
Is it possible to limit Latest Post from BoardIndex.template.php to show only this subforum's posts ?

Same for usersonline stats and statistic section of  BoardIndex.template.php ?
I wasn't aware that this was an issue.  Let me look into these issues.....
Title: Re: Split Forum Mod
Post by: Tair on June 12, 2016, 07:34:27 PM
Quote from: dougiefresh on June 12, 2016, 06:54:07 PM
I wasn't aware that this was an issue.  Let me look into these issues.....

Thx alot.

Also found 1 more question - if someone enter Register page in subforum - forum opens primary forum Register page

Also:

Just uninstalled 1.33 and installed 1.34, got 500'th server error:

[13-Jun-2016 02:55:32] PHP Parse error:  syntax error, unexpected ')' in /var/www/forums/data/www/forums/test/Sources/Subs-SplitForumHooks.php on line 82

after i removed ) :

[13-Jun-2016 02:59:43] PHP Parse error:  syntax error, unexpected ';' in /var/www/forums/data/www/forums/test/Sources/Subs-SplitForumHooks.php on line 94


also error at

[13-Jun-2016 03:10:14] PHP Parse error:  syntax error, unexpected ';' in /var/www/forums/data/www/forums/test/Sources/ManageSplitForum.php on line 148

Title: Re: Split Forum Mod
Post by: dougiefresh on June 18, 2016, 07:18:36 PM
Uploaded v1.35 - June 18th, 2016
o Fixed several syntax errors found by Tair (http://www.simplemachines.org/community/index.php?action=profile;u=151394).




@Tair:  Thank you for pointing out those programming bugs!  They have been fixed for this version!

Quote from: Tair on June 12, 2016, 07:34:27 PM
Also found 1 more question - if someone enter Register page in subforum - forum opens primary forum Register page
Go into the Subforums page under Settings and uncheck the box beside Redirect registration to Primary Forum.  That should fix that error....  Let me know if it doesn't!  Thanks!
Title: Re: Split Forum Mod
Post by: Tair on June 19, 2016, 05:35:02 AM
Quote from: dougiefresh on June 18, 2016, 07:18:36 PM
Uploaded v1.35 - June 18th, 2016
o Fixed several syntax errors found by Tair (http://www.simplemachines.org/community/index.php?action=profile;u=151394).




@Tair:  Thank you for pointing out those programming bugs!  They have been fixed for this version!

Quote from: Tair on June 12, 2016, 07:34:27 PM
Also found 1 more question - if someone enter Register page in subforum - forum opens primary forum Register page
Go into the Subforums page under Settings and uncheck the box beside Redirect registration to Primary Forum.  That should fix that error....  Let me know if it doesn't!  Thanks!

Thx for the reply, registration on subforum seems fixed.
Anyway when i updated from 1.33 to 1.35 there were some problems to update Register.php

Fixed it manualy.

Got 1 more error:

Text "$agree = 'agreement' . ($forumid == 0 ? '' : '.forum' . $forumid);" appeared on the top of registration page (with agreement) on subforum, same for registration settings page in Admin section of main forum.


Also i got test forum for testing, had there 1.33, uninstalled it and installed 1.35

When i try to create 1 more subforum (currently there 0 subforums) - i receive such an error "The specified subforum ID has already been used. Please select another ID number."
Title: Re: Split Forum Mod
Post by: Tair on June 19, 2016, 12:45:09 PM
And btw
errors still here:
[19-Jun-2016 19:43:49] PHP Notice:  Undefined variable: forumdir in /var/www/forums/data/www/forums/test/www/Sources/Subs-SplitForumHooks.php on line 43
[19-Jun-2016 19:43:49] PHP Notice:  Undefined variable: forumdir in /var/www/forums/data/www/forums/test/www/Sources/Subs-SplitForumHooks.php on line 76


fixed that by adding forumdir for subforum string in settings php.

Btw maybe its better to hold all variables in table instead of setting.php?

like table prefix_splitsettings


p.s.

QuoteGot 1 more error:

Text "$agree = 'agreement' . ($forumid == 0 ? '' : '.forum' . $forumid);" appeared on the top of registration page (with agreement) on subforum, same for registration settings page in Admin section of main forum.

fixed that also. By some strange reason during update this code appeared on the top of Register.php and ManageRegistration.php
Title: Re: Split Forum Mod
Post by: dougiefresh on June 19, 2016, 06:34:55 PM
Thank you, Tair, for all of your bug reports!

Quote from: Tair on June 19, 2016, 05:35:02 AM
Thx for the reply, registration on subforum seems fixed.
Good to hear!

Quote from: Tair on June 19, 2016, 05:35:02 AM
Anyway when i updated from 1.33 to 1.35 there were some problems to update Register.php.

Text "$agree = 'agreement' . ($forumid == 0 ? '' : '.forum' . $forumid);" appeared on the top of registration page (with agreement) on subforum, same for registration settings page in Admin section of main forum.
Update XML file from v1.35 to v1.36 fixes this issue....

Quote from: Tair on June 19, 2016, 05:35:02 AM
When i try to create 1 more subforum (currently there 0 subforums) - i receive such an error "The specified subforum ID has already been used. Please select another ID number."
Hmmm....  I'll look at the code again.

Quote from: Tair on June 19, 2016, 12:45:09 PM
[19-Jun-2016 19:43:49] PHP Notice:  Undefined variable: forumdir in /var/www/forums/data/www/forums/test/www/Sources/Subs-SplitForumHooks.php on line 43
[19-Jun-2016 19:43:49] PHP Notice:  Undefined variable: forumdir in /var/www/forums/data/www/forums/test/www/Sources/Subs-SplitForumHooks.php on line 76

fixed that by adding forumdir for subforum string in settings php.
Duplicated and fixed for next version.

Quote from: Tair on June 19, 2016, 12:45:09 PM
Btw maybe its better to hold all variables in table instead of setting.php?

like table prefix_splitsettings
Disagree, because workload of database increases by doing so.  Although I guess I could cache the results of the database query....

Quote from: Tair on June 19, 2016, 12:45:09 PM
Quote from: Tair on June 19, 2016, 05:35:02 AM
Text "$agree = 'agreement' . ($forumid == 0 ? '' : '.forum' . $forumid);" appeared on the top of registration page (with agreement) on subforum, same for registration settings page in Admin section of main forum.
fixed that also. By some strange reason during update this code appeared on the top of Register.php and ManageRegistration.php
Issue has been fixed.
Title: Re: Split Forum Mod
Post by: Adrek on June 20, 2016, 05:15:30 PM
Thank you for updates :)

few errors:
MoveTopic.php :
LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat AND c.forumid = {int:forumid}))
it should be:
LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat AND c.forumid = {int:forumid})

but still all boards are visible on the list (categories from other subforums are hidden), so I made few edits:
Code (Find) Select

SELECT b.id_board, b.name, b.child_level, c.name AS cat_name, c.id_cat

Code (Add after) Select

, c.forumid


Code (Find) Select

AND b.redirect = {string:blank_redirect}

Code (Add after) Select

AND b.redirect = {string:blank_redirect}
AND c.forumid = {int:forumid}


and it seems that boards are filtered correctly now :)
Title: Re: Split Forum Mod
Post by: jjsmith on June 29, 2016, 10:57:34 AM
Hello dougiefresh,

I noticed in two places where posts are listed, but clicking them shows I don't have access.

- when not logged in - on our forum Home page - scrolling to the bottom and clicking "View the most recent posts on this forum" ...
This shows all posts, including sister sites, even if the post is on a split forum that i don't have access to.

- when logged in - clicking 'show unread posts since last visit'...
This also shows new posts on split forums that I don't have access to

In both cases, when I click the post, I get a message that I don't have access to the post, so that's good.  But it's confusing that the post is in the list.

Is that expected - that the posts show in the list?  Or have I not installed/configured correctly?

Thanks,
Josh
Title: Re: Split Forum Mod
Post by: garyee on July 01, 2016, 02:36:05 AM
@jjsmith: What version of the mod are you using? I couldn't recreate the problem with 1.35 ... so maybe if you update (and make the changes phantomm listed)

Okay I got 1.35 working now. If anyone is interested ... I created a mod, to (re-)enable moving topics between subforums (with enhanced titles in the move-selectbox) and also disables the "you are not allowed error message".

While working on the mod I recognized that you have to be really careful when configuring your system, there are several places where one has to put in URLs, don't mess them up.
(Like for example if you start one with https and another with http, there will be some faulty behavior somewhere!

Greetz
Garyee
Title: Re: Split Forum Mod
Post by: dougiefresh on July 12, 2016, 07:11:11 PM
Haven't forgotten about y'all, just been REALLY busy with work and a few other projects....
Title: Re: Split Forum Mod
Post by: garyee on July 19, 2016, 06:16:24 AM
Quote from: tetaye on March 02, 2016, 07:30:54 PM
At last, I don't manage to organize the categories on a sub-forum :
On sub-forum #1, I created the categorie "Fufufu" on first position, and after, a 2nd categorie "AAaaa" on order "After Fufufu".
Unfortunately, when I navigate to the sub-forum #1, categorie "AAaaa" appear before "Fufufu"...

Hi,

did issue get fixed? because I just ran into the same issue, the category order does work in the manage-board view, but not on the froum it self.
But I do not know if it is an froum fault, or one from the mod.

I had to change:
Line 43 (Subs-BoardIndex.php) to:
$result_boards = $smcFunc['db_query']('', '
And Line 66:
AND b.child_level BETWEEN ' . $boardIndexOptions['base_level'] . ' AND ' . ($boardIndexOptions['base_level'] + 1))." ORDER BY c.cat_order,b.board_order",

in order for it to work!


Title: Re: Split Forum Mod
Post by: JerzyLS on July 19, 2016, 07:20:28 AM
Dear dougiefresh,

It's possible to add a possibility to set access permissions to each forum for each user?
I really need this.
Title: Re: Split Forum Mod
Post by: garyee on July 19, 2016, 07:51:58 AM
Quote from: JerzyLS on July 19, 2016, 07:20:28 AM
It's possible to add a possibility to set access permissions to each forum for each user?
I really need this.

You could simply create a group for every sub-forum with permissions to only to do stuff in that forum(eg. with board permissions).
Then simply put your users in corresponding group and voilà.

Title: Re: Split Forum Mod
Post by: garyee on July 20, 2016, 02:10:07 AM
Quote from: garyee on July 19, 2016, 06:16:24 AM
I had to change:
Line 43 (Subs-BoardIndex.php) to:
$result_boards = $smcFunc['db_query']('', '
And Line 66:
AND b.child_level BETWEEN ' . $boardIndexOptions['base_level'] . ' AND ' . ($boardIndexOptions['base_level'] + 1))." ORDER BY c.cat_order,b.board_order",
in order for it to work!
Correction:
Change Line 66/67 to:
AND b.child_level BETWEEN ' . $boardIndexOptions['base_level'] . ' AND ' . ($boardIndexOptions['base_level'] + 1)).
            ' ORDER BY '.($boardIndexOptions['include_categories'] ? 'c.cat_order,':'').'b.board_order',
Title: Re: Split Forum Mod
Post by: jjsmith on August 10, 2016, 12:14:10 PM
Hi,

I'm using version 1.35, and version 2.0.11 of smf.

The mod installed ok, but when I try to add a subforum, I get the following error:

"The specified subforum ID has already been used. Please select another ID number."

I can't add any subforums, so I only have the one "main" subforum that's the original forum before installing the mod.

Do you know what could be causing this?

Thanks
Josh
Title: Re: Split Forum Mod
Post by: dougiefresh on August 20, 2016, 06:23:39 PM
About a month ago, I've lost my job and have been severely depressed.  I need some help, so if you want to help, please do so!

I've uploaded this mod to GitHub here: https://github.com/douglasorend/Split_Forum_Mod
Title: Re: Split Forum Mod
Post by: dougiefresh on September 12, 2016, 10:11:59 AM
Quote from: phantomm on June 20, 2016, 05:15:30 PM
Thank you for updates :)

few errors:
MoveTopic.php :
LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat AND c.forumid = {int:forumid}))
it should be:
LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat AND c.forumid = {int:forumid})

but still all boards are visible on the list (categories from other subforums are hidden), so I made few edits:
Code (Find) Select

SELECT b.id_board, b.name, b.child_level, c.name AS cat_name, c.id_cat

Code (Add after) Select

, c.forumid


Code (Find) Select

AND b.redirect = {string:blank_redirect}

Code (Add after) Select

AND b.redirect = {string:blank_redirect}
AND c.forumid = {int:forumid}


and it seems that boards are filtered correctly now :)
Apologizes about the long wait between versions!!  This has been fixed for v1.36....
Title: Re: Split Forum Mod
Post by: dougiefresh on September 12, 2016, 10:18:26 AM
Quote from: garyee on July 01, 2016, 02:36:05 AM
Okay I got 1.35 working now. If anyone is interested ... I created a mod, to (re-)enable moving topics between subforums (with enhanced titles in the move-selectbox) and also disables the "you are not allowed error message".

While working on the mod I recognized that you have to be really careful when configuring your system, there are several places where one has to put in URLs, don't mess them up.
(Like for example if you start one with https and another with http, there will be some faulty behavior somewhere!

Greetz
Garyee
I'm interested in what the mod you've made.  If you want, I can integrate it into the Split Forum Mod....
Title: Re: Split Forum Mod
Post by: dougiefresh on September 12, 2016, 06:35:36 PM
Quote from: Tair on June 19, 2016, 05:35:02 AM
When i try to create 1 more subforum (currently there 0 subforums) - i receive such an error "The specified subforum ID has already been used. Please select another ID number."
It's been fixed for version 1.36.....
Title: Re: Split Forum Mod
Post by: dougiefresh on September 12, 2016, 06:52:40 PM
Quote from: garyee on July 19, 2016, 06:16:24 AM
Quote from: tetaye on March 02, 2016, 07:30:54 PM
At last, I don't manage to organize the categories on a sub-forum :
On sub-forum #1, I created the categorie "Fufufu" on first position, and after, a 2nd categorie "AAaaa" on order "After Fufufu".
Unfortunately, when I navigate to the sub-forum #1, categorie "AAaaa" appear before "Fufufu"...

Hi,

did issue get fixed? because I just ran into the same issue, the category order does work in the manage-board view, but not on the froum it self.
But I do not know if it is an froum fault, or one from the mod.

I had to change:
Line 43 (Subs-BoardIndex.php) to:
$result_boards = $smcFunc['db_query']('', '
And Line 66:
AND b.child_level BETWEEN ' . $boardIndexOptions['base_level'] . ' AND ' . ($boardIndexOptions['base_level'] + 1))." ORDER BY c.cat_order,b.board_order",

in order for it to work!
I've made some code edits in order to try to address this issue for version 1.36.....  However, I haven't been able to reproduce this at this time, so I can't verify the effectiveness of this fix....

Quote from: JerzyLS on July 19, 2016, 07:20:28 AM
It's possible to add a possibility to set access permissions to each forum for each user?  I really need this.
Yes, I can add this to the mod.  However, doing so can't and won't stop users from remaining as guests and browsing a forum without restricting guests from that subforum, and honestly, it is a REALLY BAD idea to stop guests from browsing a forum, especially since it can effect the search engines as well....
Title: Re: Split Forum Mod
Post by: dougiefresh on September 12, 2016, 08:13:46 PM
Quote from: JerzyLS on July 19, 2016, 07:20:28 AM
It's possible to add a possibility to set access permissions to each forum for each user?
It's been implemented for version 1.36.....  You must turn on the option on the Subforum Settings page.
Title: Re: Split Forum Mod
Post by: dougiefresh on September 12, 2016, 08:26:42 PM
Uploaded v1.36 - September 12th, 2016
o Added code to deny subforum access to membergroups using on permission system.
o Fixed code issue produced by v1.34-to-1.35 upgrade XML files.
o Fixed missing variable declaration within Subs-SplitForumHooks.php.
o Fixed issue with moving topics where boards not in subforum are visible.
o Fixed issue with creating subforums where advanced items not shown.
o Attempted fix on "global" board and/or category sorting issue.




@Everybody: Thank you for all the bug reports and/or solutions to bug reports!  Hopefully this update takes care of the problems that have been mentioned.
Title: Re: Split Forum Mod
Post by: garyee on September 13, 2016, 02:19:36 AM
Hi man,

nice that you put it on Github, that makes it easier to help an PR the changes!

I don't know if it makes sense to put the "move topics between subforums" functionality into the mod. I think it would be better to keep the subforums seperated.
If someone wants to move topics, he has to install my mod. I also put it up on Github:

https://github.com/postyou/SMF_SplitForumMove (https://github.com/postyou/SMF_SplitForumMove)
Title: Re: Split Forum Mod
Post by: JerzyLS on October 14, 2016, 12:17:41 PM
Hey Dougie,

You modification is erasing permissions to the boards.
I just installed the mod on clean version of newest SMF and I confirmed it.

See the attached screens.

At the first is all okay, the permission is granted. But when I edit the group (and I dind't changed the permissions, but something other; for example the leader of the group), during saving a new options of group, it's deleting all previous permissions and I must granted it again. It's very annoying.

I hope you solved it as fast as possible.

Thanks again for great modification,
Title: Re: Split Forum Mod
Post by: JerzyLS on October 17, 2016, 08:24:15 AM
Dougie,

How about erasing permissions to boards issue during editing the groups?
Title: Re: Split Forum Mod
Post by: dougiefresh on October 17, 2016, 08:33:17 AM
Quote from: JerzyLS on October 17, 2016, 08:24:15 AM
How about erasing permissions to boards issue during editing the groups?
I haven't looked into this issue yet.  I suspect it is an issue with the SMF cache, not an issue with the mod "erasing" permissions (which it DOES NOT DO!!!)  Many forum owners have been complaining about the cache issue for a while....
Title: Re: Split Forum Mod
Post by: JerzyLS on October 17, 2016, 10:09:04 AM
But if anybody edit the group, then the members of a group can't see the boards.
Because the boards in group settings are unchecked.

It's not cache issue.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 17, 2016, 07:28:07 PM
Can you replace your Sources/Subs-SplitForumAdminHooks.php with the attached file and tell me if this makes any difference with your bug report?  Thanks!
Title: Re: Split Forum Mod
Post by: JerzyLS on October 18, 2016, 12:50:37 PM
Not working.

First screen - before saving the settins in membergroup
Second screen - after...

If the boards are unchecked - the members of the group can't see boards.

Screen 3:

Here I can edit my group without worries about lost of permissions to see a boards.

Split Forum Mod here is uninstalled.


Title: Re: Split Forum Mod
Post by: dougiefresh on October 18, 2016, 10:01:05 PM
Quote from: JerzyLS on October 14, 2016, 12:17:41 PM
Hey Dougie,

You modification is erasing permissions to the boards.
I just installed the mod on clean version of newest SMF and I confirmed it.

See the attached screens.

At the first is all okay, the permission is granted. But when I edit the group (and I dind't changed the permissions, but something other; for example the leader of the group), during saving a new options of group, it's deleting all previous permissions and I must granted it again. It's very annoying.

I hope you solved it as fast as possible.

Thanks again for great modification,
Okay, armed with the information from the previous post, I've duplicated this bug report.  I'm going to try to figure out what I've messed up, because this shouldn't be happening.....
Title: Re: Split Forum Mod
Post by: JerzyLS on October 27, 2016, 04:13:54 PM
Dear dougiefresh,

Did you found the solutions?
Users are impatient.
Title: Re: Split Forum Mod
Post by: dougiefresh on October 29, 2016, 07:28:34 PM
Quote from: JerzyLS on October 27, 2016, 04:13:54 PM
Did you found the solutions?
Users are impatient.
I've been trying to figure out how to code this properly....
Title: Re: Split Forum Mod
Post by: dougiefresh on November 01, 2016, 09:46:02 PM
@JerzyLS: I've decided to start clean on the Sources/ManageMembergroups.php and ManageMembergroups.template.php, in order to correctly make the changes required in the code.  I have the next 2 days off, so maybe I can get something done on this topic.  Sorry about the delay....
Title: Re: Split Forum Mod
Post by: dougiefresh on November 17, 2016, 08:50:01 AM
UPDATE: Sorry about the wait.  I've got the Edit Membergroup screen working properly now.  Working on the Add Membergroup screen now...
Title: Re: Split Forum Mod
Post by: dougiefresh on November 18, 2016, 09:45:07 AM
Uploaded v1.37 - November 18th, 2016
o SMF 2.0.x: Fixed Edit Membergroup and Add Membergroup functions to fix board selection bug.
o Fixed missing closing operation tag in install_20x.xml.
o Removed upgrade ability from mod.




@JerzyLS:  Hopefully this update solves the issue you reported.  Let me if it doesn't!  Thank you!
Title: Re: Split Forum Mod
Post by: SychO on January 08, 2017, 11:44:27 AM
Hello,

Very nice work
I was wondering if it was possible to instead of getting this message when clicking on a topic of a different subforum
AN ERROR HAS OCCURRED!
The board you specified is located on a different forum


Members would be taken to the topic wherever it's situated, and also when clicking on unread new posts members would see all the new posts from all subforums

Thanks in advance
Title: Re: Split Forum Mod
Post by: Adrek on January 08, 2017, 12:06:58 PM
I think that option called "Redirect board to correct SubForum instead of error message" will help you with this issue :)

http://custom.simplemachines.org/mods/index.php?action=download;mod=3730;id=237690;image
Title: Re: Split Forum Mod
Post by: SychO on January 08, 2017, 12:20:54 PM
Quote from: phantomm on January 08, 2017, 12:06:58 PM
I think that option called "Redirect board to correct SubForum instead of error message" will help you with this issue :)

http://custom.simplemachines.org/mods/index.php?action=download;mod=3730;id=237690;image

Thanks :) can't believe I didn't see that before

I'd still like to know if we can see all unread content from all subforums, and not having that split apart.
Title: Re: Split Forum Mod
Post by: Adrek on January 08, 2017, 12:27:51 PM
Actually this was fixed in v1.16 so it limits posts only to current subforum. I do not have this version on my PC so I can't help you with it.
Title: Re: Split Forum Mod
Post by: dougiefresh on January 30, 2017, 09:44:30 AM
Uploaded v1.38 - January 28th, 2017[/u]
o Fixed bug where we aren't displaying the agreement file in the administration center or when someone registers.




@ksrandom:  Thank you for the GitHub merge request, which addressed the bug mentioned!  Much appreciated!
Title: Re: Split Forum Mod
Post by: Madirex on May 11, 2017, 06:24:15 PM
I have this error when i try to install:

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM smf_log_packages
WHERE package_id = 'Dougiefresh:Split_Forum'
AND inst' at line 2
Archivo: /storage/h3/992/678992/public_html/Sources/Packages.php
Línea: 262
Title: Re: Split Forum Mod
Post by: Madirex on May 12, 2017, 02:18:41 PM
Quote from: Madirex on May 11, 2017, 06:24:15 PM
I have this error when i try to install:

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM smf_log_packages
WHERE package_id = 'Dougiefresh:Split_Forum'
AND inst' at line 2
Archivo: /storage/h3/992/678992/public_html/Sources/Packages.php
Línea: 262

Solved.
Title: Re: Split Forum Mod
Post by: Arantor on May 12, 2017, 03:21:01 PM
This is not a mod bug, this is a core SMF bug.
Title: Re: Split Forum Mod
Post by: moyack on June 02, 2017, 04:22:37 PM
Hi dougiefresh:

I've been using your mod instead of PmxSubforums, and it's a great piece of work :)

However, I was wondering if you can add the possibility to move topics from one subform to another, at least from the main forum system.

Thanks in advance for you attention :D
Title: Re: Split Forum Mod
Post by: dougiefresh on July 11, 2017, 11:28:44 AM
Uploaded v1.39 - July 11th, 2017
o Added support for SMF 2.1 Beta 3.
o Removed support for SMF 2.1 Beta 2.
o Moved favicon setting from Database settings to general server settings.
o Replaced IFNULL with COALESCE in database queries for better Postgres support.

Title: Re: Split Forum Mod
Post by: moyack on December 22, 2017, 10:02:50 AM
Hi dougiefresh, I just have a small question: is there any recommendation about the DNS setings in the domain in order to make this mod efficient in redirections and such. I ask this because sometimes my website shows nothing, and I'm suspecting I have something wrong with the DNS redirections. Thanks in advance.
Title: Re: Split Forum Mod
Post by: dougiefresh on December 22, 2017, 10:26:59 AM
Sorry, no clue....  I wouldn't think that your DNS settings have any effect on this mod....  Could be wrong...
Title: Re: Split Forum Mod
Post by: SaltedWeb on December 26, 2017, 07:17:38 PM
I am unsure how to have the subforum show a different Logo?
I do have two separate domains if needed or could just point the the other.
But not quite sure how the Mod reads the other graphics and how it can be changed
so its not exactly like the main forum
Title: Re: Split Forum Mod
Post by: SaltedWeb on December 26, 2017, 11:23:27 PM
Found a solution, since in the main forum the themes can be added to change the theme for the subforum. And I wanted the same theme just different logos I installed a second version of the same theme renamed it and then just edit the logo for that theme #2 since it creates a whole separate theme it wont affect the original.
I posted the solution because it may be desired by others to have a sub domain same theme different name. This could be done over and over for as many subs as you make just create a new theme with the same one rename its and you have all new theme you can edit if needed.
I was not thinking and know this is done for solo forums for holidays special events etc, but then realized same thing could be done just to the subforums theme.
Title: Re: Split Forum Mod
Post by: dougiefresh on December 26, 2017, 11:36:22 PM
When I read 2 posts back, I pondered the question and came up with that idea.  I got home and was just about to suggest that, when I read that you thought of it....  8)
Title: Re: Split Forum Mod
Post by: SaltedWeb on December 27, 2017, 12:40:51 AM
Quote from: dougiefresh on December 26, 2017, 11:36:22 PM
When I read 2 posts back, I pondered the question and came up with that idea.  I got home and was just about to suggest that, when I read that you thought of it....  8)

Thanks Dougiefresh, for taking the time to and figure it out for me, funny how sometimes the answer is right in front of you. I was over thinking the answer was my problem.
By the way really like this mod, I have tested it on my test forum and its seems fairly mod friendly no issues or errors. It was the perfect solution I have a main group and a couple satellite groups and this will save me allot of time not having to build separate as they all use about the same mods and should look the same this fits perfect for what i am doing. Appreciate the work put into this as the more I dove in the more I saw what a nice and smooth mod it was.  Thanks again for the help though... sorry I figured it out first lol
Title: Re: Split Forum Mod
Post by: SaltedWeb on December 27, 2017, 12:56:19 PM
PS in case anyone else takes this route to keep same named themes renamed off line before install just rename it in the XML file and it will show up in the theme directory easier to keep track of what theme is what even after install generally the newest theme is towards the end of the list but this may help before its installed and eliminate guess work.
Title: Re: Split Forum Mod
Post by: SaltedWeb on December 27, 2017, 04:00:25 PM
Well I thought that would work even put the theme in another directory why the theme and mod work flawlessly the cache in the
browser is not seeing a different file location and hence pull up the main themes logo.
Even tried uninstalling the main theme and adding after the second renamed one, but still its caches after the first.
Its varying per browser Chrome it doesn't work firefox it does. So going to have to go back and try and re-think this come up with a solution...



EDIT : The forum cache in Maintenance was the problem after I emptied it it worked. Just going to leave it here again in case anyone goes this route.
Title: Re: Split Forum Mod
Post by: SaltedWeb on December 29, 2017, 05:02:48 PM
Hello, I noticed today for some reason errors when creating boards.
It does not do it when I create categories.
It is the only mod on the forum so not sure what is causing it, also there is no
line 425 in ManagePermissions.english.php ends in the 300's

Upon create I get :
public_html/Themes/default/languages/ManagePermissions.english.php (modify_board sub template - eval?)
Line: 425

removal I get :
File: /home/uniteds1/public_html/Sources/ManageBoards.php
Line: 524

appreciate any ideas/

Update it not only causes the error but when I switched themes to test it all the subforums categories were empty
no categories or boards. The main forum is intact.  So removed the mod and it gave error "Unknown column 'forum' in 'where clause'
File: /home/*****/public_html/Packages/temp/settings_uninstall.php
Line: 44

It then created a error Fatal error: Call to undefined function splitforum_denyaccess() in /home/*****/public_html/index.php on line 204
which I fixed but left it behind.

It wont install at this point creates the errors above each time.
Tried it on a clean test forum and it did the same thing as fully described.
Title: Re: Split Forum Mod
Post by: SaltedWeb on December 30, 2017, 02:51:59 AM
Wanted to give further feedback:

Tried a fresh domain installed SMF then just this mod and using SMF's stock theme it also would not uninstall.
Gave same errors creating and removing Categories and Boards when created or removed for this mod only.
Spent a good part of the evening trying to find a cause and nothing comes up.
It keeps referring to lines that are not present in the files that are giving errors so could not copy paste them here.

Title: Re: Split Forum Mod
Post by: SaltedWeb on December 30, 2017, 05:43:45 PM

After several hours I was finally able to find a referring line, this is when you delete a Category or Board.
As it kept spitting out Line references that were not there.
This was a fresh domain, no mods accept this and was a fresh install of SMF all today.
Not sure this helps it seems to be fairly consistent on the error occuring however tends
spit out several line references that sometimes do not exist in the file its referring too.

Error Log:

8: Undefined index: is_childApply Filter: Only show the errors from this file File: /home/*****/*****.org/Sources/ManageBoards.php
Line: 524

   
Quoteif ($board['is_child'] == false && $board['selected'] == false)



Title: Re: Split Forum Mod
Post by: SaltedWeb on December 31, 2017, 01:11:57 PM
 Dougiefresh, please disregard my support questions on this, I have found even testing it on another server and domain it was
exactly the same error.  I am afraid that if there is another SMF update this mod will cause future issues as it seems it worked fine prior to 2.0.15
so rather then waste your time on trying to find a fix i'm going to pass using this mod .

Just so you can be aware it causes the problem on 2.0.15 manual and host install. Under several domains when tested.
Using the default theme, no mods no addon no edits of any kind. I have tried root installs and directory installs of SMF not
that it would or should effect it but issue persistent . I am not hosted at GD which would be an obvious cause.
There is no errors on install, there is errors intermittent with no consistency upon uninstall which I listed above in this thread. 
It varies on mentioning errors on non existent lines but not always as is listed above.

Thanks
SW
Title: Re: Split Forum Mod
Post by: dougiefresh on January 02, 2018, 01:00:41 PM
@SaltedWeb:  I know you said to disregard the support questions, but I'll look into these bug reports.  There has to be a reason why it is happening....  Chances are others have found the same errors, and want the issue resolved....
Title: Re: Split Forum Mod
Post by: SaltedWeb on January 02, 2018, 01:53:46 PM
Hi Dougie if I can help test it let me know.

I did even a couple times installed it last ( cause was bugging me too) night on a fresh SMF, and was so far able to duplicate the results about hmm maybe 10 times. Tried playing with some of the files it modified but I am not a developer PHP is not a strong suit of mine.
Id like to use it if it was fixed. I was not able to tell any other errors with mods etc, because it does it all on its own with no mods.
I asked a friend of mine whom is hosted elsewhere to see if it did the same and he states the same issue creating boards and removing them.

Not sure this will help but I tried seeing any effects on other stuff, I noticed on my test forum I installed simple portal no issues on a clean forum then the Split Forum and it would not allow SP to create Articles came up with a database line missing tried it twice and was able to duplicate it. All other areas of SP worked. I just did that to see if it was effecting just SMF or would it effect other stuff.
The fact it points to a line that doesn't exist I found odd.

let me know if I can help further having spent some time poking around ow I am curious.
It also appears 2.0.14 was fine for others wonder what was different in .15 to make a difference in operating.
Title: Re: Split Forum Mod
Post by: dougiefresh on January 03, 2018, 11:21:25 AM
Uploaded v1.40 - January 3rd, 2018
o Fixed code that produced two undefined array element errors.




@SaltedWeb:  I fixed the code block that was producing errors.  Thank you for reporting the bug!
Title: Re: Split Forum Mod
Post by: SaltedWeb on January 03, 2018, 12:58:21 PM
 ;)NP... thanks for the fix :-) 8)
Title: Re: Split Forum Mod
Post by: SaltedWeb on January 03, 2018, 08:55:56 PM
Hi Dougie that issue seems fixed with creating categories however:

When creating a new sub forum it created a new forum however modify shoots right back to creating a forum.
Editing features are no longer accessible such as placement etc and trying to do so gives.
Logged error :
8: Undefined index: sp_portalApply Filter: Only show the errors from this file File: /home/****/public_html/Sources/ManageSplitForum.php
Line: 170

Quotearray('text', 'subforum_modify_sp_standalone',
^170^            'javascript' => ($subforum_tree[$sub]['sp_portal'] != 3 ? ' disabled="disabled"' : ''),
         ),

It seemed to only effect one mod file that it /Sources/Recent.php under mod.
Post Anonymously In Topic which appears just a simple rewrite issues if unistalled

**************************************************************************

Uninstalling the mod gave errors:

8: Undefined variable: catApply Filter: Only show the errors from this file File: /home/*****/public_html/Packages/temp/settings_uninstall.php
Line: 25
That file I could not access as I guess once uninstalled its not there.

*******************************************************************************

I have not tested any other areas of the forum I checked and the areas mentioned only but had to stop when
creating the subforums was not working,

Thanks

SW

EDIT: The Post Anonymously In Topic, mod that would have errored upon an removal with split-forum installed was fine to remove after I removed split mod and now errors were there not sure if that helps you pin point anything. ?

I am checking the rest of the forum to see if installing it left any ailing effects.

Edit2: Ok I see it caused several issues with the portal as it wont create article, which it did prior to this installed today I am running simple portal on this forum. I had hoped it would install ok, so kinda jacked up my site lol, my bad should have used the test site, luckily this was not into full production yet.  I think I will just have to avoid it for my use but as mentioned happy to test out any issues you think need fixing.

The error on the portal was :
QuoteThe database value you're trying to insert does not exist: targetboard
Function: sportal_admin_article_add Apply Filter: Only show the errors from this file File: /home/****/public_html/Sources/PortalAdminArticles.php
Line: 352
      'targetboard' => $_REQUEST['targetboard'],
         )
      );
      list ($topiccount) = $smcFunc['db_fetch_row']($request);
      $smcFunc['db_free_result']($request);

Title: Re: Split Forum Mod
Post by: dougiefresh on January 04, 2018, 12:39:28 PM
Quote from: SaltedWeb on January 03, 2018, 08:55:56 PM
Hi Dougie that issue seems fixed with creating categories however:
Good to hear.

Quote from: SaltedWeb on January 03, 2018, 08:55:56 PM
When creating a new sub forum it created a new forum however modify shoots right back to creating a forum.
Editing features are no longer accessible such as placement etc
Can't duplicate this bug report.

Quote from: SaltedWeb on January 03, 2018, 08:55:56 PM
and trying to do so gives.
Logged error :
8: Undefined index: sp_portalApply Filter: Only show the errors from this file File: /home/****/public_html/Sources/ManageSplitForum.php
Line: 170
Fixed for next version.

Quote from: SaltedWeb on January 03, 2018, 08:55:56 PM
It seemed to only effect one mod file that it /Sources/Recent.php under mod.
Post Anonymously In Topic which appears just a simple rewrite issues if unistalled
Please clarify.

Quote from: SaltedWeb on January 03, 2018, 08:55:56 PM
Uninstalling the mod gave errors:

8: Undefined variable: catApply Filter: Only show the errors from this file File: /home/*****/public_html/Packages/temp/settings_uninstall.php
Line: 25
Fixed for next version.

Quote from: SaltedWeb on January 03, 2018, 08:55:56 PM
EDIT: The Post Anonymously In Topic, mod that would have errored upon an removal with split-forum installed was fine to remove after I removed split mod and now errors were there not sure if that helps you pin point anything. ?

I am checking the rest of the forum to see if installing it left any ailing effects.

Edit2: Ok I see it caused several issues with the portal as it wont create article, which it did prior to this installed today I am running simple portal on this forum. I had hoped it would install ok, so kinda jacked up my site lol, my bad should have used the test site, luckily this was not into full production yet.  I think I will just have to avoid it for my use but as mentioned happy to test out any issues you think need fixing.

The error on the portal was :
QuoteThe database value you're trying to insert does not exist: targetboard
Function: sportal_admin_article_add Apply Filter: Only show the errors from this file File: /home/****/public_html/Sources/PortalAdminArticles.php
Line: 352
      'targetboard' => $_REQUEST['targetboard'],
         )
      );
      list ($topiccount) = $smcFunc['db_fetch_row']($request);
      $smcFunc['db_free_result']($request);

Hmmmm.....  Weird....
Title: Re: Split Forum Mod
Post by: SaltedWeb on January 04, 2018, 01:08:13 PM

QuoteQuote from: SaltedWeb on Yesterday at 08:55:56 PM
When creating a new sub forum it created a new forum however modify shoots right back to creating a forum.
Editing features are no longer accessible such as placement etc
Can't duplicate this bug report.

I guess I will assume its probably now effecting a mod that it didnt before perhaps due to the changes I will try it on a test board
later.

QuoteThe database value you're trying to insert does not exist: targetboard
Function: sportal_admin_article_add Apply Filter: Only show the errors from this file File: /home/****/public_html/Sources/PortalAdminArticles.php
Line: 352
      'targetboard' => $_REQUEST['targetboard'],
         )
      );
      list ($topiccount) = $smcFunc['db_fetch_row']($request);
      $smcFunc['db_free_result']($request);

I also thought was odd, it stopped, but I think I noted this above before, because it had done it before if I failed to put it in the original post I apologies, that was not new it was occurring before.

Title: Re: Split Forum Mod
Post by: dougiefresh on January 08, 2018, 11:37:02 AM
Yeah, this mod (Split Forum Mod) does not make any changes to Sources/PortalAdminArticles.php.  Looking on the code in that function, it's highly unlikely that this mod is at fault for those errors....
Title: Re: Split Forum Mod
Post by: SaltedWeb on January 08, 2018, 04:22:31 PM
I was un-enable to resolve it myself, took a new site nothing on it and gave the error.
But in my own case I abandoned the idea to use its, must be something on my end but not sure
what it is. Thanks again.
Title: Re: Split Forum Mod
Post by: SaltedWeb on January 16, 2018, 06:05:36 PM
Touching bases to see if anything came of the issues I was reporting.
I am still finding the errors last reported, this would be 5 sites I installed new and tried it on and
same errors. I have tried placing the Forum in a Directory, even a subdomain and root and repeated the process
each time.  I have reverted back and tried 1.39 and gave the same results so the changes in 1.40 didnt seem to change it.
I am not sure what is triggering it because other then that error it seems to function but I am unsure how that could effect things down the road. Thanks SW

QuoteApply Filter: Only show the error messages of this URL http://*******.com/forum1/index.php?action=admin;area=manageboards;sa=newboard;cat=3;sub=1Apply Filter: Only show the errors with the same message8: Undefined offset: 0Apply Filter: Only show the errors from this file File: /home/un*****/***********.com/Themes/default/languages/ManagePermissions.english.php (modify_board sub template - eval?)
Line: 425

PS : on a clean forum the install and removal gave no errors on this mod. Just using it ti create Boards it looks like.,
Title: Re: Split Forum Mod
Post by: SaltedWeb on January 30, 2018, 09:14:39 PM
Hi Dougie just touching bases has anything else come up with the errors I was getting?

So far have tried on several sites and then just the one mod and it still has this issue. I am not sure how catastrophic it would be if I ignored the error. But Id hate to lose work put in.... 
Title: Re: Split Forum Mod
Post by: dougiefresh on February 07, 2018, 11:01:54 AM
@SaltedWeb:  Sorry about the delay in responding.  I need to ask you to please be patient a little while longer.  God, I hate to spoil surprises, but I've got a MAJOR UPDATE for this mod coming out, as soon as I hammer out the last few issues with the mod....

@Rock Lee:  Can you translate the following text strings into Spanish Latin?
Quote
$txt['subforum_deny'] = 'Deny access to';
$txt['permissiongroup_access_subforums'] = 'Subforum Access';
$txt['subforum_settings_permission_access'] = 'Restrict subforum access using permissions?';
$txt['subforum_settings_permission_access_log'] = 'Log users who access restricted subforums?';
$txt['subforum_access_denied'] = 'Access to this subforum has been denied.';
$txt['wrong_forum'] = 'The board you specified is located on a different forum.';
$txt['subforum_error_bad_membergroup'] = 'You cannot add membergroups that are not associated with this subforum.';
Title: Re: Split Forum Mod
Post by: SaltedWeb on February 07, 2018, 01:23:15 PM
Hi Dougie, hope you didn't think I was pushing about, was just curious. I know that there is allot of work that is gone into making a mod.
And I know you all have day jobs too  ;D
Title: Re: Split Forum Mod
Post by: dougiefresh on February 10, 2018, 12:36:58 PM
Uploaded v2.0 Beta 1 - February 10th, 2018
o Thanks to KSRandom (https://www.simplemachines.org/community/index.php?action=profile;u=478373), control over user membergroups per subforum has been added!
o Complete rewrite of the mod, now includes original line numbers and function names in proper order!
o Modified registration agreement code to provide additional fallback situations.
o Support for SMF 2.1 Beta 3 has been suspended for now.

KNOWN ISSUES:  Any mod that accesses the membergroups table may not get the correct primary membergroup (field id_group) that the user belongs to, due to moving the membergroup per subforum information to a different table.  If you see this issue come up, let me know what mod you are having issues with so that I can fix the issue!  I am NOT going to search and download every mod to find them, as I have a life and a day job!  Thanks!




@KSRandom:  Thank you for your hard work!  It's only been a year in the making!  Hopefully, I haven't missed anything concerning the mod documentation!  If I have, let me know so it can be updated!

@Everybody:  Please note the following:
o Support for SMF 2.1 Beta 3 has been suspended as of this time.  It will be reintroduced at a later time.
o Yes, the file sizes are similar, but the size of changes to SMF 2.0.x's source files increased by 2.5x
o Yes, this is a HUGE update!
o Yes, version 1.40 is being kept on the mod page for now.  If will be removed later....
Title: Re: Split Forum Mod
Post by: SaltedWeb on February 10, 2018, 03:36:20 PM
Hello,
On my test forum installing it comes up:

An Error Has Occurred!
Hacking attempt...

1.   FancyBox 4 SMF   0.5.1.1     
2.   Ultimate Menu   1.0     
3.   Watermark   1.6.4     
4.   SimplePortal   2.3.7     
5.   Tidy Child Boards   2.0

Then shows error  'u*******.smfpm_primary_membergroups' doesn't exist. on a white screen.

It actually disabled the forum can not access anything just comes up.
It was on  test forum luckily.
Title: Re: Split Forum Mod
Post by: SaltedWeb on February 10, 2018, 08:06:54 PM
Add-on I installed this into a site with no mods and got the same read out on installation.  It was a fresh install .
I seem to always have a problem with this one mod it doesn't play nice with any of my domains. I would think it was a server setting
on my end but I have no problems adding editing removing anything just this one, unless some security setting I am unaware of.
Title: Re: Split Forum Mod
Post by: dougiefresh on February 10, 2018, 08:39:48 PM
I've reproduced the bug reports from 2 posts back.  Working to resolve them now.....
Title: Re: Split Forum Mod
Post by: dougiefresh on February 11, 2018, 10:44:47 AM
Uploaded v2.0 Beta 2 - February 11th, 2018
o Made several changes to the database installer to avoid "Hacking attempt" messages.
o Made changes to permissions, membergroups and news code to get them functioning right.
o Removed changes to database support functions, in favor to turning off query checks temporarily.




@Everybody:  I apologize for Beta 1.  The queries I used work fine with MySQL, but I had to modify them so that they work with SMF.....  And yeah, I get the reason for query checks....  But damn, they irritating  O:)
Title: Re: Split Forum Mod
Post by: -Rock Lee- on February 11, 2018, 07:02:25 PM
I was just looking at the translations into Spanish and I finally added new lines so I translated it for this new version and also improve some lines :-[


Regards!
Title: Re: Split Forum Mod
Post by: dougiefresh on February 12, 2018, 10:04:36 AM
@Rock Lee:  Thank you for the translations!  They will be included in the next release.
Title: Re: Split Forum Mod
Post by: dougiefresh on February 17, 2018, 12:25:35 PM
Well, I'm guessing nobody has found anything, so I guess I'm gonna start making a few more modifications.... soon....
Title: Re: Split Forum Mod
Post by: SaltedWeb on February 17, 2018, 06:14:08 PM
Hi Dougie, apologies not getting back to you sooner,
1# Thank you for this update
2#  I have not found any errors or anything been trying different mods on the test site nothing that I can see seem to be working good.

I'll keep poking around have not put it in production yet I have a could sites id like it on but waiting to test a bit more.

Thanks again

SW
Title: Re: Split Forum Mod
Post by: vanbreuk on May 14, 2018, 04:42:14 PM
Hello,

before anything, thanks for all the hard work in a very useful mod.

I'm finding a bug (?)  in Admin > Forum > Boards > Modify Boards > any "Modify" page, apparently related to Sources/ManageBoards.php. First of all, the Modify Boards body section appears to have most of the form fields and text squeezed into the right limit of the frame and barely readable, but a colleague with some CSS knowledge was able to patch this (in core theme CSS, dl.settings was changed to clear: left; and the layout appeared then correctly). However, there's another non-CSS problem: the second drop down menu for the boards list, besides the "Order:" field, only shows eight blank entries under the (Unchanged) default value. Web page source shows <select name="new_cat1" id="new_cat1" onchange="hideBoards(this.options[this.selectedIndex].value);" style="display: none;">

This happens right after installing the Split Forum Mod 2.0 Beta 2 in either default/curve or core theme layouts. Tried in two different SMF 2.0.15 forums, with the following mods installed previously: Alias boards, Pretty URLs, Bookmarks and Enhancements to Recent Posts.

I had tested Split Forum Mod v1.39 a few months ago and there were no problems. Now I got the green light to move on with a complex forum migration and a tight deadline, went with the latest mod version and the migration process is unexpectedly stuck since I cannot reorganize the board structure with this problem...

Any suggestions would be most appreciated, even if you recommend going back to the latest 1.x mod.

Edit: Just to be clear, there is an existing board structure in the database, but the problem happens even before actually adding a secondary forum once the mod is installed successfully.
Title: Re: Split Forum Mod
Post by: Crashingmail on May 26, 2018, 03:51:09 PM
Quote from: dougiefresh on February 17, 2018, 12:25:35 PM
Well, I'm guessing nobody has found anything, so I guess I'm gonna start making a few more modifications.... soon....

Honestly i think i've found something :-(

I installed a fresh 2.0.15 and only the Split Forum Mod 2.0 Beta 2.
Unfortunately the list of child boards may be empty if I want to add one to an existing board and I get the following error messages in the log.
Hope this helps to find the error.

On opening Admin -> Boards
Quote<deleted>?action=admin;area=manageboards;<deleted>
8: Undefined variable: last_forumid
File: <deleted>/forum/Themes/default/ManageBoards.template.php
Line: 67
and
Quote<deleted>?action=admin;area=manageboards;<deleted>
8: Undefined variable: last_forumid
File: <deleted>/forum/Themes/default/ManageBoards.template.php
Line: 69

And as soon i add a new board i receive several times following messages:
Quote<deleted>?action=admin;area=manageboards;sa=newboard;cat=1;sub=0
8: Undefined index: selected
File: <deleted>/forum/Themes/default/ManageBoards.template.php
Line: 457
Quote<deleted>?action=admin;area=manageboards;sa=newboard;cat=1;sub=0
8: Undefined index: id
File: <deleted>/forum/Themes/default/ManageBoards.template.php
Line: 457
Quote<deleted>?action=admin;area=manageboards;sa=newboard;cat=1;sub=0
8: Undefined index: name
File: <deleted>/forum/Themes/default/ManageBoards.template.php
Line: 457
Title: Re: Split Forum Mod
Post by: Klajdi on August 17, 2018, 08:08:07 AM
I'm not sure whether it is only me, but I am having "ERR_TOO_MANY_REDIRECTS" when redirecting instead of showing an error. I believe this is due to Flexible SSL with cloudflare
https://support.cloudflare.com/hc/en-us/articles/115000219871-Why-does-Flexible-SSL-cause-a-redirect-loop-
Now, im not sure whether this is a cloudflare issue or not, but it started occurring as soon as I activated cloudflare.
I am using the 1.38 version on SMF 2.0.13 and it appears to happen only when "Redirect board to correct SubForum instead of error message" is checked.
Edit: Yep,
Sources/Load.php:

$url = (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off' ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

to
$url = (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off' ? 'https://' : 'https://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

Basically ignoring the condition seems to make it work.

And actually, another thing is that when moving hosts, the settings_repair.php file doesnt fix the subforum settings, you have to edit them manually. Im sorry if these are fixed on the newer versions, but i cant seem to find these in changelog.
Title: Re: Split Forum Mod
Post by: dougiefresh on August 17, 2018, 10:51:03 AM
Uploaded v2.0 Beta 3 - August 17th, 2018
o Updated Spanish Latin translation for v2.0 series, courtsey of Rock Lee (https://www.simplemachines.org/community/index.php?action=profile;u=322597)!
o Added code to visually group boards in different sub-forums in ManageBoards.template.php.
o Fixed code that displays the board list in ManageBoards.template.php, based on Crashingmail[/ur] and [url=https://www.simplemachines.org/community/index.php?action=profile;u=437068]vanbreuk (https://www.simplemachines.org/community/index.php?action=profile;u=592984)'s bug report.
o Fixed URL building code in Sources/Load.php, based on Kladji (https://www.simplemachines.org/community/index.php?action=profile;u=464967)'s bug report.




@Rock Lee:  Apologizes for the length of time between you making your translation available for inclusion and the release of this update!  It's been included for this version!  Thank you!

@vanbreuk and Crashingmail:  I believe that both bug reports describe the same issue from different viewpoints.  I've made some changes to ManageBoards.template.php, which should take care of both issues.  Thank you for reporting them!




@Kladji:  I think I've taken care of the first bug you posted about.  However, I'm going to write up a different solution that should/will definitely take care of this issue, once it's in place.  Thank you for that bug report!

The second issue (regarding settings_repair.php) I can't duplicate because I don't have a copy of settings_repair.php available to me to look at....  It's not included in your standard install, so patching it will be problematic unless it is present during installation...
Title: Re: Split Forum Mod
Post by: Kindred on August 17, 2018, 11:02:02 AM
I think that he means repair_settings.php -- the basic tool from our download section to repair the server and database settings in the forum's settings.php file

Of course that file does not take into account this mod, since that file is for the core product. :)
Title: Re: Split Forum Mod
Post by: Klajdi on August 17, 2018, 03:12:45 PM
Quote from: Kindred on August 17, 2018, 11:02:02 AM
I think that he means repair_settings.php -- the basic tool from our download section to repair the server and database settings in the forum's settings.php file

Of course that file does not take into account this mod, since that file is for the core product. :)
Well, yeah, and tbh using the default repair_settings directories (which are saved in database) isnt a good idea either. However maybe joining:
Path to SubForum folder with what is in dir/forum1/index.php
require_once('/XXXXXX/public_html/community/index.php');



EDIT: Just realised the 2nd one requires the default index.php file, so getting the directory from $boarddir wouldn't be that bad. and would be less of a hassle when moving hosts.

And also the fix didnt seem to work (maybe you did sth else, but i just copy pasted the condition to load.php). Also, cloudflare doesnt seem to use port 443. Probably you could make use of HTTP_X_FORWARDED_PROTO header. It returns either https or http (not sure if the ssl is not set to "Flexible")

Maybe im unnecessarily going into this, but here are all the headers
And the request was made over HTTPS


array(50) {
  ["REDIRECT_UNIQUE_ID"]=>
  string(24) "W3cfhkKv7w4AACiWC5gAAAAJ"
  ["REDIRECT_SCRIPT_URL"]=>
  string(27) "/community/Sources/test.php"
  ["REDIRECT_SCRIPT_URI"]=>
  string(58) "http://www.example.com/community/Sources/test.php"
  ["REDIRECT_DOCUMENT_ROOT"]=>
  string(50) "/kunden/XXX/XXX/XXXXXXXX/htdocs/public_html"
  ["REDIRECT_HANDLER"]=>
  string(13) "x-mapp-php5.5"
  ["REDIRECT_STATUS"]=>
  string(3) "200"
  ["UNIQUE_ID"]=>
  string(24) "W3cfhkKv7w4AACiWC5gAAAAJ"
  ["SCRIPT_URL"]=>
  string(27) "/community/Sources/test.php"
  ["SCRIPT_URI"]=>
  string(58) "http://www.example.com/community/Sources/test.php"
  ["HTTP_HOST"]=>
  string(24) "www.example.com"
  ["HTTP_ACCEPT_ENCODING"]=>
  string(4) "gzip"
  ["HTTP_CF_IPCOUNTRY"]=>
  string(2) "NL"
  ["HTTP_CF_RAY"]=>
  string(20) "44be7ca51c06bf70-AMS"
  ["HTTP_X_FORWARDED_PROTO"]=>
  string(5) "https"
  ["HTTP_CF_VISITOR"]=>
  string(18) "{"scheme":"https"}"
  ["HTTP_USER_AGENT"]=>
  string(114) "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36"
  ["HTTP_ACCEPT_LANGUAGE"]=>
  string(14) "en-US,en;q=0.9"
  ["HTTP_ACCEPT"]=>
  string(85) "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
  ["HTTP_X_NEWRELIC_ID"]=>
  string(20) "UQcAV1NaGwAJUVVUAAYB"
  ["HTTP_X_NEWRELIC_TRANSACTION"]=>
  string(76) "PxRTAwRSAQEFBgJbU1NWUVdTFB8EBw8RVU4aBlpaBQsBUFsCCAVRA1MFVUNKQV0GUQZZAAYJFTs="
  ["HTTP_CF_CONNECTING_IP"]=>
  string(11) "85.17.24.66"
  ["PATH"]=>
  string(13) "/bin:/usr/bin"
  ["SERVER_SIGNATURE"]=>
  string(0) ""
  ["SERVER_SOFTWARE"]=>
  string(6) "Apache"
  ["SERVER_NAME"]=>
  string(20) "example.com"
  ["SERVER_ADDR"]=>
  string(13) "XXX.XXX.XXX.XXX"
  ["SERVER_PORT"]=>
  string(2) "80"
  ["REMOTE_ADDR"]=>
  string(11) "85.17.24.66"
  ["DOCUMENT_ROOT"]=>
  string(50) "/kunden/XXX/XXX/XXXXXXXX/htdocs/public_html"
  ["REQUEST_SCHEME"]=>
  string(4) "http"
  ["CONTEXT_PREFIX"]=>
  string(12) "/system-bin/"
  ["CONTEXT_DOCUMENT_ROOT"]=>
  string(24) "/kunden/usr/lib/cgi-bin/"
  ["SERVER_ADMIN"]=>
  string(30) "[email protected]"
  ["SCRIPT_FILENAME"]=>
  string(77) "/kunden/XXX/XXX/XXXXXXXX/htdocs/public_html/community/Sources/test.php"
  ["REMOTE_PORT"]=>
  string(5) "38012"
  ["REDIRECT_URL"]=>
  string(27) "/community/Sources/test.php"
  ["GATEWAY_INTERFACE"]=>
  string(7) "CGI/1.1"
  ["SERVER_PROTOCOL"]=>
  string(8) "HTTP/1.1"
  ["REQUEST_METHOD"]=>
  string(3) "GET"
  ["QUERY_STRING"]=>
  string(0) ""
  ["REQUEST_URI"]=>
  string(27) "/community/Sources/test.php"
  ["SCRIPT_NAME"]=>
  string(27) "/community/Sources/test.php"
  ["STATUS"]=>
  string(3) "200"
  ["ORIG_PATH_INFO"]=>
  string(27) "/community/Sources/test.php"
  ["ORIG_PATH_TRANSLATED"]=>
  string(77) "/kunden/XXX/XXX/XXXXXXXX/htdocs/public_html/community/Sources/test.php"
  ["PHP_SELF"]=>
  string(27) "/community/Sources/test.php"
  ["REQUEST_TIME_FLOAT"]=>
  float(1534533510.1651)
  ["REQUEST_TIME"]=>
  int(1534533510)
  ["argv"]=>
  array(0) {
  }
  ["argc"]=>
  int(0)
}


EDIT2: I kinda see what u did there, however on flexible ssl the origin server doesnt have ssl thus requests are made on port 80 so SERVER_PORT is 80
Title: Re: Split Forum Mod
Post by: Klajdi on August 18, 2018, 05:38:44 AM
Quote from: Klajdi on August 17, 2018, 03:12:45 PM
EDIT: Just realised the 2nd one requires the default index.php file, so getting the directory from $boarddir wouldn't be that bad. and would be less of a hassle when moving hosts.
Im sorry for the double post, but I realised that the first edit of mine is wrong, but what you can do is to actually check the upper folder for the index.php file (since by default the subforum index.php is under the main directory)
Basically check if the ../index.php file exists, if it doesnt then throw an error, if it does then check for $boarddir to verify whether it is the main forums index file.
Title: Re: Split Forum Mod
Post by: chaos40 on November 01, 2018, 10:14:29 PM
Hello.

Awesome mod. I'm using it at my forum.

One hiccup though. When attempting to follow a link to a topic started in the subforum from the recent topics menu on the main forum I'm getting an about the topic being located in another forum.

Any way around this?

thanks
Title: Re: Split Forum Mod
Post by: dougiefresh on November 03, 2018, 10:52:41 PM
Uploaded v2.0 Beta 3.1 - November 3rd, 2018
o No functionality change.
o Updated documentation to point to new website.
Title: Re: Split Forum Mod
Post by: chaos40 on November 04, 2018, 12:47:10 PM
Hello,

Just wonder if perhaps I'm asking the wrong question, or if it's been answered somewhere in the 28 pages of replies or if I'm asking something outside of what the mod was intended to do but every time I view a new topic in the most recent posts section of the board which was started on a sub-forum I get the following error

"the board you specified is located on a different forum"

thanks
Title: Re: Split Forum Mod
Post by: dougiefresh on November 09, 2018, 07:47:10 PM
@chaos40:  What URL are you getting these errors?  Please omit the board URL (with URLs like http://duh.com/index.php?action=recent, you should report this: index.php?action=recent)....
Title: Re: Split Forum Mod
Post by: chaos40 on November 16, 2018, 07:59:26 PM
When I attempt to access a thread started in a subform from the recent activity section of the main forum I'm getting the error I described previously
Title: Re: Split Forum Mod
Post by: ChristianVirtual on January 25, 2019, 07:43:17 PM
Hello,

I',m new into SMF and installed it in the recent days with MySQL as backend. v2.0.15 on PHP 7.3

I want to use SplitForum to have the same forum installation reachable and segregated via different URLs from different domain (I own though).

The basic SMF is working so does the creation of subforms and the call via different URL.
But when I try to create categories I get an error: "syntax error, unexpected end of file"; any idea what goes wrong ? Also tied to use PHP 7.1 with same error.
Title: Re: Split Forum Mod
Post by: -Rock Lee- on January 25, 2019, 08:59:04 PM
Quote from: ChristianVirtual on January 25, 2019, 07:43:17 PM
Hello,

I',m new into SMF and installed it in the recent days with MySQL as backend. v2.0.15 on PHP 7.3

I want to use SplitForum to have the same forum installation reachable and segregated via different URLs from different domain (I own though).

The basic SMF is working so does the creation of subforms and the call via different URL.
But when I try to create categories I get an error: "syntax error, unexpected end of file"; any idea what goes wrong ? Also tied to use PHP 7.1 with same error.

SMF 2.0.15 base has some difficulties in what PHP in branch 7.1 or higher at the moment, in next updates it is about applying changes so that they work correctly. Consequently many modifications usually have problems with the new versions of PHP and the authors are waiting for the new version of SMF 2.1 or simply wait to update it once.


Regards!
Title: Re: Split Forum Mod
Post by: Kindred on January 25, 2019, 08:59:48 PM
SMF should work just fine in 7.1
Title: Re: Split Forum Mod
Post by: Arantor on January 26, 2019, 04:13:14 AM
It will however really not work well in 7.3...
Title: Re: Split Forum Mod
Post by: MegaProyk on March 25, 2019, 06:46:28 PM
Hi,

I just installed this mod and now when I go to Admin -> Forum -> Sections, I have this error : syntax error, unexpected end of file
in all 3 tabs :
Modificate sections
Create a new category
Settings

How can I fix this please ? I don't know nothing about coding (yet)...

Edit : I confirm the error is due to the mod because if I uninstall it I don't have the error anymore.

Thank you :)
Title: Re: Split Forum Mod
Post by: MegaProyk on March 27, 2019, 10:44:43 PM
Hi, I (did a backup and) uploaded a fresh set of files (of the forum not of the mod) but it didn't help.

I have this in my error log :
hxxp:mysite.com/index.php?action=admin;area=packages;sa=uninstall;package=Split_Forum_Mod_v2.0_Beta3.1.zip;pid=38192 [nonactive]: Function create_function() is deprecated
File: [...]www/Sources/Subs.php
Line: 1667 (and a lot more)

About my joined files, between lines 3 and 56 all are "test success".

Can someone help me ?
Dougiefresh ?

SMF Version : 2.0.15
PHP version : 7.2
MySQL : 5.6

Thank you
Title: Re: Split Forum Mod
Post by: GigaWatt on March 27, 2019, 11:30:21 PM
Lower your PHP version to 7.1, you won't get create_function() depreciated error any more ;).
Title: Re: Split Forum Mod
Post by: MegaProyk on March 28, 2019, 12:11:18 AM
Thank you for answering !

But actually I still have the error... I just have to change PHP version in my control pannel host isn't it ?
I also tried with 7.3 but didn't fix it neither :(

Edit : I deleted the mod and reinstalled it, being on 7.1 but I still have the error.
Title: Re: Split Forum Mod
Post by: Kindred on March 28, 2019, 10:11:54 AM
https://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Split Forum Mod
Post by: MegaProyk on March 28, 2019, 02:12:03 PM
Thank you Kindred, but first
"If your forum is version 2.0.x, you can click on the edit icon to the left of the instruction which failed. A pop-up will be generated indicating the specific instruction (the code being looked for and the code to be added or replace)."

I don't have the edit icon... Maybe because I don't have instruction that failed.

Then, what does mean "pass the file" (passer le fichier, in french), on the file I uploaded ?
And "delete the file" (effacer le fichier) ? Do I have to delete something or is it the mod that have to delete something ? And why there is neither "test successful" or "test failure" or "pass the file" wrote ?

On your link : "Otherwise, you can use the parser on the page where you downloaded the mod."
I don't even know which file should I modificate since I don't have any "test failure" and I don't know what means "pass the file"...

I also tried using this mod : https://web-develop.ca/index.php?topic=240.0 with the latest mod version and putting back PHP 7.2 but didn't work.

I just installed the 1.40 mod version and I don't have the problem anymore... But what is the difference between this version and the latest ?

What do you advice me ? :)
Title: Re: Split Forum Mod
Post by: Kindred on March 28, 2019, 02:39:12 PM
SMF does not support php 7.2 at this time. Don't use it.


I don't know about translations...  but it looks like the french translations may be incorrect.
pass the file seems to be "install the file" -- there is no action for you to do except make sure those files get properly copied to the directory as noted.

the other ones regarding "test" would seem to be the success/failure notice


In the case of a failure -- Click on the arrow icon to the left... that will expand the  file that had the failure....  then there should be a pencil icon or something similar to tell you the specific failure.

if you are just talking about errors in the errorlog -- then that has nothing to do with the installation.
Also, make sure your system actually IS using php 7.0 or 7.1


Title: Re: Split Forum Mod
Post by: MegaProyk on March 28, 2019, 03:18:43 PM
Ok for the translation, ty. But... how do I make sure the files get properly copied to the directory ?

I don't have any failure, that's why I don't have the arrow icon. Well I have it but for the files that succeeded.

I was not talking about the error log but I don't understand what you mean. Errors due to mods don't appear in the error log ?

Where can I see which php version my forum is using ? I am/was just changing it on my host control panel, I don't know if it is enough to ensure...

Question about the mod itself : Do I have to create the subdomains (at my host) of the subforums ? I think yes...
Because if I only create a subforum and I click on it, I have a
"Not Found
The requested URL /jeuxvideo/index.php was not found on this server."
white page.

For an other subforum, I have created the subdomain at my host (a few days ago), I changed the URL of my subforum (modify tab) so that it is the url of this subdomain and I have a
"Index of /
Icon  Name                    Last modified      Size  Description"
white page

Is it normal ?
Do I have to upload SMF via FTP on this subdomain or something ?? If yes, I don't really understand the usefulness of this mod (?)

Is there any manual/tutorial to use this mod ?
Title: Re: Split Forum Mod
Post by: Kindred on March 28, 2019, 04:50:39 PM
Ah yes.... THOSE would be instructions for the mod....   and yes, AFAIK, you must create the domain or subdomain prior to activating the mod

I'm not sure how the files are handled...  that would be a question for people who use the mod or the mod author....
but the instructions say:
Quote
On the primary subforum, creating a subforum is as easy as clicking on the Create New SubForum tab (and/or button) and filling out the information in order to create your new subforum.  This mod can create the folder and generate an "index.php" if required.

which suggests that, after you create the subdomain,  you should be able to create the subforum automatically and the index.php will be properly copied into that directory/location.
Title: Re: Split Forum Mod
Post by: MegaProyk on March 28, 2019, 06:01:14 PM
Ok, thank you :)

But if it is supposed to be automatic, it is not working... Do you think I should have something on my subdomain (formations.mysite.com) folder ? I guess yes...
Would the sub be in the www folder ?? In my host cpanel the root is formations (not www/formations) so I don't think so...

I join a screenshot of my FileZila.
Title: Re: Split Forum Mod
Post by: Kindred on March 29, 2019, 08:06:33 AM
since I don't use this mod myself, I think you may have to wait for the mod author to answer at this point....
Title: Re: Split Forum Mod
Post by: MegaProyk on March 29, 2019, 03:17:55 PM
Fine ! Thank you very much :)
Title: Re: Split Forum Mod
Post by: SilverKnight on February 07, 2020, 05:26:47 AM
Is there a hook to get the forumid of a topic or board?
Title: Re: Split Forum Mod
Post by: joshuaO on April 22, 2020, 03:25:27 PM
Quote from: dougiefresh on August 03, 2014, 01:21:43 PM
@DoctorVox: I've figured out why that is happened.  It'll be fixed with the next version.

@skeletonkiss: I've got new code working within the Simple Portal code that will allow you to select which subforum or subforums you want a particular block on.  Attached is a picture....

I know this post is VERY VERY old, but can you share this code? It's what I need
Title: Re: Split Forum Mod
Post by: joshuaO on April 30, 2020, 11:21:00 AM
Hello,
Firstly, I want to say thank you for this wonderful mod, you're a real blessing.

Next, I want to know: is it possible to have an admin for each subforum?
or to have global moderator for each subforum?

Next, can I direct a totally different domain to work with a subforum? For instance, subforum 1: subforum1.com, subforum2: subforum2.com. But all still in the same main forum. Is this possible?

Thank you
Title: Re: Split Forum Mod
Post by: SilverKnight on December 07, 2020, 03:25:24 AM
For recent topics in simple portal, it fails to get the forum id, what is the best method to obtain or create the board's forumid url per the recent posts?