Show all subforum threads in main forum for vB3.7.x (no extra queries)
Was looking for such hack but couldn't find one for 3.7.x, so I made my own, I hope this will save some time for the next guy.
Edit forumdisplay.php
find (
3 of them):
PHP Code:
WHERE forumid = $foruminfo[forumid]
change
all of them to:
PHP Code:
WHERE forumid IN ($foruminfo[forumid]," . implode(',',$foruminfo['childlist']) . ")
Note:
Remember to set the main forum to allow posting new threads, otherwise you won't see the thread list in forumdisplay.
If you don't want to allow posting of new threads in the main forum, but still want to display all the subforum threads, then make this additional change, beware that this quick method applies to all forums:
Edit forumdisplay.php (you only need this
IF you have set the main forum to not allow posting new threads)
Find:
PHP Code:
if ($foruminfo['cancontainthreads'])
change to:
PHP Code:
if (1 == 1)