Topic: Putting a search bar in the header section?

How do I go about putting a search bar in the header area so I can eliminate the "Search" nav link so it would be more user accessible? What I tried was this, but it didn't work...

<div class="search">
<form method="get" id="search" action="search.php">
    <input name="keywords" type="text" id="headersearch"  value="Search the Forums..." size="42" />
    <input type="submit" name="search" value="Go" accesskey="s" />
</form>

</div>

Is this anywhere near correct?

Re: Putting a search bar in the header section?

no one??

Re: Putting a search bar in the header section?

Like this? http://www.punres.org/viewtopic.php?pid=17676

Re: Putting a search bar in the header section?

Not quite... that mod uses the search bar as another menu link (sort of). And I would like to put these styles on the search bar:

.search {
    width: 369px;
    height: 37px;
    margin: 0px;
    padding: 0px;
    float: right;
    border-top: 0px none;
    border-right: 0px none;
    border-bottom: 0px none;
    border-left: 0px none;
}

.search input {
    vertical-align: bottom;
    font-size: 11px;
    padding: 7px;
}

Re: Putting a search bar in the header section?

what document would i edit in order to put a search bar in the "brdmenu?"

6

Re: Putting a search bar in the header section?

header.php I think

7 (edited by greg9885 2007-07-13 23:01)

Re: Putting a search bar in the header section?

do you know where in header.php?  I looked but I can't really seem to find it.

Re: Putting a search bar in the header section?

??

9

Re: Putting a search bar in the header section?

Here's what I did on my site:

http://adsbb.co.za/

<form id="search" method="get" action="search.php">
<input type="hidden" name="action" value="search" />
<input type="hidden" name="show_as" value="topics" />
<label class="conl"><input type="text" name="keywords" size="20" maxlength="100" /></label>
<input type="submit" name="search" value="Search" accesskey="s" />
</form>

I just placed the above in the announcement bar.