vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Sidebar with drop downs (https://vborg.vbsupport.ru/showthread.php?t=264146)

attroll 05-24-2011 07:48 PM

Sidebar with drop downs
 
I am looking for a simple code to be able to have a sidebar with dropdowns in it. The code below was something I was able to use in my 3.0 versions of vb but it no longer works with 4.0. Can someone help me to get started by creating a sidebar with drowpdowns, please.


Code:

<tr>
  <td class="alt2">

<!-- Items -->
<table class="alt1" height="18" border="1" cellspacing="0" cellpadding="0" width="100%">
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td class="alt2" align="left" ><span id="items">
<script type="text/javascript"> vbmenu_register("items"); </script>&nbsp; <a href="#">AT Re-Supply Info</a> </span></td></tr>
</table>
<!-- / Items -->

<!-- Items Menu -->
<div class="vbmenu_popup" id="items_menu" style="display:none;margin-left:175px;">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">AT Re-Supply</td></tr>               
<tr><td class="vbmenu_option"><a href="$vboptions/index.php?page=resupplypart1">Re-Supply Along the AT - Part 1</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions/index.php?page=resupplypart2">Re-Supply Along the AT - Part 2</a></td></tr>
</table>
</div>

<!-- Data -->
<table class="alt1" height="18" border="1" cellspacing="0" cellpadding="0" width="100%">
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td class="alt2" align="left" ><span id="data">
<script type="text/javascript"> vbmenu_register("data"); </script>&nbsp; <a href="#">Data and Schedules</a> </span></td></tr>
</table>
<!-- / Data -->

<!-- data Menu -->
<div class="vbmenu_popup" id="data_menu" style="display:none;margin-left:175px;">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">Data and Scheules</td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions/index.php?page=shelters">Shelters and Mileage</a></td></tr>
</table>
</div>

</td>
          </tr>
</table>

</if>


attroll 05-24-2011 10:33 PM

I found a code that will work but the drop down box appears directly under the category. Is there any way to have the drop down box appear to the far right?

Here is the code I am using:
Code:

<!-- Navbar Icon Links -->
<div align="center">
<table class="body" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">

<tr align="right">
<td class="vbmenu_control">       
<li class="popupmenu"> <p><center><a href="javascript://" class="popupctrl" accesskey="6"><b>Catergory 1</b></center></p></a>
<ul class="popupbody popuphover">
<a href="Link 1">Forum Name 1</a><BR>
<a href="Link 2">Forum Name 2</a><BR>
<a href="Link 3">Forum Name 3</a><br>
</td>
</tr>

<tr>
<td class="vbmenu_control">                                       
<li class="popupmenu"> <p><center><a href="javascript://" class="popupctrl" accesskey="6"><b>Catergory 2</b></center></p></a>
<ul class="popupbody popuphover">
<a href="Link 1">Forum Name 1</a><BR>
<a href="Link 2">Forum Name 2</a><BR>
<a href="Link 3">Forum Name 3</a><br>
</td>
</tr>

</table>
</div>
<!-- / Navbar Icon Links -->



All times are GMT. The time now is 02:42 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.01038 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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