? 893868-allow-user-pages-3.patch
Index: modules/user/user.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user.module,v
retrieving revision 1.1228
diff -u -p -r1.1228 user.module
--- modules/user/user.module	20 Dec 2010 16:27:35 -0000	1.1228
+++ modules/user/user.module	23 Dec 2010 05:15:50 -0000
@@ -1373,8 +1373,8 @@ function user_block_view($delta = '') {
 
   switch ($delta) {
     case 'login':
-      // For usability's sake, avoid showing two login forms on one page.
-      if (!$user->uid && !(arg(0) == 'user' && !is_numeric(arg(1)))) {
+      // For usability's sake, avoid showing login form for logged-in users.
+      if (!$user->uid) {
 
         $block['subject'] = t('User login');
         $block['content'] = drupal_get_form('user_login_block');
@@ -1418,6 +1418,16 @@ function user_block_view($delta = '') {
 }
 
 /**
+ * Implementation of hook_form_alter().
+ */
+function user_form_block_admin_configure_alter(&$form, &$form_state) {
+  // UI enhancement. See: http://drupal.org/node/893868#comment-3788158
+  if (arg(4) == 'user' && arg(5) == 0) {
+    $form['page_vis_settings']['visibility']['#title'] = t('Show block on specific pages. Please note that for usability reasons this block will not render for logged-in users');
+  }
+}
+
+/**
  * Process variables for user-picture.tpl.php.
  *
  * The $variables array contains the following arguments:
