Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 14 Jan 2017, 01:49
mchll9898 mchll9898 is offline
 
Join Date: Dec 2009
Question 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 http://www.vbulletin.org/forum/showthread.php?t=158760
Reply With Quote
  #2  
Old 14 Jan 2017, 02:08
Inked_Mono Inked_Mono is offline
 
Join Date: Jan 2015
Try something like this?

http://i.imgur.com/I8PCX1f.png
Reply With Quote
  #3  
Old 14 Jan 2017, 02:13
mchll9898 mchll9898 is offline
 
Join Date: Dec 2009
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 14 Jan 2017, 02:27
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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 :


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Plugin is Active: Yes
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #5  
Old 14 Jan 2017, 03:24
mchll9898 mchll9898 is offline
 
Join Date: Dec 2009
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 :


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Plugin is Active: Yes
This broke my site so I deactivated it. Is there anything wrong with the code?
Reply With Quote
  #6  
Old 14 Jan 2017, 03:34
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #7  
Old 14 Jan 2017, 03:53
mchll9898 mchll9898 is offline
 
Join Date: Dec 2009
I don't know why it breaks my site :/

Reply With Quote
  #8  
Old 14 Jan 2017, 03:56
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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?
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #9  
Old 14 Jan 2017, 04:46
mchll9898 mchll9898 is offline
 
Join Date: Dec 2009
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 14 Jan 2017, 05:01
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Do you have any other plugins hooked at that same location?
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #11  
Old 14 Jan 2017, 05:30
mchll9898 mchll9898 is offline
 
Join Date: Dec 2009
Originally Posted by MarkFL View Post
Do you have any other plugins hooked at that same location?
No, I don't have any other plugins that have forumdisplay_query as the hook location.
Reply With Quote
  #12  
Old 14 Jan 2017, 18:23
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I have published a more general purpose product based on your request, and I have cited you as a co-author/supporter:

Show Subforum Threads

This is more complete, and gets the correct thread count and threadids, and modifies different queries than the plugin I posted above.

Please give this a try and let me know if it works for you, and if so, if you would like any additional features.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #13  
Old 14 Jan 2017, 21:20
mchll9898 mchll9898 is offline
 
Join Date: Dec 2009
Originally Posted by MarkFL View Post
I have published a more general purpose product based on your request, and I have cited you as a co-author/supporter:

Show Subforum Threads

This is more complete, and gets the correct thread count and threadids, and modifies different queries than the plugin I posted above.

Please give this a try and let me know if it works for you, and if so, if you would like any additional features.
Wow! Thank you so much!!! It works!

The only thing I found wrong was that the child forum icon displays next to all threads including those posted in the parent forum.
Reply With Quote
  #14  
Old 14 Jan 2017, 23:19
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by mchll9898 View Post
Wow! Thank you so much!!! It works!

The only thing I found wrong was that the child forum icon displays next to all threads including those posted in the parent forum.
I have attached a tentative update, version 1.1, of this product. Please download and install it and let me know if the subforum icon issue is resolved.

If it is, then I will update the published product.
Attached Files
File Type: xml product-markflshowsuforumthreads.xml (6.3 KB, 4 views)
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #15  
Old 14 Jan 2017, 23:55
mchll9898 mchll9898 is offline
 
Join Date: Dec 2009
Originally Posted by MarkFL View Post
I have attached a tentative update, version 1.1, of this product. Please download and install it and let me know if the subforum icon issue is resolved.

If it is, then I will update the published product.
This fixed the issue! You're awesome! Thank you so much!
Reply With Quote
Reply



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

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


New To Site? Need Help?

All times are GMT. The time now is 22:13.

Layout Options | Width: Wide Color: