Code update for view_player
Posted: Fri Aug 29, 2014 9:51 pm
this is a small update for the view_player/content.php
find on line 65 and 66
and underneath add
Users online will now be able to see when the user who is offline was actually Last active
find on line 65 and 66
Code: Select all
echo "<tr><td width='1%'><b>" . str_replace(" ", " ", Translate("Online")) . ":</b></td>";
echo "<td>" . Translate((IsPlayerOnline($_GET["id"]) ? "Yes" : "No")) . "</td></tr>";Code: Select all
$result = $db->Execute("select last_action from users where id = ?", $_GET["id"]);
$res = FormatDate($result->fields[0]);
echo "<tr><td width='1%'><b>" . str_replace(" ", " ", Translate("Last Seen")) . ":</b></td>";
echo "<td>" . FormatDate($result->fields[0]) . "</td></tr>";