Title: Total Views And Replies v1.0

Author: John Briggs

Description:
This modification will provide a bar that displays in threads showing  total replies, total views and the thread ID.

Copyright:  2006 John Briggs. All rights reserved.

Compatability: XMB 1.9.8 Engage Final SP2/SP3

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: viewthread.php
===================
==========
Find Code:
==========

$query = $db->query("SELECT t.fid, t.subject, t.closed, t.topped, t.lastpost, t.replies, COUNT(pid) AS postcount, MAX(dateline) AS lastpostdate FROM ".X_PREFIX."threads AS t LEFT JOIN ".X_PREFIX."posts USING (tid) WHERE t.tid=$tid GROUP BY t.tid");

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

$query = $db->query("SELECT t.tid, t.fid, t.subject, t.views, t.closed, t.topped, t.lastpost, t.replies, COUNT(pid) AS postcount, MAX(dateline) AS lastpostdate FROM ".X_PREFIX."threads AS t LEFT JOIN ".X_PREFIX."posts USING (tid) WHERE t.tid=$tid GROUP BY t.tid");

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

=========================
Go to admin panel -> Templates
=========================
====================
Edit Template: viewthread
====================
==========
Find Code:
==========

<tr class="header">
<td width="18%">$lang[textauthor] </td>
<td>$lang[textsubject] $thread[subject]</td>
</tr>

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

<tr class="category">
<td align="center" colspan="2"><font color="$THEME[cattext]">[<strong>$lang[totalviews] $thread[views]</strong> | <strong>$lang[totalreplies] $thread[replies]</strong> | <strong>$lang[threadtid] $thread[tid]</strong>]</font></td>
</tr>

=======================================================================================================================================
=======
Step 3:
=======
=======================
Edit File: lang/English.lang.php
=======================
============================
Add Code To End Of File Above ?>
============================

// Total Views and Replies Mod Begin
$lang['totalviews'] = "Total Views:";
$lang['totalreplies'] = "Total Replies:";
$lang['threadtid'] = "Thread Id:";
// Total Views and Replies Mod End

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