1 (edited by cuteseal 2004-06-07 07:46)

Topic: Quick Search

Hi all,

Just wondering, if anyone has some HTML to put a quick search box on the front page of your site?  Don't want to re-invent the wheel...


Thanks!
Jules

Digital photography news, reviews, discussions and more!
http://www.shuttertalk.com

The online bible for all
http://www.publicbible.com

Re: Quick Search

What do you mean?

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily

Re: Quick Search

My punbb forums are installed under:
http://www.shuttertalk.com/forums/

I want to put a search box on my front page at
http://www.shuttertalk.com/index.php
which can search the forums, without having to enter the forums first, and then click on "search"

Digital photography news, reviews, discussions and more!
http://www.shuttertalk.com

The online bible for all
http://www.publicbible.com

Re: Quick Search

Have a look at the form in search.php. Just mimic that one.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

5 (edited by cuteseal 2004-06-07 23:33)

Re: Quick Search

Ok thanks.

Here's my contribution to the world of punbb: smile

<form method="get" action="forums/search.php" id="search">
Search forums:<br>
<input type="hidden" name="action" value="search">
<input type="text" name="keywords" size="14" maxlength="100">
<input type="submit" name="search" value="Go" accesskey="s">
</form>

You can also add

<input type="hidden" name="show_as" value="topics">

if you want your results to show up as topics (default search behaviour), instead of posts.

Demo on my site: http://www.shuttertalk.com

Cheers,
Julian

Digital photography news, reviews, discussions and more!
http://www.shuttertalk.com

The online bible for all
http://www.publicbible.com

Re: Quick Search

Nice :)

"Programming is like sex: one mistake and you have to support it for the rest of your life."