]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added "Newest Users" admin section.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 19 May 2010 22:08:51 +0000 (22:08 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 19 May 2010 22:08:51 +0000 (22:08 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6104 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/admin.php
languages/en.php
views/default/admin/users/newest.php [new file with mode: 0644]

index b9c21ba562f1b046ac2301580f6a7bdeb72a922b..bdf4f81ac9aa5ea7ac1f4f4ed7ca851c6fddd56c 100644 (file)
@@ -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');
 
index d82254ec4a485366d4e2b723ea1d08e4e292a6bd..486c6acabf40c00e3574da795e9a4cf6f92cf460 100644 (file)
@@ -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 (file)
index 0000000..79de121
--- /dev/null
@@ -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