Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2017, 12:49 AM
mchll9898 mchll9898 is offline
 
Join Date: Dec 2009
Location: New England
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Display subforum threads in parent forumdisplay thread list

I would like subforum threads to be displayed along with the main forum's threads in forumdisplay. Is there any setting that could accomplish this? I have tried searching for a mod that can do this but could only find one for vb 3.6.8 here https://vborg.vbsupport.ru/showthread.php?t=158760
Reply With Quote
  #2  
Old 01-14-2017, 01:08 AM
Inked_Mono Inked_Mono is offline
 
Join Date: Jan 2015
Location: Canada
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try something like this?

http://i.imgur.com/I8PCX1f.png
Reply With Quote
  #3  
Old 01-14-2017, 01:13 AM
mchll9898 mchll9898 is offline
 
Join Date: Dec 2009
Location: New England
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Inked_Mono View Post
Try something like this?

http://i.imgur.com/I8PCX1f.png
I tried that, even set the 1's to 0s' and nothing changed?
Reply With Quote
  #4  
Old 01-14-2017, 01:27 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Create a plugin as follows:

Product: vBulletin

Hook Location : forumdisplay_query

Title: Display subforum threads in parent forumdisplay thread list

Execution order: 5

Plugin PHP Code :

PHP Code:
$hook_query_where 'OR thread.forumid IN (' implode(',',$foruminfo['childlist']) . ')'
Plugin is Active: Yes
Reply With Quote
  #5  
Old 01-14-2017, 02:24 AM
mchll9898 mchll9898 is offline
 
Join Date: Dec 2009
Location: New England
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
Create a plugin as follows:

Product: vBulletin

Hook Location : forumdisplay_query

Title: Display subforum threads in parent forumdisplay thread list

Execution order: 5

Plugin PHP Code :

PHP Code:
$hook_query_where 'OR thread.forumid IN (' implode(',',$foruminfo['childlist']) . ')'
Plugin is Active: Yes
This broke my site so I deactivated it. Is there anything wrong with the code?
Reply With Quote
  #6  
Old 01-14-2017, 02:34 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tested it on my local dev site first and it works perfectly...the only thing I would try adding is to put this line of code above the existing code:

PHP Code:
global $foruminfo
Reply With Quote
  #7  
Old 01-14-2017, 02:53 AM
mchll9898 mchll9898 is offline
 
Join Date: Dec 2009
Location: New England
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know why it breaks my site :/

Reply With Quote
  #8  
Old 01-14-2017, 02:56 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mchll9898 View Post
I don't know why it isn't working on my site :/

You haven't reset the plugin as active, according to your screenshot.

What version of vB are you running?
Reply With Quote
  #9  
Old 01-14-2017, 03:46 AM
mchll9898 mchll9898 is offline
 
Join Date: Dec 2009
Location: New England
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh no no haha . It was activated, but I set it to inactive after it broke the site. I took the screen shot after I had already tried it and then deactivated it. I have vb 4.2.
Reply With Quote
  #10  
Old 01-14-2017, 04:01 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have any other plugins hooked at that same location?
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 12:43 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.04501 seconds
  • Memory Usage 2,276KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete