Hi!
The user picture is obtained automatically from facebook, and is displayed next to the comments that the users make. I want to set different dimensions for this picture.
According to http://developers.facebook.com/docs/reference/fbml/profile-pic i need to add the width height parameters. Where is this stored?

Thanks,
Mike

Comments

Dave Cohen’s picture

In your theme, you can override theme('fb_user_picture') and/or theme('user_picture'). You can see the default implementation in modules/fb/fb.theme.inc.

msti’s picture

Thanks Dave, it is working!

If others have a similar request, this is what I put in my template.php file:


function garland_fb_user_picture ($fbu, $object, $orig) {
  if (!$fbu)
    return $orig;

  $fbml = "<fb:profile-pic linked=false uid=\"$fbu\" width=\"60\"></fb:profile-pic>";
  $wrap_pre = '<span class=fb_hide>' . $orig . '</span><span class="fb_show" style="display:none;"><div class="picture">';
  $wrap_post = '</div></span>';
  if ($object->uid && user_access('access user profiles')) {
    // Provide link to local account.
    $wrap_pre = $wrap_pre . '<a href="' . url('user/' . $object->uid) . '">';
    $wrap_post = '</a>' . $wrap_post;
  }
  return $wrap_pre . $fbml . $wrap_post;
}