From ec7ef3c01db1ec9c286db5b173c7f68376914799 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 19 May 2010 22:08:51 +0000 Subject: Added "Newest Users" admin section. git-svn-id: http://code.elgg.org/elgg/trunk@6104 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/admin.php | 1 + languages/en.php | 5 +++-- views/default/admin/users/newest.php | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 views/default/admin/users/newest.php 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 Widget gallery.", '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 @@ + 'user', 'subtype'=>null, + 'full_view' => FALSE + )); + + echo elgg_view_title(elgg_echo('admin:users')); + ?> + +
+

+ +
+