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
  #12  
Old 06-21-2007, 08:01 AM
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Location: Australia
Posts: 1,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

man come on lol shocking
Reply With Quote
  #13  
Old 08-01-2007, 02:03 AM
tminus's Avatar
tminus tminus is offline
 
Join Date: Apr 2007
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone gotten this to work in 3.6.8 or know of other ways to add custom drop menus to the navbar? I have done everything but I think I am screwing up on the yourmenu YOURMENU replacement. I tried only replacing the capitalized YOURMENU and not the lower case one, but no good. The menu title shows up as a link, with no drop down menu or links. The link points to /forum/index.php?nojs=1#MYMENU instead of the intended address that I replaced LINK with: /forum/local_links.php?catid=1
Any help would be appreciated. Thanks~
Reply With Quote
  #14  
Old 08-01-2007, 03:22 AM
Stefano Virgill's Avatar
Stefano Virgill Stefano Virgill is offline
 
Join Date: Apr 2007
Location: Singapore
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Tminus,
I've had your same problem.
I really don't know why everything were fixed once I changed all YOURMENU with another word.

Greetings

Stefano
Reply With Quote
  #15  
Old 08-01-2007, 05:14 AM
tminus's Avatar
tminus tminus is offline
 
Join Date: Apr 2007
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stefano Virgill View Post
Hi Tminus,
I've had your same problem.
I really don't know why everything were fixed once I changed all YOURMENU with another word.

Greetings

Stefano
Thanks Stefano. So edit just the capitalized YOURMENU or all yourmenus? I tried both in 3.6.8 and it didn't work. The only modification to navbar in the 3.6.8 release was just a redundant <div> tag removal, but I don't think that would make a difference. I am in no rush so I will try again and post my results. Any other suggestions would be helpful. Does anyone have this running on 3.6.8?
Reply With Quote
  #16  
Old 08-01-2007, 05:57 AM
Stefano Virgill's Avatar
Stefano Virgill Stefano Virgill is offline
 
Join Date: Apr 2007
Location: Singapore
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I've just substitued all the YOURMENU (4 in navbar) with "Gallery".
And now it works. I don't know why, honestly

greetings

Stefano
Reply With Quote
  #17  
Old 08-01-2007, 10:19 AM
tminus's Avatar
tminus tminus is offline
 
Join Date: Apr 2007
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stefano Virgill View Post
Hi, I've just substitued all the YOURMENU (4 in navbar) with "Gallery".
And now it works. I don't know why, honestly

greetings

Stefano
Ok, thanks. I will just try again, but you are running 3.6.8 right?
Reply With Quote
  #18  
Old 08-02-2007, 02:07 AM
Stefano Virgill's Avatar
Stefano Virgill Stefano Virgill is offline
 
Join Date: Apr 2007
Location: Singapore
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ops, sorry!
not yet.
Now is 3.6.7

Bye

Steve
Reply With Quote
  #19  
Old 08-08-2007, 10:46 PM
raiderlax's Avatar
raiderlax raiderlax is offline
 
Join Date: Sep 2006
Location: Ontario, Canada
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you fix the problem with this moving too far to the left????

Thanks
Reply With Quote
  #20  
Old 08-09-2007, 06:51 AM
tminus's Avatar
tminus tminus is offline
 
Join Date: Apr 2007
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by raiderlax View Post
How do you fix the problem with this moving too far to the left????

Thanks
It depends on where you place the code. Place it after the listing of the navbar listing you want. The directions are for register, but you can move it down by putting it after one of the other menus.
Reply With Quote
  #21  
Old 08-09-2007, 02:18 PM
raiderlax's Avatar
raiderlax raiderlax is offline
 
Join Date: Sep 2006
Location: Ontario, Canada
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, but I'm moving this code everywhere and it is not fixing the problem, what to do please?
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 09:02 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.04816 seconds
  • Memory Usage 2,315KB
  • 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
  • (9)bbcode_code
  • (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
  • (3)pagenav_pagelink
  • (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