Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > Programming Articles
How To Fix Drop Down Menu Problems
peterska2
Join Date: Oct 2003
Posts: 6,504

 

Manchester, UK
Show Printable Version Email this Page Subscription
peterska2 peterska2 is offline 07-29-2006, 10:00 PM

This is quite a common problem so as it comes up frequently, I decided that the best solution would be to write up a post on how to fix it.

You are in the situation where you have modified your site, or recently upgraded and all of a sudden the dropdown menus stop working. Often this is just in some threads, and more often than not it is the thread tools menu that you notice is not working.

Despite the fact that it only seems to be the dropdowns in the threads themselves that are not working, the fault is usually with the navbar template.

The best way to fix it is to revert your navbar template. However, if you are running a custom style, it is advisable to first export your style in case additional modifications to it have been made.

If your navbar has been moved to your header, then you will also need to remove it from there.

When you have got just a default navbar running, with no navbar in your header (if appropraite) then try the thread tools menus again. in the majority of cases they will now work.

Once you have it working, add each link back to your navbar, checking between each one that the thread tools and other dropdowns are still working. Take your time while doing this, as any errors will break them again.

If, after reverting your navbar, your menus still do not work, and you have made any modifications to your showthread template, then it is also recommended that you revert this template. In the majority of cases this is not required.

While having your navbar in your header can look good depending on your style, it can in some instances, if not coded correctly, cause these problems. A good solution to this is to move the nav buttons part of your navbar to the top of your navbar template underneath the script for the logout button then add a couple of breaks to space it out.

I hope that you find this useful.
Reply With Quote
  #2  
Old 08-23-2006, 08:53 AM
Brown23 Brown23 is offline
 
Join Date: Jan 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!
Reply With Quote
  #3  
Old 08-23-2006, 02:15 PM
smacklan's Avatar
smacklan smacklan is offline
 
Join Date: Mar 2005
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice article Kerry-Anne...as always, very helpful
Reply With Quote
  #4  
Old 08-16-2008, 12:39 PM
tehblob tehblob is offline
 
Join Date: Apr 2008
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, helped me
Reply With Quote
  #5  
Old 03-24-2010, 09:48 AM
fbi1337 fbi1337 is offline
 
Join Date: Mar 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and also make sure the javascript code is in the footer
Reply With Quote
Reply

Thread Tools

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 05: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.04292 seconds
  • Memory Usage 2,217KB
  • Queries Executed 18 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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