Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-14-2007, 04:47 PM
aeturner89 aeturner89 is offline
 
Join Date: Sep 2006
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 05-14-2007, 05:14 PM
Triky's Avatar
Triky Triky is offline
 
Join Date: Mar 2007
Location: [Italy]
Posts: 728
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #3  
Old 05-15-2007, 02:06 AM
The Bish's Avatar
The Bish The Bish is offline
 
Join Date: Aug 2006
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 05-15-2007, 09:35 AM
DDad's Avatar
DDad DDad is offline
 
Join Date: Mar 2005
Location: Boston
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyway making it scrolling?
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 11:39 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.05375 seconds
  • Memory Usage 2,200KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (5)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete