The Arcive of vBulletin Modifications Site. |
|
Sub-Forum Dropdown Menu Details »»
|
|||||||||||||||||||||||||
This is template mod I released for 3.6 Seeing that the original vB code remained the same the template edits should still work in 3.7.x.
Description. This is a Mod to make sub-forums appear in a drop-down menu fashion. 1. +/- sign for forums with/without unread posts Step 1. Open: forumhome_forumbit_level2_nopost forumhome_forumbit_level2_post Find: Code: Code:
<strong>$vbphrase[subforums]</strong>: $forum[subforums] Code: 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();">
<option value="$forum[forumid]" selected><strong>Sub Forums</strong></option>
$forum[subforums]
</select>
</form>
<!-- Subforum pull-down menu --------------------------------------->
forumhome_subforumbit_nopost forumhome_subforumbit_post Replace the templates with: Code: Code:
<!-- Subforum pull-down menu ---------------------------------------> <option value="$forum[forumid]"> <if condition="$forum[statusicon] == 'new'"> + <else /> - </if> $forum[title] </option> <!-- Subforum pull-down menu ---------------------------------------> https://vborg.vbsupport.ru/showthread.php?t=155012 Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
In the images, it shows the sub cat box directly to the right of the main category title. Mine are appearing underneath. Is there any way to fix this?
|
|
#3
|
|||
|
|||
|
Quote:
Regards! |
|
#4
|
|||
|
|||
|
can one make the dropdown menu "nicer", like with CSS or even AJAX?
|
|
#5
|
|||
|
|||
|
ajax would be sweet
|
|
#6
|
||||
|
||||
|
Okay, that makes sense... but what would be the exact code? Sorry i'm a bit of a dunce when it comes to formatting... and other things.:erm:
|
|
#7
|
||||
|
||||
|
I've just upgraded to 3.7 and also upgraded with this one too.
How about some tips just to add some background colors on the boxes and fonts ? Tks. |
|
#8
|
|||
|
|||
|
Quote:
Change these in all the edits above: <option value="$forum[forumid]" to this: <option value="$forum[forumid]" class="alt1" This will match your forum color or you can replace class"alt1" with this: style="background-color: Gray;" and change Gray to whatever color you want. Bob |
|
#9
|
|||
|
|||
|
For some reason this shifts my forum to the right about 20 pixels. It throws off the alignment but I would LOVE to use it otherwise. Anyone else run into this problem?
|
|
#10
|
|||
|
|||
|
very cool
|
![]() |
|
|