Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] I need help with search bar
#1
I'm planning to add a search bar function in my
homepage and I found a free one (google) but I
don't like it because it's not pleasing to my eyes Toungue and
i can't edit it because of teh TOSSad.. now what I need is
something to put there marked in red >>

Code:
<FORM method=GET action="[color=red]url[/color]">

i tried (http://chaoswarp.createmybb.com/search.php) but when i
try to type something and hit teh searched button from
my home page it leads me to teh search.php (naturally) but
what I want is a direct results... how do i do taht? if you have
an idea please share it to me... Wink

--
eNigma
#2
This should work:
Code:
<form method="post" action="$settings[bburl]/search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="showresults" value="threads" />
<input type="text" name="keywords" value="" />
<input type="submit" class="submit" value="$lang->go" /></form>

Just add that to wherever you want the search box to be, and tell me if it works.

Moving this to Themes and Templates Support.
#3
hmmm but Belloman it's for my html webpage
#4
Oh I didn't realize that. Do you want it to search the forums? If so, try this code:

Code:
<form method="post" action="http://chaoswarp.createmybb.com/search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="showresults" value="threads" />
<input type="text" name="keywords" value="" />
<input type="submit" class="submit" value="Go" /></form>
#5
woah! Belloman it worked thanks for
teh Graet Support Big Grin

--
eNigma


Forum Jump:


Users browsing this thread: 1 Guest(s)