## EasyMod compliant
##############################################################
## MOD Title: last_online_on_profile
## MOD Author: Konsti < konstantinc.hahn@web.de > (Konstantin C. Hahn) http://www.cback.de
## MOD Description: With this MOD you can see users last online 
##                  date and the time of the last login on profile.
##                  
## MOD Version: 1.1.0
##
## Installation Level: Easy
## Installation Time: 5 min
## Files To Edit: 6
##                includes/usercp_viewprofile.php
##                language/lang_english/lang_main.php
##                language/lang_russian/lang_main.php
##                templates/subSilver/profile_view_body.tpl
##
## Included Files: 0
##############################################################
## For Security Purposes, Please Check: http://www.redio.de/topics/1063.html for the
## latest version of this MOD. Downloading this MOD from other sites than phpBB.de or redio.de
## could cause malicious code to enter into your phpBB Forum.
##############################################################
## History:
## - 19.11.2006:
##     - Publishing of the MOD
##    (v.1.0.0)
## - 25.11.2006:
##     - EasyMOD's Problem with some Code parts fixed.
#     (v.1.0.0a)
## - 28.12.2006-29.12.2006 (at midnight^^)
##     - Sort the memberlist by last login date
##     - Show "Never logged in" if a user hasn't logged in yet
##    (v.1.1.0)
##############################################################
## Author Notes:
##
## Bugs or a better English translation:
## http://www.redio.de/topics/1063.html
## 
## Konsti
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php

#
#-----[ FIND ]------------------------------------------
#
	'JOINED' => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']),

#
#-----[ AFTER, ADD ]------------------------------------------
#
	'LAST_ONLINE' => ( $profiledata['user_session_time'] != 0 ) ? create_date('d.m.Y, H:i', $profiledata['user_session_time'], $board_config['board_timezone']) : $lang['no_logins_yet'],

#
#-----[ FIND ]------------------------------------------
# 
	'L_JOINED' => $lang['Joined'],
	
#
#-----[ AFTER, ADD ]------------------------------------------
# 
	'L_LAST_ONLINE' => $lang['last_online'], 

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Start last online on profileMOD
$lang['last_online'] = 'Last Online';
$lang['no_logins_yet'] = 'Never logged in';
$lang['Sort_Online'] = 'Last Online';

#
#-----[ OPEN ]------------------------------------------
#
language/lang_russian/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Start last online on profileMOD
$lang['last_online'] = ' ';
$lang['no_logins_yet'] = '  ';
$lang['Sort_Online'] = '  ';

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl

#
#-----[ FIND ]------------------------------------------
#
		<tr> 
		  <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_JOINED}:&nbsp;</span></td>
		  <td width="100%"><b><span class="gen">{JOINED}</span></b></td>
		</tr>
                
#
#-----[ AFTER, ADD ]------------------------------------------
#
		<tr> 
		  <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_LAST_ONLINE}:&nbsp;</span></td>
		  <td width="100%"><b><span class="gen">{LAST_ONLINE}</span></b></td>
		</tr>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM