vb.org Archive

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

JAuthement 01-13-2008 10:00 PM

Sub-Forum Dropdown Menu
 
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]
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 --------------------------------------->

Screen Shots Are Located Here:

https://vborg.vbsupport.ru/showthread.php?t=155012

Ranger375 01-14-2008 09:07 AM

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?

JAuthement 01-14-2008 11:58 AM

Quote:

Originally Posted by Ranger375 (Post 1421123)
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?

Edit your forumhome_forumbit_level2_nopost, forumhome_forumbit_level2_post templates. I just made the code generic due to the fact that there are SO many custom templates out there. This is just the code for the drop box.

Regards!

winduff 02-05-2008 08:28 AM

can one make the dropdown menu "nicer", like with CSS or even AJAX?

Ranger375 02-07-2008 12:47 PM

ajax would be sweet

yinyang 03-05-2008 12:11 AM

Quote:

Originally Posted by JAuthement (Post 1421184)
Edit your forumhome_forumbit_level2_nopost, forumhome_forumbit_level2_post templates. I just made the code generic due to the fact that there are SO many custom templates out there. This is just the code for the drop box.

Regards!

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:

Leo Brazil 03-25-2008 08:24 PM

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.

Dark_Wizard 04-18-2008 12:13 AM

Quote:

Originally Posted by Leo Brazil (Post 1474474)
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.


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

trigatch4 04-22-2008 05:12 AM

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?

BuRaCh 04-29-2008 04:42 PM

very cool;)


All times are GMT. The time now is 04:53 PM.

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.01017 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_quote_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