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
Add A Drop Down Menu In Nav Details »»
Add A Drop Down Menu In Nav
Version: 1.00, by v5etboyphc v5etboyphc is offline
Developer Last Online: Nov 2007 Show Printable Version Email this Page

Version: 3.6.4 Rating:
Released: 01-19-2007 Last Update: Never Installs: 26
 
No support by the author.

Add A Drop Down Menu In Your Navigation

What does it do?
add a drop down list for your navigation

Template to edit: Navbar

Instructions:
open template: navbar
find:
Code:
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php?$session[sessionurl]" rel="nofollow">$vbphrase[register]</a></td>
</if>
Add below
Code:
				<td id="yourmenu" class="vbmenu_control"><a href="$show[nojs_link]#YOURMENU">NAME</a> <script type="text/javascript"> vbmenu_register("YOURMENU"); </script></td>

In same template
Find:
Code:
<!-- / NAVBAR POPUP MENUS -->
Above add:
Code:
	<if condition="$show['member']">
	<!-- your tools menu -->
	<div class="vbmenu_popup" id="YOURMENU_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr><td class="thead">$vbphrase[name]</td></tr>		
		<tr><td class="vbmenu_option"><a href="LINK">NAME</a></td></tr>
		<tr><td class="vbmenu_option"><a href="LINK">NAME</a></td></tr>
		<tr><td class="vbmenu_option"><a href="LINK">NAME</a></td></tr>
		<tr><td class="vbmenu_option"><a href="LINK">NAME</a></td></tr>
		</if>

		</table>
	</div>
	<!-- / your tools menu -->
	</if>
If you want more links simple just add
Code:
		<tr><td class="vbmenu_option"><a href="LINK">NAME</a></td></tr>
before the
Code:
</if>
Last Part
Change all
Code:
YOURMENU
Code:
LINK
Code:
NAME
change all those and you all set


It seem hard but it pretty easy if you understand those and where to find and edit them

Show Your Support

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

Comments
  #2  
Old 01-29-2007, 05:01 AM
ShackMaster ShackMaster is offline
 
Join Date: Apr 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any idea why my dropdown menu would open to the far left of my screen instead of directly beneath the menu link?

http://www.hometheatershack.com/forums (Shack Stores Shopping Mall)

Thanks,
Sonnie
Reply With Quote
  #3  
Old 01-29-2007, 05:18 AM
v5etboyphc v5etboyphc is offline
 
Join Date: May 2006
Location: USA
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh that easy.. cuz your dropdown menu is in the second navbar move that to the top nav and it will work fine
Reply With Quote
  #4  
Old 01-29-2007, 11:10 PM
ShackMaster ShackMaster is offline
 
Join Date: Apr 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I moved it to the top, but it still wants to dropdown at the far left of the dropdown link.

Notice that UserCP drops down centered. I have everything the same for those two except the names and links. Doesn't make much sense.
Reply With Quote
  #5  
Old 04-16-2007, 08:26 AM
Doug Nelson Doug Nelson is offline
 
Join Date: Nov 2001
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get this to work in 3.6.5

It shows the link on the navbar, but no little downarrow. And when you click it, the page reloads with the non-js navbar displayed.
Reply With Quote
  #6  
Old 04-19-2007, 02:20 AM
Doug Nelson Doug Nelson is offline
 
Join Date: Nov 2001
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I reverted my navbar template, then it worked great. Thanks.
Reply With Quote
  #7  
Old 04-27-2007, 09:41 AM
rayw rayw is offline
 
Join Date: Mar 2007
Location: Australia
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Been looking for this for ages, finally found it. Working great on 3.6.5.

Thanks a lot.
Reply With Quote
  #8  
Old 04-28-2007, 10:10 PM
ttramell ttramell is offline
 
Join Date: Mar 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed. So, I changed the code but I'm not sure what to do for the "LAST PART CHANGE ALL" Little help please
Reply With Quote
  #9  
Old 04-30-2007, 01:56 PM
PapaSmurf's Avatar
PapaSmurf PapaSmurf is offline
 
Join Date: Dec 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm wondering if this menu can be implemented into any other buttons? I have buttons on the top of my site and i would rather have the drop down menus there as the navbar is not enabled on the main page.

Here is the button code.

Code:
<td><a href="LINK"><img src="$stylevar[imgdir_misc]/links_gallery.gif" alt="" width="100" height="29" border="0"></a></td>
Thanks in advance.
Reply With Quote
  #10  
Old 05-07-2007, 07:23 PM
The Bish's Avatar
The Bish The Bish is offline
 
Join Date: Aug 2006
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any help with the FAR LEFT issue would be nice. Ever since I added this my Quick Links also is skewed left.
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 03:56 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.04603 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
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
  • (10)bbcode_code
  • (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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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