Title: Forum Display Search v1.0

Author: John Briggs, Area51Mafia

Description:
This mod will provide a per forum search option that displays in forum display.

Copyright:  2006 John Briggs. All rights reserved.

Compatability: XMB 1.9.8 Engage Final SP2

Updated for 1.9.8 By: WormHole @ XMB Garage

Install Note: Before adding this mod to your forum, you should back up all files related to this mod.

License Note: This mod is released under the GPL License. A copy is provided with this software.

Author Note:
You downloaded this hack from XMBGarage.com, the #1 source for XMB related downloads.
Please visit http://www.xmbgarage.com/ for support.

=======================================================================================================================================
=======
Step 1:
=======

===========================
Edit File: forumdisplay.php
===========================

==========
Find Code:
==========

'forumdisplay_thread_admin',
'forumdisplay_thread_lastpost'

==================
Replace Code With:
==================

'forumdisplay_thread_admin',
'forumdisplay_thread_lastpost',
'forumdisplay_search',

==========
Find Code:
==========

if (X_ADMIN || $status1 == 'Moderator') {

===============
Add Code Above:
===============

$fsearch = '';
if (X_MEMBER) {
    eval('$fsearch = "'.template('forumdisplay_search').'";');
}

=======================================================================================================================================
=======
Step 2:
=======

=======================================================
Go To Administration Panel -> Templates -> forumdisplay
=======================================================

==========
Find Code:
==========

$multipage

==================
Add Code Below:
==================

$fsearch

=======================================================================================================================================
=======
Step 3:
=======

=============================================================
Go To Administration Panel -> Templates -> forumdisplay_admin
=============================================================

==========
Find Code:
==========

</td>
</tr>
$multipage

==================
Replace Code With:
==================

</td>
</tr>
$multipage
$fsearch

=======================================================================================================================================
=======
Step 4:
=======

=======================================
Go To Administration Panel -> Templates
=======================================

=========================================
Create Template Name: forumdisplay_search
=========================================

=========
Add Code:
=========

<tr>
<td colspan="10" bgcolor="$THEME[altbg2]" class="ctrtablerow">
<form method="post" action="misc.php?action=search">
$lang[textsearchfor]&nbsp;<input type="text" name="srchtxt" size="30" maxlength="40" />&nbsp;&nbsp;$lang[textlfrom]&nbsp;
<select name="srchfrom">
<option value="86400">$lang[day1]</option>
<option value="604800" selected="selected">$lang[aweek]</option>
<option value="2592000">$lang[month1]</option>
<option value="7948800">$lang[month3]</option>
<option value="15897600">$lang[month6]</option>
<option value="31536000">$lang[lastyear]</option>
<option value="0">$lang[beginning]</option>
</select>
&nbsp;
<input type="hidden" name="srchfid" value="$fid" />
<input type="submit" class="submit" name="searchsubmit" value="$lang[textsearch]" />
</form>
</td>
</tr>

=======================================================================================================================================