Title: Number Of Days In Today's Posts v1.1

Author: John Briggs

Description:
This modification will allow you to specify the number of days worth of thread activity to display in Today's Posts (NOT TOPIC ACTIVITY).

Copyright:  2006 John Briggs. All rights reserved.

Compatability: XMB 1.9.5 Final

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: lang/English.lang.php
======================

=================================
Add Code At Very Bottom of File Above ?>:
=================================

// Number Of Days In Today's Posts Mod Begin
$lang['todaygo'] = "Go!";
$lang['todaydays'] = "days";
$lang['todayshow'] = "Show thread activity from the past";
// Number Of Days In Today's Posts Mod End

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

====================
Edit File: today.php
====================

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

$srchfrom = $onlinetime - 86400;

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

$daysold = (isset($daysold) ? (int) $daysold : 1);
$srchfrom = $onlinetime - (86400 * $daysold);

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

$mpurl = 'today.php';

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

$mpurl = 'today.php?daysold='.$daysold;

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

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

=====================
Add Code At Very Top:
=====================

<form method="post" action="today.php">

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

$rows

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

<tr class="header">
<td align="center" colspan="7">$lang[todayshow]&nbsp;&nbsp;<input type="text" name="daysold" size="3" value="$daysold" />&nbsp;&nbsp;$lang[todaydays]&nbsp;&nbsp;<input class="submit" type="submit" name="searchsubmit" value="$lang[todaygo]" /></td>
</tr>

========================
Add Code At Very Bottom:
========================

</form>

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