Quote:
Originally Posted by MarcoH64
Don't use the forumid in the filename. Insert the followingline instead:
HTML Code:
<input type="hidden" name="forumid" value="29" />
|
Just tried.
Code:
<form action="forum/search.php" method="post">
<input type="hidden" name="forumid" value="29" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="text" class="bginput" name="query" size="20"/> $gobutton<br />
</form>
still searches the whole forum.
With a little help from Brian over at VBadvanced.com I found that this could work by adding this line :
Code:
<input type="hidden" name="forumchoice[]" value="your_forum_id_here" />
so the final code I have put (to search by titles ONLY + search only a specific forum) is this :
Code:
<form action="forum/search.php?titleonly=1" method="post">
<input type="hidden" name="forumchoice[]" value="29" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="text" class="bginput" name="query" size="20"/> $gobutton<br />
</form>
Now one last modification I want to make is to remove the "GO" button. I want it to have only the search field and the users to insert the keyword and press enter...
I was thinking of just removing this code
would this cause any problems - (maybe to specific browsers)?