vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Programming Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=188)
-   -   How To Fix Drop Down Menu Problems (https://vborg.vbsupport.ru/showthread.php?t=122520)

peterska2 07-29-2006 10:00 PM

How To Fix Drop Down Menu Problems
 
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.

Brown23 08-23-2006 08:53 AM

Thanks!

smacklan 08-23-2006 02:15 PM

Nice article Kerry-Anne...as always, very helpful :)

tehblob 08-16-2008 12:39 PM

Thanks, helped me :)

fbi1337 03-24-2010 09:48 AM

and also make sure the javascript code is in the footer


All times are GMT. The time now is 05:14 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.01152 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete