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

Reply
 
Thread Tools
Subforum Drop-down Menu Details »»
Subforum Drop-down Menu
Version: 1.00, by DanLai DanLai is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-31-2005 Last Update: Never Installs: 47
 
No support by the author.

Description. This is a Mod to make sub-forums appear in a drop-down menu fashion.
  1. +/- sign for forums with/without unread posts
  2. Hierachy show for at most 2 level of sub-forums

Screenshot. Stealed image from the great Stunner-Entertainment forum, hope you don't mind!! :nervous:



Step 1. Open:
forumhome_forumbit_level1_nopost
forumhome_forumbit_level1_post
forumhome_forumbit_level2_nopost
forumhome_forumbit_level2_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();">
<if condition="$forum[statusicon] == 'new'">
<option value="$forum[forumid]" style="font-weight:bold;">$forum[title]</option>
<else />
<option value="$forum[forumid]">$forum[title]</option>
</if>
			$forum[subforums]
		</select>
                <input class="button" value="$vbphrase[go]" type="submit">
	</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 --------------------------------------->
Caution. Not every forum need this, our forum has a lot of forums, and forum names are in different languages, so we have to do this. Otherwise, showing all the forums seems to be better for user-friendliness. :devious:

Show Your Support

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

Comments
  #22  
Old 12-27-2005, 03:29 PM
ReZ ReZ is offline
 
Join Date: Jul 2005
Location: United Kingdom
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this.
Reply With Quote
  #23  
Old 12-27-2005, 10:23 PM
YOimYO YOimYO is offline
 
Join Date: Oct 2005
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #24  
Old 12-29-2005, 01:13 PM
YOimYO YOimYO is offline
 
Join Date: Oct 2005
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed this, it looks great. actually i just installed it twice to make sure ....


but .... when i click to open the dropdown, it auto redirects me to inside the main forum, and doesnt give me a chance to click on the subforum ... :P


any suggestions ?
Reply With Quote
  #25  
Old 12-29-2005, 01:18 PM
YOimYO YOimYO is offline
 
Join Date: Oct 2005
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
<!-- top category table setup -->
<
table border="0" cellpadding="0" cellspacing="0"  width="100%" align="center" style="background-image: url($stylevar[imgdir_misc]/cat_back.gif)">
  <
tr>
    <
td width="150" height="27" align="left" valign="top"><img  src="$stylevar[imgdir_misc]/cat_top_ls.gif" width="150" height="27" alt="" /></td>
    <
td width="100%" valign="middle">
    
            
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumidsrc="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
            <
div align="center">
            <
a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><b>$forum[title]</b></a></div>
            <if 
condition="$show['forumdescription']"><div align="center" class="smallfont">$forum[description]</div></if>
            <if 
condition="$show['subforums']"><div class="smallfont"><!-- 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();">
<if 
condition="$forum[statusicon] == 'new'">
<
option value="$forum[forumid]style="font-weight:bold;">$forum[title]</option>
<else />
<
option value="$forum[forumid]">$forum[title]</option>
</if>
            
$forum[subforums]
        </
select>
                <
input class="button" value="$vbphrase[go]type="submit">
    </
form>
<!-- 
Subforum pull-down menu ---------------------------------------></div></div></if>
        
    
    </
td>
     <
td width="150" height="27" align="right" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_rs.gif" width="150" height="27" alt="" /></td>
  </
tr>
</
table>

        <!-- 
End top category table setup --> 
Reply With Quote
  #26  
Old 12-29-2005, 07:27 PM
YOimYO YOimYO is offline
 
Join Date: Oct 2005
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

aha i found my problem. to make this mod compatible with mouse rollover effect hack just remove this code ....
PHP Code:
 onclick="window.location.href='forumdisplay.php?$session[sessionurl]f=$forum[forumid]';" 
Reply With Quote
  #27  
Old 12-30-2005, 05:09 PM
pirotess pirotess is offline
 
Join Date: May 2002
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kadafi_alive
Is there a to apply this hack only to a specific set of subforums?

Regards
Yes there is if your board only has one style like mine. Make a child style of your normal board style and make the changes listed above. Then go into the Forum Manager and edit the Style Options section on the forums you want this to be used on. Set the Custom Style dropdown to the child style you just created and have it override your users style choice.
Reply With Quote
  #28  
Old 12-30-2005, 07:52 PM
Stunner Inc. Stunner Inc. is offline
 
Join Date: May 2005
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HEYYYYYYYYY THAT'S MY SITE (Stunner-Entertainment.com),lol
I don't mind you using it though
Reply With Quote
  #29  
Old 01-13-2006, 08:36 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I have installed this and working well....
Just 1 question, is there a way to make the drop down white background the colour of my forum?
Reply With Quote
  #30  
Old 01-22-2006, 09:45 AM
kartik786 kartik786 is offline
 
Join Date: Aug 2005
Location: India
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works hell sexy on v 3.5.3
Reply With Quote
  #31  
Old 01-28-2006, 12:11 AM
o0Hubba0o's Avatar
o0Hubba0o o0Hubba0o is offline
 
Join Date: Mar 2005
Location: Minnesota
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YOimYO
aha i found my problem. to make this mod compatible with mouse rollover effect hack just remove this code ....
PHP Code:
 onclick="window.location.href='forumdisplay.php?$session[sessionurl]f=$forum[forumid]';" 
Hey thanks alot for posting what you did to fix this, so many people just "nevermind I fixed it", really appreciate. I'd like to add that that code was in the "forumhome_forumbit_level1_post" and "forumhome_forumbit_level2_post" templates. The drop down now workd great for me! Great space saver.
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 04:22 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.04838 seconds
  • Memory Usage 2,341KB
  • Queries Executed 25 (?)
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_php
  • (2)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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