This is a quick hack I made since no one else had done it (I think...I couldn't find one ) and I needed it and I think a lot of people could find it helpful, especially those who has a ton of forums and subforums.
This hack allows you to select which forums will show up in forumjump. Note that it will automatically hide subforums in forumjump to forums that's set as invisible on forumjump.
CHANGELOG FOR 1.2:
I've added a new function that lists all forums in forumjump, regardless of forumjump "settings". We need this function for the Admin Options in showthread.php, where you need to be able to move, split and merge threads for all forums.
Optionally, you could use this new function wherever you wish to display all forums in forumjump. To do this, you have to change which function the file uses for forumjump. In example, if you wish to do this for online.php, REPLACE makeforumjump(); WITH makeforumjumpall();
UPGRADING:
See below.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
After installing it, I discovered a limitation (at least in my setup - 2.2.9).
The hack will work well for first level forums and their subforums. But it won't work for third level forums and deeper. Instead, those forums will simply fail to appear anywhere when removed from forumjump.
I've got forums that go four levels deep with the intent of going deeper. Would be cool to clean up the forumjump display a bit.
Ok, installed in 2.2.9 and works great. I have one question though. Is it possible to have a parent forum NOT show up in the forum jump, but have a child forum of that parent forum still show up? For example:
Normal Forum Jump:
--------Parent--------
Child 1
Child 2
etc..
What I am looking to do:
Child 1
Child 2
I just don't want the parent forums showing in forum jump.
Yes, all sub-forums to the one you select to be hidden will also be hidden. There's no easy way of displaying subforums only (exclude parent forums), afaik.
Originally posted by Edgemyster Cool hack - I could use it for sure.
After installing it, I discovered a limitation (at least in my setup - 2.2.9).
The hack will work well for first level forums and their subforums. But it won't work for third level forums and deeper. Instead, those forums will simply fail to appear anywhere when removed from forumjump.
I've got forums that go four levels deep with the intent of going deeper. Would be cool to clean up the forumjump display a bit.
Yes, you're correct. I will try to fix this tonight.
Thanks for taking a peek at that... but, I'm unfortunately getting the same results.
I compared your new attachment and the old together and noticed that you changed "forumdisplay=1" to "forumjump=1" in the FORUMDISPLAY.PHP and ONLINE.PHP files - were there any other changes I missed?
Do you still have the old attachment? If so, undo the changes you did to forumdisplay.php and online.php. If not, download the old file (post just above yours) and you'll know what changes to undo.
Once you have done this, do the new changes to forumdisplay.php and online.php, they're listed in my attachment in the first post.
Oh yeah, that forumdisplay=1 was a typo, it's supposed to be forumjump=1.