Back to vBulletin 3.5 Template Modifications

Subforum Drop-down Menu
Mod Version: 1.00, by DanLai

This modification is in the archives.
vB Version: 3.5.0 Rating: (0 vote - 0 average) Installs: 47
Released: 01 Nov 2005 Last Update: Never Downloads: 9
Not Supported  

Description. This is a Mod to make sub-forums appear in a drop-down menu fashion.
  1. +/- sign for forums with/without unread posts
  2. Hierachy show for at most 2 level of sub-forums

Screenshot. Stealed image from the great http://www.stunner-entertainment.com/forum/index.php forum, hope you don't mind!! :nervous:


Step 1. Open:
forumhome_forumbit_level1_nopost
forumhome_forumbit_level1_post
forumhome_forumbit_level2_nopost
forumhome_forumbit_level2_post


Find:
Code:
<strong>$vbphrase[subforums]</strong>: $forum[subforums]
Replace with:
Code:
<!-- Subforum pull-down menu --------------------------------------->
	<form action="forumdisplay.php" method="get">
		<input name="s" value="" type="hidden">
		<input name="daysprune" value="-1" type="hidden">
		<select name="f" onchange="this.form.submit();">
<if condition="$forum[statusicon] == 'new'">
<option value="$forum[forumid]" style="font-weight:bold;">$forum[title]</option>
<else />
<option value="$forum[forumid]">$forum[title]</option>
</if>
			$forum[subforums]
		</select>
                <input class="button" value="$vbphrase[go]" type="submit">
	</form>
<!-- Subforum pull-down menu --------------------------------------->
Step 2. Open:
forumhome_subforumbit_nopost
forumhome_subforumbit_post


Replace the templates with:
Code:
<!-- Subforum pull-down menu --------------------------------------->
<option value="$forum[forumid]">
<if condition="$forum[depth] == '2'">
&nbsp; &nbsp;
</if>
<if condition="$forum[depth] == '3'">
&nbsp; &nbsp; &nbsp; &nbsp;
</if>
<if condition="$forum[statusicon] == 'new'">
+&nbsp;
<else />
-&nbsp;
</if>
$forum[title]
</option>
<!-- Subforum pull-down menu --------------------------------------->
Caution. Not every forum need this, our forum has a lot of forums, and forum names are in different languages, so we have to do this. Otherwise, showing all the forums seems to be better for user-friendliness. :devious:

Download

No files for download.

Screenshots

 


vblts.ru supports vBulletin®, 2022-2024