vBulletin Mods

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

Move Sub-forums listing below threads...
by BirdOPrey5
30 Aug 2010 19:03

2 Attachment(s)
By default vBulletin shows the listing of sub-forums above all threads in a forum. This is OK if you have 1 or 2 sub-forums but if you have many sub-forums they can quickly fill the screen and user's won't see any threads at all without scrolling which is very annoying.

There are two ways to do this- the easy way will put ALL sub-forums below your threads... The second way is a little harder but will let you specify in which forums you want to keep the sub-forums on top and in which to move sub-forums below threads.

Live Demo: Here (No longer setup this way.)

Method 1 - Move sub-forums below threads for all forums.

Edit your forumdisplay template:

Find the code:

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

"Cut" the code so it gets deleted but copied to your "clipboard"

Now Find:


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

And above this code "paste" in the code you cut above.

Save the Template- now your sub-forums will show up below your threads in all forums that have sub-forums.


The Second Method:

If you want sub-forums to stay on top in some forums but below threads in others than do the following:

In the forumdisplay template:

Find the line:

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

and change it to:

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

Where X, Y, Z are the forumid's of forums you want the sub-forums BELOW the threads. You can have as many or as few forumid's listed here as you want, just separate each with a comma.

Now copy the entire section of text:


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

and paste the code above the line:


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

Now edit the line you just pasted in:


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

Make sure X, Y, Z are the same forumid's you specified in step 1... also remove the "!" from this line of code so you have:

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

Save your template changes.

Now you will have some forums with sub-forums below the threads and some above the threads. If you ever edit this in the future be sure to edit the forumid's in both places.

Note also: The code I listed is for the default style, it's possible in a custom style your exact code may be a little different so please try to match it up best you can and always copy and paste the actual code from your template and not the code in this example.

---

Download the .txt file for a copy of the install instructions.

---

Please click Install if you use this. :)

SpikedRocker 25 Nov 2011 20:00

If this could be updated for 4.X.X stuff that would be great :-P

BirdOPrey5 25 Nov 2011 21:42

Quote:

Originally Posted by SpikedRocker (Post 2271903)
If this could be updated for 4.X.X stuff that would be great :-P

VB4 Version: http://www.vbulletin.org/forum/showthread.php?t=251127

fxwoody 19 Dec 2011 12:23

Tks buddy, this is mostly useful if you have a chat box in thread views also since it's down under the main threads ;)

Cheers

BirdOPrey5 19 Dec 2011 12:52

Quote:

Originally Posted by fxwoody (Post 2279068)
Tks buddy, this is mostly useful if you have a chat box in thread views also since it's down under the main threads ;)

Cheers

Please "mark as installed" if you are using it. Thanks.


All times are GMT. The time now is 00:52.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, 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.