i am using Facebook-style Statuses (Microblog) and set default user profile image.During Facebook style statuses,user profile picture is displaying according to imagecache preset but if we add comment to any status means, it is not displaying user profile picture with that comment. i checked the image path for the image in FBSS Comments, it shows

"sites/default/files/imagecache/1/sites/all/themes/mycustomtheme/images/user_anonymous.png"

but the path for user profile picture in normal fcebook style status are

"sites/default/files/imagecache/facebook_statuses_profile_picture/sites/all/themes/mycustomtheme/images/user_anonymous.png"

Both paths should be same but it differs in comment section and user profile image is not displaying in comment section.

please tell me how can i clear this issue?

CommentFileSizeAuthor
FBSS comment error.PNG24.2 KBdhakshinait
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

IceCreamYou’s picture

Status: Active » Needs review

Try replacing /submodules/fbss_comments/fbss_comments.module lines 625-648 (the contents of the function _fbss_comments_user_picture()) with this:

  $preset = variable_get('fbss_comments_user_pictures', 0);
  if ($preset) {
    $account->imagecache_preset = $preset;
  }
  $picture = facebook_status_display_user_picture($account);
  return empty($picture) ? '' : '<div class="fbss-comments-picture user-picture">'. $picture .'</div>';
dhakshinait’s picture

Thanks for your solutions.

Initially,i didn't set imagecache preset for fbss comments in its setting page and later i configured with one preset.Then User picture was displayed in fbss comments.

I replaced the code with your above code,nothing happened but i thought you provide a condition that if i set any preset means it will display user picture with that preset otherwise it will display the user picture with actual size.

Anyway i replaced the original content of function _fbss_comments_user_picture() with your code and user picture with preset are displaying in FBSS comments

Once again thanks .

john.money’s picture

+1 on patch #1. Regarding different size settings for comment versus status images, you might delegate that to a module like imagecache_profiles.

IceCreamYou’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.