==============================================================================================================
Modification Name: Last Active In Viewthread v1.0

Modification Author: WormHole

Modification Description:
This modification will add a member's last active time in the member info panel in posts.

Supported Version: XMB 1.9.8 SP3

Installation 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:
For security purposes, Please Check: http://www.xmbgarage.com for the latest version of this modification.
Downloading this modification from other sites could cause malicious code to enter into your XMB Forum software.
As such, XMB Garage will not offer support for modifications not offered from our site.
==============================================================================================================
=====
Step 1.
=====
================
Edit viewthread.php
================
======
Find:
======

            $tharegdate = gmdate($dateformat, $post['regdate'] + $tmoffset);

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

            // Last Active In Viewthread Mod Begin
            $lastvisittxt = '';
            if ($post['lastvisit'] != '') {
                $lastvisitdate = gmdate($dateformat,$post['lastvisit'] + $tmoffset);
                $lastvisittime = gmdate($timecode,$post['lastvisit'] + $tmoffset);
                $lastvisittxt = "<br />$lang[lastactive]<br/>$lastvisitdate $lang[textat] $lastvisittime";
            }
            // Last Active In Viewthread Mod End

======
Find:
======

            $mood = '';

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

            // Last Active In Viewthread Mod Begin
            $lastvisittxt = '';
            // Last Active In Viewthread Mod End

==============================================================================================================
=======
Step 2:
=======
==========================
Go To Admin Panel --> Templates
==========================
==============================
Edit Template: viewthread_post template
==============================
======
Find:
======

$lang[textregistered] $tharegdate

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

$lastvisittxt

==============================================================================================================
=======
Step 3:
=======
=======================
Edit File: /lang/English.lang.php
=======================
======
Find:
======

$lang['lastactive'] = "Last active:";

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

$lang['lastactive'] = "Last Active:";

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