diff --git a/e107_handlers/online_class.php b/e107_handlers/online_class.php index a687c3bf9..11f16b674 100755 --- a/e107_handlers/online_class.php +++ b/e107_handlers/online_class.php @@ -321,8 +321,20 @@ class e_online } - function userList() + function userList($debug=false) { + + if($debug === true) + { + //print_a($this->users); + $data = e107::getDb()->retrieve('user', 'user_id,user_name,user_image, 1 as user_active, CONCAT_WS(".",user_id,user_name) as online_user_id', "LIMIT 7", true); + + // print_a($data); + + return $data; + } + + return $this->users; } diff --git a/e107_handlers/shortcode_handler.php b/e107_handlers/shortcode_handler.php index 033093973..eda258861 100644 --- a/e107_handlers/shortcode_handler.php +++ b/e107_handlers/shortcode_handler.php @@ -430,6 +430,12 @@ class e_parse_shortcode echo "
Couldn't Load: ".$path." with class-name: {$className} and pluginName {$pluginName}
"; } } + elseif(E107_DBG_INCLUDES) + { + // echo "

Couldn't Find Class '".$className."' in ".$path."

"; + } + + e107::getDebug()->log( "
Couldn't Load: ".$path." with class-name: {$className} and pluginName {$pluginName}
"); // TODO - throw exception? diff --git a/e107_plugins/online/config.php b/e107_plugins/online/config.php index 024575f37..864a2f42c 100644 --- a/e107_plugins/online/config.php +++ b/e107_plugins/online/config.php @@ -24,24 +24,12 @@ require_once(e_ADMIN.'auth.php'); $mes = e107::getMessage(); $frm = e107::getForm(); -$menu_pref = e107::getConfig('menu')->getPref(''); - -if (!isset($menu_pref['online_ls_caption'])) -{ // Assume that if one isn't set, none are set - $menu_pref['online_ls_caption'] = 'LAN_LASTSEEN_1'; //caption for the lastseen_menu - $menu_pref['online_ls_amount'] = 10; //amount of records to show in the lastseen_menu - $menu_pref['online_caption'] = 'LAN_ONLINE_10'; //caption for the online_menu - $menu_pref['online_show_memberlist'] = true; //toggle whether to show a simple member list of online members (shwoing user1, user2, user3) - $menu_pref['online_show_memberlist_extended'] = false; //toggle whether to show the extended member list of online members (showing 'user viewing page') -} - - -if (isset($_POST['update_menu'])) +if (isset($_POST['update_menu'])) { $temp = array(); - while (list($key, $value) = each($_POST)) + while (list($key, $value) = each($_POST)) { - if ($value != LAN_UPDATE) + if ($value != LAN_UPDATE) { $temp[$key] = $value; } @@ -56,13 +44,31 @@ if (isset($_POST['update_menu'])) $menuPref->setPref($k, $v); } $menuPref->save(false, true, false); + $mes->addSuccess(LAN_SAVED); } //$ns->tablerender('', "
".LAN_UPDATED.'
'); $ns->tablerender($caption, $mes->render() . $text); + + echo $mes->render(); } +$menu_pref = e107::getConfig('menu')->getPref(''); + +if (!isset($menu_pref['online_ls_caption'])) +{ // Assume that if one isn't set, none are set + $menu_pref['online_ls_caption'] = 'LAN_LASTSEEN_1'; //caption for the lastseen_menu + $menu_pref['online_ls_amount'] = 10; //amount of records to show in the lastseen_menu + $menu_pref['online_caption'] = 'LAN_ONLINE_4'; //caption for the online_menu + $menu_pref['online_show_memberlist'] = true; //toggle whether to show a simple member list of online members (shwoing user1, user2, user3) + $menu_pref['online_show_memberlist_extended'] = false; //toggle whether to show the extended member list of online members (showing 'user viewing page') + $menu_pref['online_show_guests'] = true; +} + + + + $text = " -