vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Show all subforum threads in main forum for vB3.7.x (no extra queries) (https://vborg.vbsupport.ru/showthread.php?t=181876)

hoku 06-07-2008 10:00 PM

Show all subforum threads in main forum for vB3.7.x (no extra queries)
 
1 Attachment(s)
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


RedTrinity 06-08-2008 08:53 AM

Would appreciate a screenshot or demo :)

silver surfer 06-08-2008 08:59 AM

yup...screeny, please

kollam003 06-08-2008 12:45 PM

yup screens please

furst 06-08-2008 02:54 PM

Demo please.

suiz 06-08-2008 03:32 PM

Demo please.

MikeHolohan 06-08-2008 05:14 PM

Screenshot?

saviola8x 06-08-2008 06:50 PM

oh my god.... @@"

i need demo :|

bornoffire 06-08-2008 08:14 PM

screenshot?

Freekurd 06-08-2008 08:19 PM

screens please?


All times are GMT. The time now is 11:51 PM.

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.01621 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete