Surprised I haven't found an answer for this in a search yet.

Created a user for testing, uploaded a custom picture, added a blog entry, hit preview, and the default picture always comes up, rather than the custom picture. why is this happening? On submit it's OK, and the custom pic shows up correctly, just on preview, no dice.... Same thing for comments and replies to comments, and editing a comment. (forums it works though...any clues?)

Incidently, wondering why if you edit a comment, you only get a 'preview' and no 'submit' button. seems dumb. figured one would be easy enough to add, but where would i add the code for that?

Comments

dmitrit’s picture

I fixed this for comments by adding one row to "comment.module" file. I don't know, is it a right place... but custom picture appears now.

@@ -1604,6 +1604,7 @@
    if ($account) {
       $comment->uid = $account->uid;
       $comment->name = check_plain($account->name);
+	  $comment->picture = $account->picture;
     }
     $comment->timestamp = $edit['timestamp'] ? $edit['timestamp'] : time();
     $output .= theme('comment_view', $comment);
smitty’s picture

I had the same issue. This fix works fine!

Could anybody commit this to head?