============================================================================================================================
Modification Title: Total Views And Replies

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

$query = $db->query("SELECT fid, subject, closed, topped, pollopts, lastpost FROM $table_threads WHERE tid='$tid'");

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

$query = $db->query("SELECT tid, fid, subject, views, replies, closed, topped, pollopts, lastpost FROM $table_threads WHERE tid='$tid'");

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

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

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

<tr class="category">
<td align="center" colspan="2"><font color="$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!