vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   NavBar Drop Down Menu (https://vborg.vbsupport.ru/showthread.php?t=147243)

aeturner89 05-14-2007 04:47 PM

NavBar Drop Down Menu
 
Can someone tell me the coding for a drop down menu in the navbar (like quick links)?

I want the drop down menu to be a list of links to various sites.

Any help is appreciated.

Triky 05-14-2007 05:14 PM

Try this:

Code:

  <td id="pvtmsgs" class="tcat" style="text-align: center;">
    <a href="$show[nojs_link]#nameyouwant">You Pupup Name</a>
    <script type="text/javascript"> vbmenu_register("nameyouwant"); </script>
  </td>


And then, at the botton of your navbar template, in the Navbat Popop Code(s), add this:

Code:

<div class="vbmenu_popup" id="nameyouwant_menu" style="display: none">
 <table cellpadding="4" cellspacing="1" border="0">
  <tr><td class="thead">Name [1]</td></tr>
  <tr><td class="vbmenu_option" style="text-align: center;"><a class="smallfont" href="yourlink.com"><strong>Your Site Name</strong></a></td></tr>

  <tr><td class="vbmenu_option" style="text-align: center;"><a class="smallfont" href="yourlink.com"><strong>Your Site Name</strong></a></td></tr>

  <tr><td class="vbmenu_option" style="text-align: center;"><a class="smallfont" href="yourlink.com"><strong>Your Site Name</strong></a></td></tr>

etc

</table>
</div>


The Bish 05-15-2007 02:06 AM

Here is what I have and it works perfectly and it is pretty simple.

First find this in your Navbar template:

HTML Code:

<!-- nav buttons bar -->
Now place this beneath where you want it. For example, I have mine setup to be UserCP >> New Posts >> Entertainment >> Search

HTML Code:

<td id="entertainment" class="vbmenu_control">
          <a href="#">Entertainment</a>
          <script type="text/javascript">
            vbmenu_register("entertainment");
          </script>
</td>

Now find this in the Navbar Template:

HTML Code:

<!-- NAVBAR POPUP MENUS -->
And place this directly beneath:

HTML Code:

<div class="vbmenu_popup" id="entertainment_menu" style="display:none">
  <table cellpadding="4" cellspacing="1" border="0">
        <tr><td class="thead">Entertainment</td></tr>
        <tr><td class="vbmenu_option"><a href="arcade.php$session [sessionurl_q]">Arcade</a></td></tr>
        <tr><td class="vbmenu_option"><a href="/forums/photoplog/index.php$session[sessionurl_q]">PhotoPlog</a></td></tr>
  </table>
</div>

enjoy!

Also I just added the <if condition="$show['member']"> </if>

HTML Code:

<div class="vbmenu_popup" id="entertainment_menu" style="display:none">
  <table cellpadding="4" cellspacing="1" border="0">
                                <if condition="$show['member']">
                <tr><td class="thead">Entertainment</td></tr>
                <tr><td class="vbmenu_option"><a href="arcade.php$session[sessionurl_q]">Arcade</a></td></tr>
                <tr><td class="vbmenu_option"><a href="/forums/photoplog/index.php$session[sessionurl_q]">PhotoPlog</a></td></tr>
                <tr>
                <!—Mp3 Player Launch -->
                        <td class="vbmenu_option"><a href="javascript:NewWindow=window.open('mp3playerindex.php?do=viewmp3playerpopup','newWin','width=500,height=500,left=0,top=0, toolbar=No,location=No,scrollbars=1,status=No,resizable=No,fullscreen=No');
                        NewWindow.focus(); void(0);"
>
Mp3 Player</a></td>
                <!—End Mp3 Player Launch -->
                </tr>
                        </if>
          </table>
        </div>

This makes it so only my members can access the drop down menu.

DDad 05-15-2007 09:35 AM

Anyway making it scrolling?


All times are GMT. The time now is 04:53 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.00959 seconds
  • Memory Usage 1,733KB
  • 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
  • (5)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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