Hi,
I've installed version 7.x-3.0-beta7 of the Marinelli theme on my test site. So, for the comments in the articles it is showing the user pictures of the people who's commenting on the article. It's working fine when logged in, but is not displaying the whole userpicture when logged out. (see attached pictures)

I've only tested with the Safari browser, so far.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

superman2’s picture

Sorry, I could not upload the pictures which would show the problem

superman2’s picture

FileSize
138.71 KB

Attached now is the picture which shows how it looks when logged out.

superman2’s picture

FileSize
143.17 KB

And this is how it looks like when logged in (see attached picture).

Lioz’s picture

Assigned: Unassigned » Lioz
Status: Active » Needs review

hi superman2
try to replace the comment preprocess function in template.php with this code

function marinelli_preprocess_comment(&$vars) {
  $vars['classes_array'][] = $vars['zebra'];

  $user_image = array('width' => 0);
  if (isset($vars['comment']->picture->fid)) {
    if ($picture = file_load($vars['comment']->picture->fid)) {
      $user_image = image_get_info(image_style_path(variable_get('user_picture_style'), $picture->uri));
    }
  }
  $vars['image_width'] = $user_image['width'] + 25;
}

let me know if this solves the problem!

Paulbg’s picture

Lioz

Yes your code fix does work on IE8 and Firefox 4.0 thanks!

Lioz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

nwleader’s picture

Version: 7.x-3.0-beta7 » 7.x-3.0-beta11
Status: Closed (fixed) » Active
FileSize
81.76 KB

I reopen this issue.
Problem only on non logged user: comment over user avatar.
Marinelli 7.x-3.0-beta11
Grazie e complimenti per il lavoro.

ps. tested in IE 9 e FF 5

blogook’s picture

I have this exact same problem, however only with the user pictures when they did not uploaded their picture. So the default picture is causing this problem. Also when anonymous people comment, that default picture is also not aligned correctly. Same problem as described previously.

rathin2j’s picture

FileSize
28.88 KB

hi,
i m also having the same issue..!! the comment area is overlapping when not logged in .but in my case different from "blogook" i face issue even with user pic uploaded means in all case i have issue :( not only default image every single image,i tried PATCH given in post http://drupal.org/node/1119818#comment-form but that didnt worked.. below is the screenshot

szantog’s picture

Status: Active » Needs review
FileSize
920 bytes

Please try this patch.

szt’s picture

Status: Needs review » Reviewed & tested by the community
pityu73’s picture

#11
It works well, thank you.
Stephen

valery86’s picture

It works perfectly

thanks!