vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Forum Home Enhancements - Sub-Forum Drop Down Menu (https://vborg.vbsupport.ru/showthread.php?t=161411)

Sulaiti 10-28-2007 10:00 PM

Sub-Forum Drop Down Menu
 
This little modification will show the Sub-Forum Like Search Drop Down.

Step 1. Open:

forumhome_forumbit_level1_post
forumhome_forumbit_level2_post

Find:
Code:

PHP Code:

 
   
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if> 

Replace with:
Code:

PHP Code:

 
  
<if condition="$show['subforums']">
  <
div class="alt1" id="subforums_$forum[forumid]"><strong>$vbphrase[subforums]</strong><script type="text/javascript"vbmenu_register("subforums_$forum[forumid]"); </script>
   <
div class="vbmenu_popup" id="subforums_$forum[forumid]_menu" style="display:none">
  <
table cellpadding="4" cellspacing="1" border="0">
 <
tr>
  <
td class="thead">$vbphrase[subforums]</td>
 </
tr>
  
$forum[subforums]
 </
table>
   </
div>
 </
div>
 </if> 

Step 2. Open:


forumhome_subforumbit_post


Replace the templates with:
Code:

PHP Code:

 
<tr><td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]/> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a></td></tr

Step 3. Open:

forumhome_subforumseparator_post

Delete ","




Please make sure you click INSTALL if you Like it.

ran_iu_Conan 10-29-2007 08:54 PM

wao! ..very cool. Thanks for share

chuchukuttie 10-29-2007 09:42 PM

Very unqie, really nice.. thanks a lot.

Mr_Snob 10-29-2007 09:53 PM

yea very useful really nice tenk yuu canim :D

jerrygad 10-30-2007 12:31 AM

Very nice. Thanks :)

Snake 10-30-2007 06:41 PM

Thanks for the release!

wtrk 10-31-2007 03:56 PM

very cool. good idea. bookmarked for later use for sure.

kartik786 11-01-2007 03:48 PM

live demo please


All times are GMT. The time now is 11:19 AM.

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.01033 seconds
  • Memory Usage 1,734KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete