PDA

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


hoku
08 Jun 2008, 09:08
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):
WHERE forumid = $foruminfo[forumid]

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

RedTrinity
08 Jun 2008, 09:53
Would appreciate a screenshot or demo :)

silver surfer
08 Jun 2008, 09:59
yup...screeny, please

kollam003
08 Jun 2008, 13:45
yup screens please

furst
08 Jun 2008, 15:54
Demo please.

suiz
08 Jun 2008, 16:32
Demo please.

MikeHolohan
08 Jun 2008, 18:14
Screenshot?

saviola8x
08 Jun 2008, 19:50
oh my god.... @@"

i need demo :|

bornoffire
08 Jun 2008, 21:14
screenshot?

Freekurd
08 Jun 2008, 21:19
screens please?

Hornstar
08 Jun 2008, 23:04
o_O ive never seen so many requests for screenshots and demos before lol, i think he gets the point. lol

Anyway, I'll check back when you do have that demo or screenshot up ^^

hoku
10 Jun 2008, 12:08
wow... okok!!! screenshots added to main post

it is a fresh installation
left pic is before-hack, right pic is after-hack

in the after-hack pic, the threads you see in the main forum are from the subforums, the main forum has no threads by itself.

saviola8x
10 Jun 2008, 19:02
oh my god...
i love it :x
Thanks

pcoskat
10 Jun 2008, 23:21
Love This! :d

vBarab
11 Jun 2008, 17:27
woooooooooow hoku

nando99
12 Jun 2008, 13:33
this is a great mod - would this work for 3.6.8?

gwerzal
12 Jun 2008, 18:47
Can this be done for specific forums or is it site wide.

mad@Max
08 Jul 2008, 19:21
Oh yes! Very was needed!!!

TheInsaneManiac
26 Jul 2008, 12:27
Now does this do this for ALL forums or is there a way we can specify only certain ones?

gwerzal
30 Jul 2008, 01:06
I need to know that as well.

Would be very useful for a certain section of my site.

pnosko31
31 Aug 2008, 04:10
1st: yes it would be good to specify by forum

2nd


WHERE forumid = $foruminfo[forumid]


is nowhere in forumdisplay.php

nando99
09 Sep 2008, 19:45
Is there anyway to get this to work on a per forum basis? I want to allow all the subforum posts to show but I dont want the main forum being posted to directly. I can't use it on global level though. Thanks in advance - this is something I wanted for a very long time.

gwerzal
11 Sep 2008, 01:37
i no i need this but only for a few forums and definately not all of them.

Leo Brazil
11 Sep 2008, 19:05
Did someone here already install this mod and mind to share a link as a demo ?

Cheers

Pure Dope
15 Sep 2008, 06:08
This this would work w/3.6.8??? ?=x

gwerzal
19 Sep 2008, 04:28
I did install it but un-installed it as it is not forum specific. If it was it would be a great mod

Baldilocks
19 Sep 2008, 04:36
Could come in quite handy. :)

gwerzal
19 Sep 2008, 12:25
Very handy.

Does nobody want to have another go.

pnosko31
21 Sep 2008, 00:38
I actually did find a way to use this on my forum and just for a specific category. Thanks.

Pure Dope
21 Sep 2008, 23:03
if (1 == 1) could be if(1) i believe

Pure Dope
21 Sep 2008, 23:18
does work with 3.6.8

Pure Dope
21 Sep 2008, 23:19
i believe to be forum specific you would have to do this

WHERE forumid IN ($foruminfo[forumid]," . implode(',',$foruminfo['childlist']) . ")

change that to

WHERE forumid IN (x, y, z)

where x y and z are forumIds. dont quote me on this....just try it. if not...then its probably a problem w/the sql.

jawatkin
25 Sep 2008, 13:00
Not sure I understand this... Why have subforums, then? Couldn't something similar be achieved without subforums, requiring prefixes in the forum that are choice "subforum 1" "subforum 2" and "subforum 3"?

Marcus_Fenix
22 Oct 2008, 12:19
-edit- it's working ;)

LuBi
27 Oct 2008, 05:18
Not sure I understand this... Why have subforums, then? Couldn't something similar be achieved without subforums, requiring prefixes in the forum that are choice "subforum 1" "subforum 2" and "subforum 3"?

I haven't tried this mod yet but I plan on it later tonight. I'll use this are an organizational tool believe it or not. This will bring attention to threads in subforums the average user might not participate in. All this while still providing organization to those who wish to visit the subforum. For example, think of a general forum.. inside that general forum there is a subforum for new members. Most long time members won't waste time in the new members subforum. With this mod they might see a thread title that peeks their interest and in turn will reply. The only concern with this mod I would have is if people would stop using the subforum itself confusing the main forum with it and starting off-forum new threads.

As for prefixes, it might just be me but I hate how vB handles them. The original prefix hacks from previous versions of vB were much better.

GlamRockTalk
15 Dec 2008, 22:00
If someone can get this working for only certain forums, it would be 'the balls' :D

But, does as it says, so it's cool with me :)

pnosko31
26 Dec 2008, 09:36
I have a forum with a large number of images in different categories - i use this so that members can click a link that says new images and this pulls the list of images from all categories.

GlamRockTalk
26 Dec 2008, 15:32
pnosko31, can you show an example of what you're referring to. Sounds interesting.

vBRiP
19 May 2010, 06:04
nice thanks

BirdOPrey5
24 Jun 2010, 22:33
This is great- any ideas on how it might be adapted to work on other forums within the same site, not subforums... example if I have the following top level forums:
-Off Topic
-Health
-Cars
-Poker
-Home Improvement

As is people usually post topics only in "Off Topic" and I move them to the appropriate forum... it would be great if even after being moved the thread would continue to be viewable in Off Topic but the thread is physically located for lack of a better term in a different forum, and posts/replies to the thread from either forum get added to the original thread.

BirdOPrey5
29 Jun 2010, 14:07
This is great- any ideas on how it might be adapted to work on other forums within the same site, not subforums... example if I have the following top level forums:
-Off Topic
-Health
-Cars
-Poker
-Home Improvement

As is people usually post topics only in "Off Topic" and I move them to the appropriate forum... it would be great if even after being moved the thread would continue to be viewable in Off Topic but the thread is physically located for lack of a better term in a different forum, and posts/replies to the thread from either forum get added to the original thread.

done. Master Forums / All Topic - Show threads from multiple forums in a single forum. (http://www.vbulletin.org/forum/showthread.php?t=245414)

rmani84
04 Jul 2010, 10:20
wow :) cooool ... precisely what i was looking for ...
And way too simple to implement ... u simply rock.

Jalo
17 Aug 2011, 14:46
Applied to vBulletin 3.8.7 Patch Level 2 and it works! Awesome.

Jalo