Starting from the code in a previous question, I am now trying to post a user picture in a rule that displays a relationship between two users (User Relationships module.)
It is the requestees's picture I am trying to display (the $requestee variable is allowed)
Here is the code I have so far:
$imgpath = file_load(($requestee->picture[und]['uid']))->uri; $image = theme('image_style', array('path' => $imgpath, 'style_name' => 'thumbnail', 'attributes' => array('class' => array('RequesteesPicture')))); $link = l($image, "user/$requestee->uid", array('html' => TRUE)); print $link;
I see the placeholder for the pic. The link to the requestee's picture is correct and the image style is also correct. But the pic does not show.
What do I need to do to make the pic show up?