From fc6bbfbebb0189dd4a34eda253a6bf44dc810d8f Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 8 Dec 2003 08:12:09 +0000 Subject: [PATCH] Users tweaks. Still need to add admin user registration. git-svn-id: http://svn.automattic.com/wordpress/trunk@591 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/users.php | 65 +++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 35 deletions(-) diff --git a/wp-admin/users.php b/wp-admin/users.php index 7975ac0bf2..eced6779ef 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -84,7 +84,7 @@ default: ?>

Authors

- +
@@ -106,12 +106,12 @@ default: $short_url = substr($short_url, 0, -1); if (strlen($short_url) > 35) $short_url = substr($short_url, 0, 32).'...'; - $bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee'; + $style = ('class="alternate"' == $style) ? '' : 'class="alternate"'; $numposts = $wpdb->get_var("SELECT COUNT(*) FROM $tableposts WHERE post_author = $user->ID and post_status = 'publish'"); if (0 < $numposts) $numposts = "$numposts"; echo " - - + + @@ -132,51 +132,46 @@ default: get_results("SELECT * FROM $tableusers WHERE user_level=0 ORDER BY ID"); + $users = $wpdb->get_results("SELECT * FROM $tableusers WHERE user_level = 0 ORDER BY ID"); if ($users) { ?>

Users

-
ID Nickname
$user_data->ID
$user_data->ID $user_data->user_nickname $user_data->user_firstname $user_data->user_lastname $email
+
- - - - - - - 3) { ?> - - + + + + + + ID); - echo "\n\n"; $email = $user_data->user_email; $url = $user_data->user_url; - $bg1 = ($user_data->user_login == $user_login) ? "style=\"background-image: url('../b2-img/b2button.gif');\"" : "bgcolor=\"#dddddd\""; - $bg2 = ($user_data->user_login == $user_login) ? "style=\"background-image: url('../b2-img/b2button.gif');\"" : "bgcolor=\"#eeeeee\""; - echo "\n"; - echo "\n"; - echo "\n"; - echo ""; - echo "\n"; - echo " + + + + + +\n"; - if ($user_level > 3) { - echo "\n"; - } - echo "\n"; + echo $user_data->user_level; + if ($user_level >= 2) + echo " ID."&prom=up\">+ "; + echo "\n\n"; } - ?>
IDNicknameNameE-mailURLLevelLoginIDNicknameNameE-mailURLLevel
".$user_data->ID."ID.")\">".$user_data->user_nickname."".$user_data->user_firstname." ".$user_data->user_lastname." \"e-mail:  "; - if (($user_data->user_url != "http://") and ($user_data->user_url != "")) - echo "\"website: "; - echo "".$user_data->user_level; - if ($user_level >= 2) - echo " ID."&prom=up\">+ "; + $short_url = str_replace('http://', '', stripslashes($url)); + $short_url = str_replace('www.', '', $short_url); + if ('/' == substr($short_url, -1)) + $short_url = substr($short_url, 0, -1); + if (strlen($short_url) > 35) + $short_url = substr($short_url, 0, 32).'...'; + $style = ('class="alternate"' == $style) ? '' : 'class="alternate"'; +echo "\n
$user_data->ID$user_data->user_nickname$user_data->user_firstname $user_data->user_lastname$email$short_url"; if ($user_level >= 3) echo " ID."\" style=\"color:red;font-weight:bold;\">X "; - echo "".$user_data->user_login."