MyBB Community Forums

Full Version: Custom Search Box Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am having issues implementing a custom search box that searches the entire posts. Currently, it is only searching the titles and I do not know how to change that.

the code in the header_welcomeblock_ templates looks as follows:

<div id="search">
			<form action="{$mybb->settings['bburl']}/search.php" method="post">
				<div class="search_input_wrap"><input name="keywords" class="nav_search_input" title="Enter your search keywords" type="text" /></div>
				<input value="" name="submit-search" class="nav_search_button" type="submit" />
				<input type="hidden" name="action" value="do_search" />
			</form>
			</div>

Here you can look at the forum yourself.

I already found this post on how to create a basic search box, however I do not see the value that changes the search from 'titles only' to 'entire posts'.

Thanks so much in advance!
I added

<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="showresults" value="threads" />
and it works fine now.