Slave
11-12-2005, 10:00 PM
Hack:
Better Sub-Forum Placement
Inspired by the "Better Similar Threads Placement" hack which can be found at the following URL:
https://vborg.vbsupport.ru/showthread.php?t=81453
Author:
Slave
vBulletin Version:
Tested on 3.0.3 - but should work on all 3.0 versions.
Problem:
If you have a large amount of Sub-Forums within a forum users have to scroll past them to view threads.
Solution:
This hack places the list of Sub-Forums within a drop-down menu meaning no more scolling for your users. If the forum in question has no threads and only Sub-Forums, the Sub-Forums are shown as normal.
Install time:
About 2 mins, if that! :)
Number of Templates to edit:
1
Instalation Instructions:
Open your default FORUMDISPLAY template ..
----------------------------
FIND:
<if condition="$show['forumslist']">
<!-- sub-forum list -->
ABOVE that add:
<if condition="$show['threadslist']">
<else />
----------------------------
FIND:
<br />
<!-- / sub-forum list -->
BELOW that add:
</if>
----------------------------
FIND:
<td class="vbmenu_control" id="forumsearch"><a href="#goto_forumsearch">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script></td>
</if>
BELOW that add:
<if condition="$show['forumslist']"><td class="vbmenu_control" id="relatedtools"><a href="#goto_relatedtools">Sub Forums</a> <script type="text/javascript"> vbmenu_register("relatedtools"); </script></td></if>
----------------------------
FIND:
<!-- popup menu contents -->
BELOW that add:
<!-- related tools menu -->
<if condition="$show['forumslist']">
<div class="vbmenu_popup" id="relatedtools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr></td>
<!-- sub-forum list -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
<thead>
<tr align="center">
<td class="thead"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
$forumbits
</table>
<!-- / sub-forum list -->
</td></tr>
</table>
</div>
</if>
<!-- / related tools menu -->
----------------------------
That it!
Save FORUMDISPLAY and you've done.
Better Sub-Forum Placement
Inspired by the "Better Similar Threads Placement" hack which can be found at the following URL:
https://vborg.vbsupport.ru/showthread.php?t=81453
Author:
Slave
vBulletin Version:
Tested on 3.0.3 - but should work on all 3.0 versions.
Problem:
If you have a large amount of Sub-Forums within a forum users have to scroll past them to view threads.
Solution:
This hack places the list of Sub-Forums within a drop-down menu meaning no more scolling for your users. If the forum in question has no threads and only Sub-Forums, the Sub-Forums are shown as normal.
Install time:
About 2 mins, if that! :)
Number of Templates to edit:
1
Instalation Instructions:
Open your default FORUMDISPLAY template ..
----------------------------
FIND:
<if condition="$show['forumslist']">
<!-- sub-forum list -->
ABOVE that add:
<if condition="$show['threadslist']">
<else />
----------------------------
FIND:
<br />
<!-- / sub-forum list -->
BELOW that add:
</if>
----------------------------
FIND:
<td class="vbmenu_control" id="forumsearch"><a href="#goto_forumsearch">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script></td>
</if>
BELOW that add:
<if condition="$show['forumslist']"><td class="vbmenu_control" id="relatedtools"><a href="#goto_relatedtools">Sub Forums</a> <script type="text/javascript"> vbmenu_register("relatedtools"); </script></td></if>
----------------------------
FIND:
<!-- popup menu contents -->
BELOW that add:
<!-- related tools menu -->
<if condition="$show['forumslist']">
<div class="vbmenu_popup" id="relatedtools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr></td>
<!-- sub-forum list -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
<thead>
<tr align="center">
<td class="thead"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
$forumbits
</table>
<!-- / sub-forum list -->
</td></tr>
</table>
</div>
</if>
<!-- / related tools menu -->
----------------------------
That it!
Save FORUMDISPLAY and you've done.