Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Mods for 3.7.x vBulletin Mods for 3.7, vBulletin hacks, vBulletin modification, vBulletin 3.7

Mods for 3.7.x Thread, Show all subforum threads in main forum for vB3.7.x (no extra queries) in Mods; Show all subforum threads in main forum for vB3.7.x (no extra queries) Was looking for such hack but couldn't find ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3788


Reply
LinkBack Thread Tools Display Modes
Show all subforum threads in main forum for vB3.7.x (no extra queries)
 
 
The God Father
Developer's Avatar

Reply With Quote
 
Join Date: Jul 2008
Location: NDC
Posts: 5,425
25-09-2008, 11:48 PM
 
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)


__________________
I Love Walking In The Rain Cuz Nobody Know I'm Crying !!
 
 
 
Reply

Mods for 3.7.x Thread, Show all subforum threads in main forum for vB3.7.x (no extra queries) in Mods; Show all subforum threads in main forum for vB3.7.x (no extra queries) Was looking for such hack but couldn't find ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3788


Bookmarks

Tags
extra, forum, main, queries, show, subforum, threads, vb37x


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access Queries Developer Articles 0 17-11-2008 01:31 AM
Extra Threadfields Lite(Add Text, Radio, Drop Down, & Checkbox Fields To Threads!) Developer Mods for 3.7.x 0 02-11-2008 08:57 PM
Maximum New Threads/Replies Per X hours Per Usergroup & Forum Developer Mods for 3.6.x 0 30-10-2008 04:27 AM
Egypt’s main index falls 16.4% Developer News 0 08-10-2008 03:20 PM
Forum-wide Search For Unanswered Threads Developer Mods for 3.7.x 0 25-09-2008 03:12 PM