![]() |
Move Sub-forums listing below threads...
1 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: Code:
<if condition="$show['forumslist']"> Now Find: Code:
$ad_location[ad_forumdisplay_afterthreads 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: Code:
<if condition="$show['forumslist']"> Code:
<if condition="$show['forumslist'] AND !in_array($GLOBALS[forumid], array(X, Y, Z))"> Now copy the entire section of text: Code:
<if condition="$show['forumslist'] AND !in_array($GLOBALS[forumid], array(X, Y, Z))"> Code:
$ad_location[ad_forumdisplay_afterthreads Code:
<if condition="$show['forumslist'] AND !in_array($GLOBALS[forumid], array(X, Y, Z))"> Code:
<if condition="$show['forumslist'] AND in_array($GLOBALS[forumid], array(X, Y, Z))"> 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. :) |
If this could be updated for 4.X.X stuff that would be great :-P
|
Quote:
|
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 |
Quote:
|
All times are GMT. The time now is 01:32 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|