vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Help me debug my search dropdown box (https://vborg.vbsupport.ru/showthread.php?t=227675)

Mark.B 11-09-2009 08:14 PM

Help me debug my search dropdown box
 
I have an annoying problem with my search dropdown box.

When you select tghe "Show Posts" radio button when using Firefox, the drop down disappears.

You can then click it again and the radio button is selected.

Switching back to "Show Threads" does not cause the same behaviour.

I know this is related to some custom template stuff because in the default style it doesn't do it. However I have tried manually re-pasting the default search box code into the navbar template and that doesn't help.

Reverting the navbar template doesn't fix it either, so the problem is not in there.

I have also tried disabling plugins and still no joy.

This is a difficult one to track down...so to start with, has anyone ever seen this behaviour before?

Lynne 11-09-2009 08:26 PM

I've never seen in before. If it is happening on every page, I would guess this has something to do with a template on every page - header, headinclude, or footer. Have you created a copy of your style and tried reverting those templates to see if they are the cause?

Mark.B 11-09-2009 09:37 PM

Quote:

Originally Posted by Lynne (Post 1912138)
I've never seen in before. If it is happening on every page, I would guess this has something to do with a template on every page - header, headinclude, or footer. Have you created a copy of your style and tried reverting those templates to see if they are the cause?

Thanks...of course, it was obvious when i thought about it...it was indeed in the navbar template as reverting it fixed the problem.

The problem was....I have a separate search box (with no dropdown) at the top of the page, and this was using the same id in the form (rb_nb_sp0 and rb_nb_sp1) as the search dropdown.

Changing or removing these id's from the second search box fixes the problem without breaking either search.

What specifically does that id number do in this case?

Lynne 11-09-2009 10:19 PM

ids must always be unique or problems will arise. I don't really think it is required that a form has an id, but I always just throw one in there anyway.


All times are GMT. The time now is 09:25 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01015 seconds
  • Memory Usage 1,717KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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