Back to vBulletin 4.x Template Modifications

Move Sub-forums listing below threads... (vB4)
Mod Version: 1.00, by BirdOPrey5

vB Version: 4.0.x Rating: (8 votes - 5.00 average) Installs: 33
Released: 25 Sep 2010 Last Update: Never Downloads: 67
Not Supported Template Edits Re-usable Code Translations  

This is the vB4 version of my vB3 mod here:Move Sub-forums listing below threads...

Demo: http://www.qapla.com/mods/forumdisplay.php/17-Premium-vBulletin-Modifications?styleid=5

This is a simple template edit to move sub-forums display below the threads in a forum rather than on top like they are now. There are various reasons for this, all come down to personal preference. Personally if I have a lot of sub-forums I want users to be able to see the threads without needing to scroll down.

NOTE - For VB 4.2.1 and any version where the code does not match below, see Post # 28

Spoiler (click to open)


The code seems to have changed in the template at some point.

In 4.2.1 look for the code:

Code:
<vb:if condition="$forumbits">
{vb:raw template_hook.forumdisplay_above_subforums}
<div id="forumbits" class="forumbits">
	<div class="forumhead">
		<h2>
			<span class="forumtitle">{vb:rawphrase subforums}</span>
			<span class="forumthreadpost">{vb:rawphrase threads_posts}&nbsp;</span>
			<span class="forumlastpost">{vb:rawphrase last_post}</span>
		</h2>
	</div>
	<ol>
		{vb:raw forumbits}
	</ol>
</div>
{vb:raw template_hook.forumdisplay_below_subforums}
</vb:if>
CUT the code above (copy to clipboard then delete from the template)

The FIND this code:

Code:
	<div class="threadpagenav<vb:if condition="!$pagenav AND !$forumjump"> nopagenav</vb:if>">
		{vb:raw pagenav}
		{vb:raw forumjump}
	</div>
</div>
and PASTE the code below that.

That should so the same thing in 4.2.1.

If any problems simple undo or "REVERT" the template to get back the VB default template.

Close
for alternate instructions.

In your FORUMDISPLAY template find the code:

Code:
<vb:if condition="$forumbits">
{vb:raw template_hook.forumdisplay_above_subforums}
<div id="forumbits" class="forumbits">
	<div class="forumhead">
		<h2>
			<span class="forumtitle">{vb:rawphrase subforums}</span>
			<span class="forumlastpost">{vb:rawphrase last_post}</span>
		</h2>
	</div>
	<ol>
		{vb:raw forumbits}
	</ol>
	{vb:raw forumhome_markread_script}
</div>
</vb:if>
And "CUT" it to your clipboard... (Copy it and delete it but save a copy)

Now find:

Code:
	<div class="threadpagenav">
		{vb:raw pagenav}
		{vb:raw forumjump}
	</div>
</div>
And below that PASTE the code you cut above...

And that's it, now your sub-forums will show under your threads. See the screen shot.

Download the .txt file as a backup.

Please Mark as Installed if you use this.

Download

File Type: %1$s subforum_display_below_threadsv4.txt (1.2 KB, 74 downloads)

Screenshots

Click image for larger version
Name:	ss_subforums_below_v4.jpg
Views:	1788
Size:	105.4 KB
ID:	122321  

Similar Mods

Social Group and Album Enhancements Move Threads from Forums to Social Groups vBulletin 3.8 Add-ons
Forum Display Enhancements Move Sub-forums listing below threads... vBulletin 3.8 Template Modifications

vblts.ru supports vBulletin®, 2022-2024