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
  #32  
Old 01-29-2006, 03:27 AM
rza733 rza733 is offline
 
Join Date: Dec 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #33  
Old 03-14-2006, 06:19 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can some one please help

What was in these 2 templates please

forumhome_subforumbit_nopost
forumhome_subforumbit_post

I am trying to uninstall and i cant remember
Reply With Quote
  #34  
Old 04-17-2006, 05:16 AM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Revert the template

In 3.5.4 its just showing me the name (and link) of the main forum and not the subs in the drop down....good idea, but its not working for me
Reply With Quote
  #35  
Old 04-17-2006, 07:25 PM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

beautiful hack... nicely done...
Reply With Quote
  #36  
Old 04-17-2006, 09:34 PM
Trana Trana is offline
 
Join Date: Apr 2005
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't work for me. I have the mouseover effects, but I removed the code as instructed. The forums still don't show up as a drop down.
Reply With Quote
  #37  
Old 04-18-2006, 08:45 PM
Trana Trana is offline
 
Join Date: Apr 2005
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone explain how this works? I only want the drop down box to show up for forums that have subforums (not for all forums).

I can't seem to figure out how this is checking for this before displaying.

Thanks!
Reply With Quote
  #38  
Old 04-21-2006, 05:53 AM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey is there anyway to change the colors of it? and anyway to change it to say instead of the main forum name like a name of our choice or just "sub forums"?
Reply With Quote
  #39  
Old 06-30-2006, 01:13 AM
almukmin almukmin is offline
 
Join Date: Feb 2006
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pirotess
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.
Tried that but it doesn't work for specific forum. It only worked if I change the default style for ALL forums. Any clue?
Reply With Quote
  #40  
Old 08-10-2006, 08:39 PM
EnIgMa1234 EnIgMa1234 is offline
 
Join Date: Mar 2006
Location: .:: Ireland ::.
Posts: 1,306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, works great
Reply With Quote
  #41  
Old 08-19-2006, 09:40 PM
ltaylor's Avatar
ltaylor ltaylor is offline
 
Join Date: Apr 2006
Location: Canada
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking for a safe way to change colors of the background inside, text and go button. Any ideas?
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 02:35 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.05050 seconds
  • Memory Usage 2,312KB
  • 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
  • (5)bbcode_code
  • (1)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
  • (3)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