Download & Extend

User pictures does not show correctly in comments when logged out

Project:Marinelli
Version:7.x-3.0-beta11
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Lioz
Status:reviewed & tested by the community
Issue tags:Marinelli

Issue Summary

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.

Comments

#1

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

#2

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

AttachmentSize
Not_OK_Logged_Out.png 138.71 KB

#3

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

AttachmentSize
OK_Logged_In.png 143.17 KB

#4

Assigned to:Anonymous» 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!

#5

Lioz

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

#6

Status:needs review» fixed

#7

Status:fixed» closed (fixed)

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

#8

Version:7.x-3.0-beta7» 7.x-3.0-beta11
Status:closed (fixed)» active

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

AttachmentSize
MrnComOverS.JPG 81.76 KB

#9

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.

#10

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

AttachmentSize
comment issue.JPG 28.88 KB

#11

Status:active» needs review

Please try this patch.

AttachmentSize
0001-Issue-1059664-by-szantog-Fixed-User-pictures-does-no.patch 920 bytes

#12

Status:needs review» reviewed & tested by the community

#13

#11
It works well, thank you.
Stephen

#14

It works perfectly

thanks!