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:
---------------------------------------
Contact List
Contacts:
Contact
Of:
---------------------------------------
I did get the following snippet from the drupal
forum to get the user page user, not the viewing user:
<?php
$temp_user = array('uid' =>
arg(1));
$user_page_user = user_load($temp_user );
?>
So if I put:
<p>My name is <?php print $user->name
?></p>
<p>My name is <?php print
$user_page_user->name ?></p>
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!
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?
...and stop a grown man crying.
:-(