PDA

View Full Version : Getting a search field on a non-vb page.


Gutspiller
04-13-2002, 10:24 PM
I tried this one: https://vborg.vbsupport.ru/showthread.php?postid=221128#post221128
and it didn't work.

I also want it so that I can block/add certain forums to be searched.

Could somebody help me with this please.

Thanks!

MarkB
04-18-2002, 06:51 AM
View the source of the main search page, and basically remove elements you don't want, and be sure to point the forum to the right location of search.php if you put the non-vB page outside of the vB directory. The following code works for me for a general search (ie, all forums):


<form action="http://www.yourdomain.com/forum/search.php" method="post">

<input type="hidden" name="s" value="">



<input type="text" class="bginput" name="query" size="20">

<input type="hidden" name="forumchoice" value="-1">

<input type="hidden" name="titleonly" value="">

<input type="hidden" name="action" value="simplesearch">

<input type="submit" class="bginput" name="Submit" value="Perform Search" accesskey="s">

<input type="hidden" value="" name="showposts">

<input type="hidden" name="searchdate" value="-1">

</form>

geniuscrew
04-30-2002, 11:58 AM
Can anyone help please?

I just put this on the main page but i also have the Quick PM hack installed and I think they're clashing.

Also what does the accesskey="s" do?

thanx