--- /home/Prashantd/Day Users/prashantd/Official/projects/drupal/drupal/modules/user_relationships/user_relationships_ui/user_relationships_ui.module	2009-03-24 16:37:55.000000000 +0530
+++ /home/Prashantd/Day Users/prashantd/Official/projects/drupal/drupal/modules/user_relationshipsNew/user_relationships_ui/user_relationships_ui.module	2009-04-30 14:55:23.000000000 +0530
@@ -217,7 +217,10 @@ function _user_relationships_ui_actions_
           continue;
         }
         $list[] = theme('user_relationships_request_relationship_direct_link', $viewed, $relationship);
+	
       }
+
+
     }
     //just one generic link pointing to a page with dropdown
     else {
@@ -227,7 +230,18 @@ function _user_relationships_ui_actions_
 
   return $list;
 }
+function  _users_user_relationships($viewed)
+{
+	
+$result_L = db_query("SELECT name,uid FROM users where (uid in (select requestee_id from user_relationships WHERE (requester_id  = ".$viewed->uid." or requestee_id=".$viewed->uid.") and approved = 1) or uid in (select requester_id from user_relationships WHERE (requester_id  = ".$viewed->uid." or requestee_id=".$viewed->uid.") and approved = 1)) and uid!=".$viewed->uid);
+
+   while ($Urelationship = db_fetch_object($result_L)) {
+	$lists[] = l(
+    t('%name', array('%name' => $Urelationship->name)),"user/{$Urelationship->uid}/",array('html'  => TRUE,'attributes' => array('title' => 'View user profile.'),));
+  }
+	return $lists;
 
+}
 
 /**
  * Helper function to build the settings form for the notification messages
@@ -569,7 +583,14 @@ function user_relationships_ui_user($typ
         '#attributes' => array('class' => 'user_relationships_ui_actions'),
       );
     }
-
+ 	if ($actionss = _users_user_relationships($account)) {
+      $output['actionss'] = array(
+        '#title'      => t('%name\'s Relationship Users',array('%name' => $account->name)),
+        '#type'       => 'user_profile_item',
+        '#value'      => theme('item_list', $actionss),
+        '#attributes' => array('class' => 'user_relationships_ui_actions'),
+      );
+    }
     if (sizeof($output)) {
       $account->content['user_relationships_ui'] = array(
         '#type'   => 'user_profile_category',
@@ -632,7 +653,6 @@ function user_relationships_ui_theme() {
     'user_relationships_request_relationship_direct_link' => array(
       'arguments' => array('relate_to' => NULL, 'relationship_type' => NULL)
     ),
-
     'user_relationships_remove_link' => array(
       'arguments' => array('uid' => NULL, 'rid' => NULL)
     ),
