vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   [SOLVED] adding sub/subforum in dropdown [FORUMDISPLAY] (https://vborg.vbsupport.ru/showthread.php?t=318196)

omardealo 04-10-2015 04:11 PM

[SOLVED] adding sub/subforum in dropdown [FORUMDISPLAY]
 
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/attachmen...7&d=1187376719

--------------- Added [DATE]1428702127[/DATE] at [TIME]1428702127[/TIME] ---------------

The solution Sub-Forum Dropdown Menu : For Forumdisplay

Step 1. Open:
forumhome_forumbit_level1_nopost
forumhome_forumbit_level1_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();">
                <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:

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



All times are GMT. The time now is 09:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01750 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete