Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Top NavBar With Drop Down Menus Details »»
Top NavBar With Drop Down Menus
Version: 1.00, by MadKad MadKad is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Version: 3.6.8 Rating:
Released: 10-13-2006 Last Update: 10-17-2006 Installs: 139
Template Edits
Code Changes  
No support by the author.

This mod is a top nav bar mod with drop down menus; it is the same as the standard vb one, the new navbar is in its own template.

This mod is easy to install there are to things you need to do to install this mod:

1) Upload product file
2) Edit navbar template

The mod comes with:

1 xml file
1 read me text file
1 html help file to show how to add links and drop down menus

FAQ:
Q: Nav bar not showing in other mods.
A: Click here thank you

Q: What mods will this show in
A: please read above why they might not, here are the lists of what I tested them in click here

This mod is supported here and at MK PitStop Webmaster Forum, please click install if you use this mod, thank you.

Demo Here = http://www.mkpitstop.co.uk/forum

Hope you like

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 11-06-2006, 08:23 PM
phovanxua phovanxua is offline
 
Join Date: Sep 2006
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed ...worked on 3.5.4 and 3.6.2 .

It's tooked me about half hour ...figure out ...because you may have difference skin ...and you have to add new button to the either Header or Nav templates .

This is my simple way "Music" drop down menu I added this function to my header : After you import this product .

1.Add new button name to : Nav or header template

- for 3.5.4 version :
PHP Code:
 <td id="1" class="vbmenu_control"><a href="#1">Music</a
<
script type="text/javascript"vbmenu_register("1"); </script></td
- for version 3.6.2 :
PHP Code:
 <td id="1" ><a href="#1">Music</a
<
script type="text/javascript"vbmenu_register("1"); </script></td
2.And find : <!-- / NAVBAR POPUP MENUS -->



Replace with :

PHP Code:
<!-- extras pop start --> 
<
div class="vbmenu_popup" id="1_menu" style="display:none">
<
table cellpadding="4" cellspacing="1" border="0">
<
tr><td class="vbmenu_option"> <a href="Link1"Music 1</a></td></tr
<
tr><td class="vbmenu_option"><a href="Link 2">Music 2</a></td></tr
<
tr><td class="vbmenu_option"><a href="local_links.php">My MP3</a></td></tr
</
div>
<!-- 
extras pop end --> 

<!-- / 
NAVBAR POPUP MENUS --> 
Also this delete file is my option : Go to Nav or Header template

PHP Code:
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td
PHP Code:
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<
input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]/> 
Demo here : if you look at the Music button ...you see
Demo 1
Demo 2

Once again ...if it not in your Nav template , it's will be on your Header template .




Thanks .
Reply With Quote
  #33  
Old 11-06-2006, 10:03 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chadi
I cleaned up topnav template

Code:
<!--######## start of navbar2 ########-->

<!-- nav2 buttons bar --> 
<div align="center"> 
  <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:1px"> 
    <tr align="center"> 
      
      <td class="vbmenu_control"><a href="http://www.mkpitstop.co.uk/forum" target="_blank">Webmaster Forum</a></td> 
      
       <!-- dropdown start --> 
      <td id="1" class="vbmenu_control"><a href="#1">Drop down</a> 
        <script type="text/javascript"> vbmenu_register("extra"); </script></td> 
      <!-- dropdown end --> 
 
     </tr> 
  </table> 
</div>
<!-- / nav2 buttons bar --> 
<if condition="$show['popups']"> 
<!-- NAVBAR POPUP MENUS --> 

<!-- extras pop start --> 
<div class="vbmenu_popup" id="1_menu" style="display:none"> 
  <table cellpadding="4" cellspacing="1" border="0"> 
    <tr> 
      <td class="thead">Drop Down</td> 
    </tr> 
    <tr> 
      <td class="vbmenu_option"><a href="link">link</a></td> 
    </tr> 
    <tr> 
      <td class="vbmenu_option"><a href="link">link</a></td> 
    </tr> 
    <tr> 
      <td class="vbmenu_option"><a href="link">link</a></td> 
    </tr> 
    <tr> 
      <td class="vbmenu_option"><a href="link">link</a></td> 
    </tr> 
  </table>
  </if>
</div>
<!-- extras pop end --> 
<!-- / NAVBAR POPUP MENUS --> 
<!--####### end of navbar2 #######-->
Not sure what I'm doing wrong. Still does not dropdown at all.
Can someone please help?
Reply With Quote
  #34  
Old 11-07-2006, 12:45 AM
phovanxua phovanxua is offline
 
Join Date: Sep 2006
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chadi
Can someone please help?
What you want to do Menu drop down ?

Just add button or add the whole Nav 2 ?

The way I did is just add 1 button to my Header for the drop down menu .

PM me your site and I can take a look .
Reply With Quote
  #35  
Old 11-07-2006, 01:01 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added this now

Code:
<td class="nav_menu_control" id="1" ><a href="#1">Test</a> 
<script type="text/javascript"> vbmenu_register("1"); </script></td>
It shows "test" with the drop down arrow (good) but clicking it, nothing happens nor anything shows (sub menu).

header
Code:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" class="header_bg">
<tr>
	<td align="$stylevar[left]" valign="top"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
	<td align="$stylevar[right]">
		<div align=center>

		</div><!-- banners --><img border="0" src="http://www.talkjesus.com/images/right-logo.gif"></td>
</tr>
<tr>
<td height="34" colspan="2">

<!-- nav buttons bar -->
<div align="center">
	<table  cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%">
	<tr align="center">
		<td class="nav_menu_control" width="16"><a href="http://www.talkjesus.com/index.php">
		<img src="http://www.talkjesus.com/images/home.gif" border="0"></a></td>
		<if condition="$show['member']">
			<td class="nav_menu_control" width="91"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
		</if>
		<if condition="$show['registerbutton']">
			<td class="nav_menu_control" width="91"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
		</if>
		<td class="nav_menu_control" width="92"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
		<td class="nav_menu_control" width="92"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
		<td class="nav_menu_control" width="92"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<!-- v3 Arcade -->
<td class="nav_menu_control" width="92"><a href="arcade.php$session[sessionurl_q]">Arcade</a></td>
<!-- /v3 Arcade -->
		<if condition="$show['popups']">		
			<if condition="$show['searchbuttons']">
				<if condition="$show['member']">
				<td class="nav_menu_control" width="92"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
				<else />
				<td class="nav_menu_control" width="92"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
				</if>
<td class="nav_menu_control" id="1" ><a href="#1">Test</a> 
<script type="text/javascript"> vbmenu_register("1"); </script></td>
				<td id="navbar_search" class="nav_menu_control" width="92"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
			</if>
<td id="journalnavbar" class="nav_menu_control" width="92"><a href="#journalnavbar">$vbphrase[journals]</a> <script type="text/javascript"> vbmenu_register("journalnavbar"); </script></td>
			<if condition="$show['member']">
				<td id="usercptools" class="nav_menu_control" width="92"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>		
			</if>
		<else />		
			<if condition="$show['searchbuttons']">
				<td class="nav_menu_control" width="92"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
				<if condition="$show['member']">
				<td class="nav_menu_control" width="92"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
				<else />
				<td class="nav_menu_control" width="92"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
				</if>
			</if>
			<td class="nav_menu_control" width="92"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
			<if condition="$show['member']">			
				<td class="nav_menu_control" width="92"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>			
			</if>			
		</if>
		<if condition="$show['member']">
			<td class="nav_menu_control" width="92"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
		</if>
	</tr>
	</table>
</div>
<!-- / nav buttons bar -->
</td></tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

<!--[if lt IE 7.]>
<script defer type="text/javascript" src="clientscript/pngfix.js"></script>
<![endif]-->
top_nav
Code:
<!--######## start of navbar2 ########-->

<!-- nav2 buttons bar --> 
<div align="center"> 
  <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:1px"> 
    <tr align="center"> 
      
      <td class="vbmenu_control">Entertainment</td> 
	  
	   <!-- dropdown start --> 
      <td id="1" class="vbmenu_control"><a href="#1">Drop down</a> 
        <script type="text/javascript"> vbmenu_register("extra"); </script></td> 
      <!-- dropdown end --> 
 
     </tr> 
  </table> 
</div>
<!-- / nav2 buttons bar --> 
<if condition="$show['popups']"> 
<!-- NAVBAR POPUP MENUS --> 

<!-- extras pop start --> 
<div class="vbmenu_popup" id="1_menu" style="display:none"> 
  <table cellpadding="4" cellspacing="1" border="0"> 
    <tr> 
      <td class="thead">Drop Down</td> 
    </tr> 
    <tr> 
      <td class="vbmenu_option"><a href="link">link</a></td> 
    </tr> 
    <tr> 
      <td class="vbmenu_option"><a href="link">link</a></td> 
    </tr> 
    <tr> 
      <td class="vbmenu_option"><a href="link">link</a></td> 
    </tr> 
    <tr> 
      <td class="vbmenu_option"><a href="link">link</a></td> 
    </tr> 
  </table>
  </if>
</div>
<!-- extras pop end --> 
<!-- / NAVBAR POPUP MENUS --> 
<!--####### end of navbar2 #######-->
What did I do wrong?
Reply With Quote
  #36  
Old 11-07-2006, 01:03 AM
phovanxua phovanxua is offline
 
Join Date: Sep 2006
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just give me second ...I see your web site show the test ...but no drop .
Reply With Quote
  #37  
Old 11-07-2006, 01:09 AM
phovanxua phovanxua is offline
 
Join Date: Sep 2006
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you see this script here
PHP Code:
<!-- extras pop start -->  
<
div class="vbmenu_popup" id="1_menu" style="display:none"
<
table cellpadding="4" cellspacing="1" border="0"
<
tr><td class="vbmenu_option"> <a href="Link1"Music 1</a></td></tr>  
<
tr><td class="vbmenu_option"><a href="Link 2">Music 2</a></td></tr>  
<
tr><td class="vbmenu_option"><a href="local_links.php">My MP3</a></td></tr>  
</
div
<!-- 
extras pop end -->  

<!-- / 
NAVBAR POPUP MENUS --> 
Did you add this scriot to your Nav template or Header template ...

Open your Styles and template ....edit Nav templates ...find this
PHP Code:
<!-- / NAVBAR POPUP MENUS --> 


Add this cript above that word
PHP Code:
<!-- extras pop start -->  
<
div class="vbmenu_popup" id="1_menu" style="display:none"
<
table cellpadding="4" cellspacing="1" border="0"
<
tr><td class="vbmenu_option"> <a href="Link1"Music 1</a></td></tr>  
<
tr><td class="vbmenu_option"><a href="Link 2">Music 2</a></td></tr>  
<
tr><td class="vbmenu_option"><a href="local_links.php">My MP3</a></td></tr>  
</
div
<!-- 
extras pop end --> 
And insert your link at the < a href ="www.yahoo.com">Yahoo</a></td></tr> <=== for example .

You can add more than 1 link as I show above .

Make sure that you edit this script and replace your link :
PHP Code:
<tr><td class="vbmenu_option"> <a href="Link1"Music 1</a></td></tr>  
<
tr><td class="vbmenu_option"><a href="Link 2">Music 2</a></td></tr>  
<
tr><td class="vbmenu_option"><a href="local_links.php">My MP3</a></td></tr
Reply With Quote
  #38  
Old 11-07-2006, 01:13 AM
phovanxua phovanxua is offline
 
Join Date: Sep 2006
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do not edit the Top Nav ....just leave it alone . the only thing you need to add or edit is your Nav template or Header template .

You almost there .
Reply With Quote
  #39  
Old 11-07-2006, 01:20 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK but as I mentioned before, <!-- / NAVBAR POPUP MENUS --> does not appear in header nor navbar. The actual nav menu is inside header anyway.

What should I do?
Reply With Quote
  #40  
Old 11-07-2006, 01:24 AM
phovanxua phovanxua is offline
 
Join Date: Sep 2006
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chadi
OK but as I mentioned before, <!-- / NAVBAR POPUP MENUS --> does not appear in header nor navbar. The actual nav menu is inside header anyway.

What should I do?
Oh I see ...you using Vbseo ...

I saw this in your header :<!-- / nav buttons bar -->


Add this cript above :<!-- / nav buttons bar -->
PHP Code:
<!-- extras pop start -->   
<
div class="vbmenu_popup" id="1_menu" style="display:none">  
<
table cellpadding="4" cellspacing="1" border="0">  
<
tr><td class="vbmenu_option"> <a href="Link1"Music 1</a></td></tr>   
<
tr><td class="vbmenu_option"><a href="Link 2">Music 2</a></td></tr>   
<
tr><td class="vbmenu_option"><a href="local_links.php">My MP3</a></td></tr>   
</
div>  
<!-- 
extras pop end --> 
remmember ...edit your <a href =" link" .....

Try it ...I am not sure it work or not ...because I don't have Vbseo .
Reply With Quote
  #41  
Old 11-07-2006, 01:26 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That screwed up the forumhome. It basically removed everything in between header/footer somehow.
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 01:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06589 seconds
  • Memory Usage 2,387KB
  • 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
  • (4)bbcode_code
  • (10)bbcode_php
  • (3)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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