vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Forum Home Enhancements - Sub-Forum Dropdown Menu (https://vborg.vbsupport.ru/showthread.php?t=155012)

JAuthement 08-11-2007 10:00 PM

Sub-Forum Dropdown Menu
 
This is NOT my creation but it has yet to be posted in the vBulletin 3.6 Template Modifications Section. This mod was originally posted in the 3.5 Section by DanLai https://vborg.vbsupport.ru/showthread.php?t=99821

I have though tweaked it a bit for use with vB 3.6.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]
Replace with:
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 --------------------------------------->

Step 2. Open:
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'">
+&nbsp;
<else />
-&nbsp;
</if>

$forum[title]

</option>
<!-- Subforum pull-down menu --------------------------------------->


Kaleem 08-12-2007 09:35 PM

good one thanks :)

FReeSTER 08-14-2007 04:15 AM

Thank you :up:

BigDog56 08-14-2007 06:49 AM

Very nice! Thank you!

Tygerwoody 08-16-2007 12:42 PM

mod isn't working for me for some reason. Is there something I have to do to "turn it on"? This is the first mod I have ever had problems with. I currently have about 12 mods now.

Tygerwoody 08-16-2007 01:11 PM

nm works now :)

4x4 Mecca 08-17-2007 03:56 AM

Installed and working fine. Is there a way to get this to display in forumdisplay also? So in my forum, I can have a drop down of it's sub forums.

rapidphim 08-17-2007 04:54 AM

any screenshot/demo of this hack?

markdekwant 08-17-2007 02:29 PM

screenshot please

dbirosel 08-17-2007 04:01 PM

screenshot please!!


All times are GMT. The time now is 09:55 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.01192 seconds
  • Memory Usage 1,733KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete