============================================================================================================================
Modification Name: Last Active In Viewthread

Version:1.0

Author: WormHole

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

Supported Version: XMB 1.9.5 SP1

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 v3. 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 Code:
==========

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

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

            // Last Active In Viewthread Mod Begin
            if (!($post['lastvisit'] > 0)) {
                $lastmembervisittext = '<br />'.$lang['textpendinglogin'];
            } else {
                $lastvisitdate = gmdate("$dateformat",$post['lastvisit'] + ($timeoffset * 3600) + ($addtime * 3600));
                $lastvisittime = gmdate("$timecode",$post['lastvisit'] + ($timeoffset * 3600) + ($addtime * 3600));
                $lastmembervisittext = '<br />'.$lang['lastactive'].'<br/>'.$lastvisitdate.' '.$lang['textat'].' '.$lastvisittime;
            }
            // Last Active In Viewthread Mod End

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

            $mood = '';

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

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

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

$lang[textregistered] $tharegdate

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

$lastmembervisittext

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