From 7f457766397a574474e0e82f9ec510b9fe6b1084 Mon Sep 17 00:00:00 2001 From: Jeroen Dalsem Date: Thu, 13 Jun 2024 14:05:30 +0200 Subject: [PATCH] removed: online users count has been made obsolete by Elgg admin menu --- elgg-plugin.php | 4 ---- languages/en.php | 3 --- languages/es.php | 2 -- languages/fr.php | 2 -- languages/nl.php | 2 -- .../widgets/online_user_count/content.php | 22 ------------------- 6 files changed, 35 deletions(-) delete mode 100644 views/default/widgets/online_user_count/content.php diff --git a/elgg-plugin.php b/elgg-plugin.php index 6d6c893..42f279a 100644 --- a/elgg-plugin.php +++ b/elgg-plugin.php @@ -59,7 +59,6 @@ ], ], 'view_options' => [ - 'widgets/online_user_count/content' => ['ajax' => true], 'advanced_statistics/account/statistics/details' => ['ajax' => true], 'advanced_statistics/account' => ['ajax' => true], 'advanced_statistics/admin_data' => ['ajax' => true], @@ -70,8 +69,5 @@ 'context' => ['admin'], 'multiple' => true, ], - 'online_user_count' => [ - 'context' => ['admin'], - ], ], ]; diff --git a/languages/en.php b/languages/en.php index 77cf195..c70503a 100644 --- a/languages/en.php +++ b/languages/en.php @@ -85,9 +85,6 @@ 'widgets:advanced_statistics:description' => "Show some advanced statistics", 'advanced_statistics:widgets:advanced_statistics:content:no_chart' => "Edit the widget to select a chart.", - 'widgets:online_user_count:name' => "Online Users Counter", - 'widgets:online_user_count:description' => "Show the amount of online users and will automatically refresh", - // user statistics 'advanced_statistics:numentities:admin_help' => "* non searchable entities, only shown to site administrators", diff --git a/languages/es.php b/languages/es.php index f2949db..c335cb1 100644 --- a/languages/es.php +++ b/languages/es.php @@ -41,6 +41,4 @@ 'widgets:advanced_statistics:name' => 'Estadísticas avanzadas', 'widgets:advanced_statistics:description' => 'Mostrar algunas estadísticas avanzadas', 'advanced_statistics:widgets:advanced_statistics:content:no_chart' => 'Editar el widget para elegir un gráfico.', - 'widgets:online_user_count:name' => 'Contador de usuarios en linea', - 'widgets:online_user_count:description' => 'Mostrar la cantidad de usuario en linea y actualizar automáticamente', ); diff --git a/languages/fr.php b/languages/fr.php index f3bf5ff..0a26847 100755 --- a/languages/fr.php +++ b/languages/fr.php @@ -41,6 +41,4 @@ 'widgets:advanced_statistics:name' => 'Statistiques avancées', 'widgets:advanced_statistics:description' => 'Afficher quelques statistiques avancées', 'advanced_statistics:widgets:advanced_statistics:content:no_chart' => 'Configurer le widget pour sélectionner un graphique.', - 'widgets:online_user_count:name' => 'Compteur de membres connectés', - 'widgets:online_user_count:description' => 'Affiche le nombre de membres connectés et se rafraîchit automatiquement', ); diff --git a/languages/nl.php b/languages/nl.php index 9738b24..a3d6c7c 100644 --- a/languages/nl.php +++ b/languages/nl.php @@ -85,8 +85,6 @@ 'widgets:advanced_statistics:name' => 'Geavanceerde Statistieken', 'widgets:advanced_statistics:description' => 'Toon enkele geavanceerde statistieken', 'advanced_statistics:widgets:advanced_statistics:content:no_chart' => 'Bewerk de widget om een grafiek te selecteren', - 'widgets:online_user_count:name' => 'Online gebruikers teller', - 'widgets:online_user_count:description' => 'Toont het aantal online gebruikers en zal dit automatisch verversen', 'advanced_statistics:users:friend_bundled' => 'Gegroepeerde aantallen vrienden', 'advanced_statistics:users:groups_bundled' => 'Gegroepeerde groepslidmaatschappen', ); diff --git a/views/default/widgets/online_user_count/content.php b/views/default/widgets/online_user_count/content.php deleted file mode 100644 index 32d91d7..0000000 --- a/views/default/widgets/online_user_count/content.php +++ /dev/null @@ -1,22 +0,0 @@ - 'user', - 'wheres' => [ - function(QueryBuilder $qb, $main_alias) { - return $qb->compare("{$main_alias}.last_action", '>=', Values::normalizeTimestamp('-10 minutes'), ELGG_VALUE_TIMESTAMP); - } - ], -]); - -echo elgg_echo('admin:statistics:label:onlineusers') . ": {$count}"; - -?> -