Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Show all subforum threads in main forum for vB3.7.x (no extra queries)
hoku
Join Date: May 2006
Posts: 3

 

Show Printable Version Email this Page Subscription
hoku hoku is offline 06-07-2008, 10:00 PM

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 Images
File Type: jpg hack-before.jpg (67.3 KB, 0 views)
File Type: jpg hack-after.jpg (78.3 KB, 0 views)
Reply With Quote
  #42  
Old 06-29-2010, 01:07 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
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.
Reply With Quote
  #43  
Old 07-04-2010, 09:20 AM
rmani84 rmani84 is offline
 
Join Date: Jul 2010
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow cooool ... precisely what i was looking for ...
And way too simple to implement ... u simply rock.
Reply With Quote
  #44  
Old 08-17-2011, 01:46 PM
Jalo Jalo is offline
 
Join Date: Apr 2009
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Applied to vBulletin 3.8.7 Patch Level 2 and it works! Awesome.

Jalo
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 08:10 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04158 seconds
  • Memory Usage 2,256KB
  • Queries Executed 19 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (2)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete