<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I would like to recreate the Buddylist block I get 
on user pages (user/1, user/2, etc) which looks, after a bit of localisation 
changing, like this:</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>---------------------------------------</FONT></DIV></DIV>
<DIV><FONT face=Arial><STRONG>Contact List</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
<STRONG>Contacts:</STRONG></FONT></DIV>
<UL>
  <LI><FONT face=Arial size=2>Phil</FONT></LI>
  <LI><FONT face=Arial size=2>John</FONT></LI>
  <LI><FONT face=Arial size=2>Mike</FONT></LI></UL>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; <STRONG>Contact 
Of:</STRONG></FONT></DIV>
<UL>
  <LI><FONT face=Arial size=2>John</FONT></LI>
  <LI><FONT face=Arial size=2>Mike</FONT></LI>
  <LI><FONT face=Arial size=2>Caroline</FONT></LI></UL>
<DIV><FONT face=Arial size=2>(if I go to John's page) <A 
href="http://www">Remove John from your Contact List.</A></FONT></DIV>
<DIV><FONT face=Arial size=2>(if I go to Cherie's page) <A href="http://www">Add 
Cherie to your Contact List.</A></FONT></DIV>
<DIV><FONT face=Arial 
size=2>---------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I checked out <A 
href="http://drupal.org/node/35738">http://drupal.org/node/35738</A>&nbsp;and <A 
href="http://drupal.org/node/36501">http://drupal.org/node/36501</A>&nbsp;but 
the code seems to be giving me info based on MY buddylist, whichever page I'm 
viewing. (I think this is because on my customised user_profile.tpl.php file, I 
call global $user earlier in the code.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I did get the following snippet from the drupal 
forum to get the user page user, not the viewing user:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;?php<BR>$temp_user = array('uid' =&gt; 
arg(1));<BR>$user_page_user = user_load($temp_user );<BR>?&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>So if I put:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;p&gt;My name is &lt;?php print $user-&gt;name 
?&gt;&lt;/p&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;p&gt;My name is &lt;?php print 
$user_page_user-&gt;name ?&gt;&lt;/p&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I get first my name (viewing user) printed and then 
the name of the person whose page I'm viewing (viewed user). Believe me, I've 
been tearing my hair out about these "viewing user", "viewed user" differences 
for 3 days!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>But I don't seem to be able to incorporate 
$user_page_user into the buddylist snippet. It always shows me MY buddies, 
whichever page I'm on. Could someone point me in the right 
direction?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>...and stop a grown man crying. 
:-(</FONT></DIV></BODY></HTML>