vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=324198

Display subforum threads in parent forumdisplay thread list
by mchll9898
14 Jan 2017 01:49

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

Inked_Mono 14 Jan 2017 02:08

Try something like this?

http://i.imgur.com/I8PCX1f.png

mchll9898 14 Jan 2017 02:13

Quote:

Originally Posted by Inked_Mono (Post 2580829)
Try something like this?

http://i.imgur.com/I8PCX1f.png

I tried that, even set the 1's to 0s' and nothing changed?

MarkFL 14 Jan 2017 02:27

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

mchll9898 14 Jan 2017 03:24

Quote:

Originally Posted by MarkFL (Post 2580832)
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?

MarkFL 14 Jan 2017 03:34

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.


mchll9898 14 Jan 2017 03:53

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

https://www.vbulletin.org/forum/external/2017/01/15.png

MarkFL 14 Jan 2017 03:56

Quote:

Originally Posted by mchll9898 (Post 2580840)
I don't know why it isn't working on my site :/

https://www.vbulletin.org/forum/external/2017/01/15.png

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

What version of vB are you running?

mchll9898 14 Jan 2017 04:46

Oh no no haha :p. 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.

MarkFL 14 Jan 2017 05:01

Do you have any other plugins hooked at that same location?

mchll9898 14 Jan 2017 05:30

Quote:

Originally Posted by MarkFL (Post 2580844)
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.

MarkFL 14 Jan 2017 18:23

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. :)

mchll9898 14 Jan 2017 21:20

Quote:

Originally Posted by MarkFL (Post 2580865)
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! :) :up::up::up:

The only thing I found wrong was that the child forum icon displays next to all threads including those posted in the parent forum.

MarkFL 14 Jan 2017 23:19

1 Attachment(s)
Quote:

Originally Posted by mchll9898 (Post 2580876)
Wow! Thank you so much!!! It works! :) :up::up::up:

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.

mchll9898 14 Jan 2017 23:55

Quote:

Originally Posted by MarkFL (Post 2580884)
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! :D


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

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.