aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/admin.php1
-rw-r--r--languages/en.php5
-rw-r--r--views/default/admin/users/newest.php17
3 files changed, 21 insertions, 2 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php
index b9c21ba56..bdf4f81ac 100644
--- a/engine/lib/admin.php
+++ b/engine/lib/admin.php
@@ -139,6 +139,7 @@ function admin_init() {
// users
elgg_add_admin_submenu_item('users', elgg_echo('admin:users'));
elgg_add_admin_submenu_item('online', elgg_echo('admin:users:online'), 'users');
+ elgg_add_admin_submenu_item('newest', elgg_echo('admin:users:newest'), 'users');
elgg_add_admin_submenu_item('add', elgg_echo('admin:users:add'), 'users');
elgg_add_admin_submenu_item('find', elgg_echo('admin:users:find'), 'users');
diff --git a/languages/en.php b/languages/en.php
index d82254ec4..486c6acab 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -449,6 +449,7 @@ To remove a widget drag it back to the <b>Widget gallery</b>.",
'admin:users' => "Users",
'admin:users:online' => 'Currently Online',
+ 'admin:users:newest' => 'Newest',
'admin:users:add' => 'Add',
'admin:users:description' => "This admin panel allows you to control user settings for your site. Choose an option below to get started.",
'admin:users:adduser:label' => "Click here to add a new user...",
@@ -776,13 +777,13 @@ Alternatively, you can enter your database settings below and we will try and do
'installation:debug:error' => 'Display only critical errors',
'installation:debug:warning' => 'Display errors and warnings',
'installation:debug:notice' => 'Log all errors, warnings and notices',
-
+
// Walled Garden support
'installation:registration:description' => 'User registration is enabled by default. Turn this off if you do not want new users to be able to register on their own.',
'installation:registration:label' => 'Allow new users to register',
'installation:walled_garden:description' => 'Enable the site to run as a private network. This will not allow non logged-in users to view any site pages other than those specifically marked as public.',
'installation:walled_garden:label' => 'Restrict pages to logged-in users',
-
+
'installation:httpslogin' => "Enable this to have user logins performed over HTTPS. You will need to have https enabled on your server for this to work.",
'installation:httpslogin:label' => "Enable HTTPS logins",
'installation:view' => "Enter the view which will be used as the default for your site or leave this blank for the default view (if in doubt, leave as default):",
diff --git a/views/default/admin/users/newest.php b/views/default/admin/users/newest.php
new file mode 100644
index 000000000..79de121e5
--- /dev/null
+++ b/views/default/admin/users/newest.php
@@ -0,0 +1,17 @@
+<?php
+// newest users
+if (is_plugin_enabled('profile')) {
+ $users = elgg_list_entities(array(
+ 'type' => 'user', 'subtype'=>null,
+ 'full_view' => FALSE
+ ));
+
+ echo elgg_view_title(elgg_echo('admin:users'));
+ ?>
+
+ <div class="admin_settings members_list users_online">
+ <h3><?php echo elgg_echo('admin:users:newest'); ?></h3>
+ <?php echo $users; ?>
+ </div>
+<?php
+} \ No newline at end of file