============================================================================================================================
Modification Title: Forum Display Search

Version: 1.0

Author: John Briggs, Area51Mafia

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

Copyright:  2010 John Briggs. All Rights Reserved.

Compatability: XMB 1.9.5 SP1

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

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

Author Note:
You downloaded this modificaiton 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:
==========

loadtemplates(

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

loadtemplates(
'forumdisplay_search',

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

if (X_ADMIN || $status1 == "Moderator") {
    eval('echo stripslashes("'.template('forumdisplay_admin').'");');
} else {
    eval('echo stripslashes("'.template('forumdisplay').'");');
}

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

// Forum Display Search Mod Begin
$fsearch = '';
if (X_MEMBER) {
    eval('$fsearch = "'.template('forumdisplay_search').'";');
}
// Forum Display Search Mod End

============================================================================================================================
=======
Step 2:
=======
===============================
Go To Administration Panel --> Templates
===============================
=====================
Edit Template: forumdisplay
=====================
==========
Find Code:
==========

$multipage
</table>
</td>
</tr>
</table>

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

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

============================================================================================================================
=======
Step 3:
=======
===============================
Go To Administration Panel --> Templates
===============================
==========================
Edit Template: forumdisplay_admin
==========================
==========
Find Code:
==========

$multipage
</table>
</td>
</tr>
</table>

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

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

============================================================================================================================
=======
Step 4:
=======
===============================
Go To Administration Panel --> Templates
===============================
================================
Create New Template: forumdisplay_search
================================
========================
Add Code and Submit Changes:
========================

<tr>
<td colspan="10" bgcolor="$altbg2" class="header" align="center">
<form method="post" action="misc.php?action=search">
<span class="smalltxt">$lang[textsearchfor]</span>&nbsp;<input style="font-size: 9px" type="text" name="srchtxt" size="30" maxlength="40" />&nbsp;&nbsp;<span class="smalltxt">$lang[textlfrom]</span>&nbsp;
<select style="font-size: 9px" 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 style="font-size: 9px" type="submit" class="submit" name="searchsubmit" value="$lang[textsearch]" />
</form>
</td>
</tr>

============================================================================================================================
Enjoy!