Log in

View Full Version : [SOLVED] adding sub/subforum in dropdown [FORUMDISPLAY]


omardealo
04-10-2015, 04:11 PM
Hello ,

there is way to show subforum on dropdown list in forumhome

how i can add sub/subforum in dropdown (in forumdisplay) ?

https://vborg.vbsupport.ru/attachment.php?attachmentid=68627&d=1187376719

--------------- Added 1428702127 at 1428702127 ---------------

The solution Sub-Forum Dropdown Menu (https://vborg.vbsupport.ru/showthread.php?t=155012) : For Forumdisplay

Step 1. Open:
forumhome_forumbit_level1_nopost
forumhome_forumbit_level1_post

Find:

<strong>$vbphrase[subforums]</strong>: $forum[subforums]


Replace with:

<!-- 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 --------------------------------------->



Step 2. Open:
forumhome_subforumbit_nopost
forumhome_subforumbit_post

Replace the templates with:

<!-- 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 --------------------------------------->