Back to vBulletin 3 Articles

Show all subforum threads in main forum for vB3.7.x (no extra queries)
by hoku 08 Jun 2008
Rating: (1 vote - 5.00 average)

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
Attached Thumbnails
Click image for larger version
Name:	hack-before.jpg
Views:	1457
Size:	67.3 KB
ID:	82031   Click image for larger version
Name:	hack-after.jpg
Views:	1676
Size:	78.3 KB
ID:	82033  

vblts.ru supports vBulletin®, 2022-2024