Show all subforum threads in main forum for vB3.7.x (no extra queries)

Empty2002

New member
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:
WHERE forumid = $foruminfo[forumid]

change all of them to:

PHP:
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:
if ($foruminfo['cancontainthreads'])
change to:
PHP:
if (1 == 1)


 
Back
Top