Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Sub-Forum Dropdown Menu Details »»
Sub-Forum Dropdown Menu
Version: 1.00, by JAuthement JAuthement is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.x Rating:
Released: 01-13-2008 Last Update: Never Installs: 46
Template Edits
Re-useable Code  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-14-2008, 09:07 AM
Ranger375 Ranger375 is offline
 
Join Date: Jun 2007
Location: VA
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 01-14-2008, 11:58 AM
JAuthement JAuthement is offline
 
Join Date: Apr 2004
Location: U.S.A.
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ranger375 View Post
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!
Reply With Quote
  #4  
Old 02-05-2008, 08:28 AM
winduff winduff is offline
 
Join Date: Nov 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can one make the dropdown menu "nicer", like with CSS or even AJAX?
Reply With Quote
  #5  
Old 02-07-2008, 12:47 PM
Ranger375 Ranger375 is offline
 
Join Date: Jun 2007
Location: VA
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ajax would be sweet
Reply With Quote
  #6  
Old 03-05-2008, 12:11 AM
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
Location: Los Angeles
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JAuthement View Post
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:
Reply With Quote
  #7  
Old 03-25-2008, 08:24 PM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 04-18-2008, 12:13 AM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Leo Brazil View Post
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
Reply With Quote
  #9  
Old 04-22-2008, 05:12 AM
trigatch4 trigatch4 is offline
 
Join Date: Feb 2007
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 04-29-2008, 04:42 PM
BuRaCh BuRaCh is offline
 
Join Date: Aug 2006
Location: istanbul/turkey
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very cool
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:14 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09476 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete