Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-03-2007, 10:25 AM
Ezswo Ezswo is offline
 
Join Date: Oct 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Search This Thread Dropdown - Twice

Hello all,

I'm working on a style for vBulletin that I used to have when I had a Integramod board, which is called BBLite.

I have edited the "showthread" template and made a toolbar with images at the top of this page where I relocated the threadtools (threadtools are originally in a dropdown-box in a toolbar right above the postbits). You can see in attachment 1 that the dropdownbox for the search-image is working fine.

Now, here's the problem: I copied the exact same code (which is the original code by the way) to the bottom of the page, where I have the same toolbar with images (you can see this in attachment 2). But, in this instance the dropdown box is NOT working?? (in this instance it reloads the page so that the non-pop-up content at the bottom of the page is shown...this is normally for non-pop-up browsers, or for browsers without Javascript enabled).

How can I get this second searchbox to work as the first, i.e. that it also shows the dropdown menu as in the first attachment?

My code in both instances is this:
Quote:
<if condition="$show['search']">
<td id="threadsearch" nowrap="nowrap">
<a href="$show[nojs_link]#goto_threadsearch"><img class="inlineimg" src="$stylevar[imgdir_misc]/ns_icon_search.gif" alt="$vbphrase[search_this_thread]" border="0" /></a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadsearch", 1); </script></if>
</td>
</if>
Thank you for your time,
Ezra
Attached Images
File Type: jpg top.jpg (45.9 KB, 0 views)
File Type: jpg bottom.jpg (25.0 KB, 0 views)
Reply With Quote
  #2  
Old 11-04-2007, 01:21 PM
Gray Matter Gray Matter is offline
 
Join Date: May 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to change one of the ids. An id is unique; it can only be used once on a page. Change one of them to "threadsearch2" or something.
Reply With Quote
  #3  
Old 11-05-2007, 07:42 PM
Ezswo Ezswo is offline
 
Join Date: Oct 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gray Matter View Post
You need to change one of the ids. An id is unique; it can only be used once on a page. Change one of them to "threadsearch2" or something.
Thanks for your help, but I hope you can elaborate some more. When I change an ID it has to refer to something, I guess? But, I don't know where the id is referring to in the template. Could you explain some more to me?
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 01:31 PM.


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.04176 seconds
  • Memory Usage 2,201KB
  • Queries Executed 14 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (2)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete