![]() |
Better Sub-Forum Placement
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.5.1 - but should work on all 3.5 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: Code:
<if condition="$show['forumslist']"> Code:
<if condition="$show['threadslist']"> FIND: Code:
<br /> Code:
</if> FIND: Code:
<td class="vbmenu_control" id="forumsearch"><a href="#goto_forumsearch">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script></td> Code:
<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: Code:
<!-- popup menu contents --> Code:
<!-- related tools menu --> That it! Save FORUMDISPLAY and you've done. |
Here's a screen shot of how it looks once the hack is added ..
If you'd like to see it in action pop along to .. http://www.savageforums.com .. and pick any forum with a subforum within it .. |
Nice hack. Thank you
First clicked Install |
Hey, thanks G-Force .. :)
This is my first "hack" .. so I'm glad you liked it. |
Any way to put this on the main forum index?
|
*NOTE* if you are using GARS, then the template you will need to change is GARS_forumdisplay not FORUMDISPLAY
First bug (well actually this is an instructions bug): for vB3.5.1 search phrase is wrong: Code:
<td class="vbmenu_control" id="forumsearch"><a href="#goto_forumsearch">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script></td> Code:
<td class="vbmenu_control" id="forumsearch" nowrap="nowrap"><a href="$show[nojs_link]#goto_forumsearch" rel="nofollow">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script></td> Code:
<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> Code:
<if condition="$show['forumslist']"><td class="vbmenu_control" id="relatedtools"><a href="$show[nojs_link]#goto_relatedtools">Sub Forums</a> <script type="text/javascript"> vbmenu_register("relatedtools"); </script></td></if> Code:
<!-- related tools menu --> Code:
<!-- related tools menu --> -John |
Nice idea, but I'd imagine that a lot of users who are unfamiliar with forums (ok, so there's probably not going to be that many) wouldn't know those Sub-Forums existed.
|
ermm looks kinda funny in FF, any chance on fixing?
|
Quote:
|
Quote:
|
All times are GMT. The time now is 09:00 PM. |
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:
|