Imagecache profiles appears to generate the various sizes fine for use in profiles and views, but they don't seem to be showing up in nodes and comments (even though the settings in admin/user/settings are correct)

Do I need to update the standard picture code or template.php somehow?

    print $picture;
  } ?>




ALT83’s picture

Is anyone else experiencing this and found the solution?

ALT83’s picture

Kind of desperate for a solution, any quick help would be much appreciated thanks.


edster.’s picture

I've just had the same problem and after many hours of hunting around i found a solution by replacing

<?php print $picture ?>


<?php print theme('user_picture', $comment); ?>

in the themes comment.tlp.php and

<?php print theme('user_picture', $node); ?>

in the themes node.tpl.php files, it worked for me so i hope this helps.

ALT83’s picture


Your answer came in just at the last minute for what I needed - Thank you so much - Worked perfectly!



Mac Clemmens’s picture

Worked like a charm. Thanks! Perhaps this should be added to the readme.txt...

manop’s picture

Thank you for this. I found a similar problem when I work with Author Pane; however, this is really my good start.

andypost’s picture

Status: Active » Fixed

Check theme settings admin/build/themes/settings

There's setting for pictures in posts and comments

Status: Fixed » Closed (fixed)

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

Rob T’s picture

Thanks for this. It's key.

aiman1988’s picture

i have the same problem , i did exactly what you said in the above posts , but my problem didn't resolve

you can check this link , pictures are not displaying. can you help me ? with imagecache settings or whatever i have to do to resolve this problem.. Please help me out

arcall’s picture

Thanks edster, it's working fine for me too !

jenb919’s picture

aiman1988-I had this same problem with only one theme enabled. I enabled garland and then configured my theme checking "user pictures in post" and "user pictures in comments". Maybe that will work for you too.

aiman1988’s picture

Status: Closed (fixed) » Active

thank you for your reply but brother, i did the same as you told me , but still user prof pics are not displaying. can you give me some another suggestion?

sbefort’s picture

Component: Code » Documentation

This really needs to be added to the readme.txt. As of now, the readme.txt only says the following:

- select the ImageCache preset to set the user picture size on a user's profile page
- select the ImageCache preset to set the user picture size within comments
- select the ImageCache preset to set the default user picture size throughout the site

It's assumed that $picture will print the presets, but that is not the case. I think it should be made clear in the documentation that we need to use the theme function.

<?php print theme('user_picture', $comment); ?>
<?php print theme('user_picture', $node); ?>
andypost’s picture

Version: 6.x-1.0 » 6.x-1.x-dev

Please provide a text to be added to readme.txt better in the patch format. Glad to add it

webkenny’s picture

Why would we need to add that function when that is the same function called in the template_preprocess_[node|comment] for Drupal which gets passed to $picture? Am I missing something? (I posted here because this module simply doesn't work for me but I am investigating)

webkenny’s picture

Here's why it wasn't working for me. Maybe someone will find this useful:

John Carbone’s picture

@Kenny: Your link was a lifesaver. Thanks from the CP team. ;)

BrightBold’s picture

Thanks Kenny — I never would have figured that out.