Sometimes you need to integrate web-pages with corresponding forum threads. Here's one of the way to do it.

<?php
$keywords="MyBB integration"; // The search keywords
?>
<!– The path to mybb search.php –>

<form method="post" action="http://www.yoursite.com/mybb/search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="keywords" value="<?php echo $keywords; ?>" />
<!– search titles only –>
<input type="hidden"  name="postthread" value="2" />
<!– Search in all forums –>
<input type="hidden" name="forums[]" size="15" multiple="multiple" value="all">
<!– All dates –>
<input type="hidden" name="postdate" value="0">
<input type="hidden" name="pddir" value="1" />
<input type="hidden" name="sortby" value="lastpost">
<input type="hidden" name="sortordr" value="asc" />
<!– the result will be threads, not posts –>
<input type="hidden" name="showresults" value="threads" />
<input type="submit" class="button" name="submit" value="Forum" />
</form>

Related posts:

  1. Short script for searching mail logs Today I had to search through dozens of mail logs...
  2. Solaris and external USB disks Short tutorial on how to connect, format, mount, detach and...
  3. How to replace the WP comment form with a WYSIWYG editor You can replace the standard WordPress comment form with a...