============================================================================================================================
Modification Title: Today's Posts Post Icons

Version: 1.0

Author: John Briggs

Description:
This modification will enable the viewing of post icons for threads to display in Today's posts.
This modification addressed incorrect and unused code for post icons in Today's Posts.

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 modification.

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

Author Note:
You downloaded this modification from XMBGarage.com, the #1 source for XMB related downloads.
Please visit http://www.xmbgarage.com/ for support.
============================================================================================================================
=======
Step 1:
=======
================
Edit File: today.php
================
==========
Find Code:
==========

    if ( $thread['icon'] != "") {
        $thread['icon'] = '<img src="'.$imgdir.'/'.$thread['icon'].'" />';
    } else {
        $thread['icon'] = "&nbsp;";
    }

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

    if ($thread['icon'] != '' && file_exists($smdir.'/'.$thread['icon'])) {
        $thread['icon'] = '<img src="'.$smdir.'/'.$thread['icon'].'" alt="" border="0" />';
    } else {
        $thread['icon'] = '';
    }

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

<tr>
<td class="header" width="4%">&nbsp;</td>
<td class="header" width="43%">$lang[textsubject]</td>
<td class="header" width="14%" align="center">$lang[textauthor]</td>
<td class="header" width="14%">$lang[textforum]</td>
<td class="header" width="5%" align="center">$lang[textreplies]</td>
<td class="header" width="5%" align="center">$lang[textviews]</td>
<td class="header" width="23%">$lang[textlastpost]</td>
</tr>

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

<tr class="header">
<td width="4%" align="center">&nbsp;</td>
<td width="4%" align="center">$lang[texticon]</td>
<td width="43%" align="center">$lang[textsubject]</td>
<td width="14%" align="center">$lang[textauthor]</td>
<td width="14%" align="center">$lang[textforum]</td>
<td width="5%" align="center">$lang[textreplies]</td>
<td width="5%" align="center">$lang[textviews]</td>
<td width="23%" align="center">$lang[textlastpost]</td>
</tr>

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

<td width="4%" bgcolor="$altbg1" align="center">$folder</td>

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

<td width="4%" bgcolor="$altbg1" align="center">$thread[icon]</td>

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

===============================
Go To Administration Panel --> Templates
===============================
========================
Edit Template: today_multipage
========================
==========
Find Code:
==========

colspan="7"

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

colspan="8"

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