diff --git a/e107_plugins/online/languages/English.php b/e107_plugins/online/languages/English.php
index 33c6c9ae7..8fe9c5fc3 100644
--- a/e107_plugins/online/languages/English.php
+++ b/e107_plugins/online/languages/English.php
@@ -26,7 +26,7 @@ define("LAN_ONLINE_4", "Online");
define("LAN_ONLINE_5", "");
define("LAN_ONLINE_6", "Newest Member: ");
define("LAN_ONLINE_7", "viewing");
-define("LAN_ONLINE_8", "most ever online: ");
+define("LAN_ONLINE_8", "Most ever online: ");
define("LAN_ONLINE_9", "on ");
define("LAN_ONLINE_10", "Online Menu");
diff --git a/e107_plugins/online/lastseen_menu.php b/e107_plugins/online/lastseen_menu.php
index f260bd17f..784e6360e 100644
--- a/e107_plugins/online/lastseen_menu.php
+++ b/e107_plugins/online/lastseen_menu.php
@@ -35,13 +35,13 @@ $num = intval(varsettrue($menu_pref['online_ls_amount'],10));
$sql -> db_Select('user', 'user_id, user_name, user_currentvisit', 'ORDER BY user_currentvisit DESC LIMIT 0,'.$num, 'nowhere');
$lslist = $sql -> db_getList();
-$text = $tp -> parseTemplate($TEMPLATE_LASTSEEN['START'], TRUE);
+$text = $tp -> parseTemplate($LASTSEEN_TEMPLATE['start'], TRUE);
foreach($lslist as $row)
{
setScVar('online_shortcodes', 'currentUser', $row);
- $text .= $tp -> parseTemplate($TEMPLATE_LASTSEEN['ITEM'],TRUE);
+ $text .= $tp -> parseTemplate($LASTSEEN_TEMPLATE['item'],TRUE);
}
-$text .= $tp -> parseTemplate($TEMPLATE_LASTSEEN['END'], TRUE);
+$text .= $tp -> parseTemplate($LASTSEEN_TEMPLATE['end'], TRUE);
$caption = varsettrue($menu_pref['online_ls_caption'],LAN_LASTSEEN_1);
$ns->tablerender($caption, $text, 'lastseen');
diff --git a/e107_plugins/online/online_menu.php b/e107_plugins/online/online_menu.php
index 953ca4631..2492225f4 100644
--- a/e107_plugins/online/online_menu.php
+++ b/e107_plugins/online/online_menu.php
@@ -42,10 +42,16 @@ if(!defined('e_TRACKING_DISABLED'))
{
if (MEMBERS_ONLINE)
{
- global $listuserson;
+ // global $listuserson;
+
+ $listuserson = e107::getOnline()->userList();
+
$ret='';
- foreach($listuserson as $uinfo => $pinfo)
+ foreach($listuserson as $uinfo => $row)
{
+
+ $pinfo = $row['user_location'];
+
$online_location_page = str_replace('.php', '', substr(strrchr($pinfo, '/'), 1));
if ($pinfo == 'log.php' || $pinfo == 'error.php')
{
@@ -73,20 +79,30 @@ if(!defined('e_TRACKING_DISABLED'))
$online_location_page = 'comment';
}
list($oid, $oname) = explode('.', $uinfo, 2);
- setScVar('online_shortcodes', 'currentMember', array('oid' => $oid, 'oname' => $oname, 'page' => $online_location_page, 'pinfo' => $pinfo));
- $ret .= $tp->parseTemplate($TEMPLATE_ONLINE['ONLINE_MEMBERS_LIST_EXTENDED'], TRUE);
+
+
+ $data = array(
+ 'oid' => $row['user_id'],
+ 'oname' =>$row['user_name'],
+ 'page' => $online_location_page,
+ 'pinfo' => $pinfo,
+ 'oimage' => $row['user_image']
+ );
+
+ setScVar('online_shortcodes', 'currentMember', $data);
+ $ret .= $tp->parseTemplate($ONLINE_TEMPLATE['online_members_list_extended'], TRUE);
}
setScVar('online_shortcodes', 'onlineMembersList', $ret);
}
}
- $text = $tp->parseTemplate($TEMPLATE_ONLINE['ENABLED'], TRUE);
+ $text = $tp->parseTemplate($ONLINE_TEMPLATE['enabled'], TRUE);
}
else
{
if (ADMIN)
{
- $text = $tp->parseTemplate($TEMPLATE_ONLINE['DISABLED'], TRUE);
+ $text = $tp->parseTemplate($ONLINE_TEMPLATE['disabled'], TRUE);
}
else
{
@@ -95,7 +111,16 @@ else
}
$img = (is_readable(THEME.'images/online_menu.png') ? "" : '');
+
$caption = $img.' '.varsettrue($menu_pref['online_caption'],LAN_ONLINE_10);
+
+if (getperms('1'))
+{
+ $path = e_PLUGIN_ABS."online/config.php";
+ $caption .= "";
+}
+
+
$ns->tablerender($caption, $text, 'online_extended');
?>
\ No newline at end of file
diff --git a/e107_plugins/online/online_menu_template.php b/e107_plugins/online/online_menu_template.php
index e9b2159e0..3b14cc3b0 100644
--- a/e107_plugins/online/online_menu_template.php
+++ b/e107_plugins/online/online_menu_template.php
@@ -17,35 +17,32 @@
global $sc_style;
//##### LASTSEEN MENU ---------------------------------------------------------
-$sc_style['LASTSEEN_DATE']['pre'] = "
[ ";
-$sc_style['LASTSEEN_DATE']['post'] = " ]";
-
-$TEMPLATE_LASTSEEN['START'] = "