vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Searchbar in the header (https://vborg.vbsupport.ru/showthread.php?t=163402)

Audentio 11-22-2007 11:24 PM

Searchbar in the header
 
Hey there!

I want to have a search bar, just a regular input box, so people can search. I already have everything setup.

My current coding:

Code:

                              <form action="search.php?do=process" method="post" name="vbform" id="searchform">
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="searchthreadid" value="1" />
                <input size="29" class="searchbar_input" />
                </form>

Is obviously not working. I just want it to search, but I would love for it to be set on searching titles only. Is there a way I could do that, specifically without a select menu. I just want one input that when keywords are entered, it searches for thread title.

Doughboy 11-23-2007 09:20 AM

Try this?
Code:

<form action="search.php?do=process" method="post">

                <input type="hidden" name="do" value="process" />
                <input type="hidden" name="quicksearch" value="1" />
                <input type="hidden" name="childforums" value="1" />
                <input type="hidden" name="exactname" value="1" />
                <input type="hidden" name="s" value="" />

<input style="width: 178px; padding: 1px; height: 13px; font-family: Verdana; font-size: 10px; color: #000000; border: 1px solid #CCCCCC;" type="text" name="query" size="25" tabindex="1001" />

<input TYPE="IMAGE" src="images/go.png" value="Go" name="Go" tabindex="1004" />

</form>


Audentio 11-24-2007 01:15 AM

It seems to be a general search though right? Its not by title is it? Is there a way to do that? But other than that, it works fine.

Audentio 01-28-2008 03:35 AM

Im going to bump this because Id really like to know how to have just a search and go button that automatically goes to search for thread titles, not in posts, just keywords in the thread titles.


All times are GMT. The time now is 02:58 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.00987 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_code_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