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
  #42  
Old 08-28-2006, 12:34 AM
teedizz teedizz is offline
 
Join Date: Jan 2004
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works perfectly for 3.6 Thanks.
Reply With Quote
  #43  
Old 08-28-2006, 01:49 AM
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Location: Rome
Posts: 730
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rza733
Hello

in the (forumhome_forumbit_level1_nopost) i dont have the
Code:
<strong>$vbphrase[subforums]</strong>: $forum[subforums]
this is my current code

Code:
<table style="border-collapse: collapse">
        <tr>
                <td align="left" style="padding: 0"><img src="$stylevar[imgdir_misc]/cat_top_l.gif" alt="" /></td>
                <td style="background-image: url($stylevar[imgdir_misc]/cat_top_bg.gif); width: 100%; padding-top: 5px" class="cat"><div style="float: right"><a href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
</div><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a><if condition="$show['forumdescription']"><span class="smallfont"> - $forum[description]</span></if></td>
                <td align="right" style="padding: 0"><img src="$stylevar[imgdir_misc]/cat_top_r.gif" alt="" /></td>
        </tr>
</table>

<if condition="$childforumbits">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
        <tr align="center">
          <td class="thead">&nbsp;</td>
          <td class="thead" width="60%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead">$vbphrase[last_post]</td>
          <td class="thead">$vbphrase[threads]</td>
          <td class="thead">$vbphrase[posts]</td>
          <if condition="$vboptions['showmoderatorcolumn']">
          <td class="thead">$vbphrase[moderator]</td>
          </if>
        </tr>
$childforumbits
</tbody>
</table>
</if>
<table style="border-collapse: collapse">
      <tr>
        <td align="left" style="padding: 0"><img src="$stylevar[imgdir_misc]/cat_bottom_l.gif" alt="" /></td>
        <td style="background-image: url($stylevar[imgdir_misc]/cat_bottom_bg.gif);width: 100%"></td>
        <td align="right" style="padding: 0"><img  src="$stylevar[imgdir_misc]/cat_bottom_r.gif" alt="" /></td>
      </tr>
    </table>
<br />
any ideas on where to apply the new code at?

thanks
If someone can help you I will be as happy as you my friend since I have the same problem.

Can someone please help us :hurt:
Reply With Quote
  #44  
Old 01-13-2007, 04:52 PM
SIN77 SIN77 is offline
 
Join Date: Jun 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this gonna be updated for 3.6.4?
Reply With Quote
  #45  
Old 02-10-2007, 07:34 PM
Aclikyano Aclikyano is offline
 
Join Date: Apr 2006
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ported for 3.6.4 so its compatible with 3.6.4?..

thanks!
Reply With Quote
  #46  
Old 02-10-2007, 07:46 PM
Aclikyano Aclikyano is offline
 
Join Date: Apr 2006
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

woof!. dont try this on a 3.6.4 haha.. board looked all messed up
Reply With Quote
  #47  
Old 02-22-2007, 04:16 PM
anywares anywares is offline
 
Join Date: Dec 2006
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Aclikyano View Post
woof!. dont try this on a 3.6.4 haha.. board looked all messed up
Diddo

Any1 mind making this to work on vB 3.6.4?
Reply With Quote
  #48  
Old 02-22-2007, 09:07 PM
salata salata is offline
 
Join Date: Nov 2003
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mine just go to the same forum, regardless of what forum it says. so subforum1 and subforum2 go to forum 3, regardless that it says subforum 1 &2
Reply With Quote
  #49  
Old 02-24-2007, 02:19 PM
salata salata is offline
 
Join Date: Nov 2003
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by salata View Post
mine just go to the same forum, regardless of what forum it says. so subforum1 and subforum2 go to forum 3, regardless that it says subforum 1 &2
nevermind it was my error
Reply With Quote
  #50  
Old 07-02-2007, 09:37 PM
msvi007 msvi007 is offline
 
Join Date: May 2007
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this working with the new upgrades?
Reply With Quote
  #51  
Old 10-27-2008, 02:52 PM
gemmk1 gemmk1 is offline
 
Join Date: Oct 2008
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on v bulletin 3.7.3 and looks great thank you
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 05:41 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.05223 seconds
  • Memory Usage 2,309KB
  • Queries Executed 27 (?)
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
  • (5)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
  • (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_postinfo_query
  • fetch_postinfo
  • 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