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?

<?php
   
print $picture;
  }
?>

Thanks,

Alex

Comments

Is anyone else experiencing this and found the solution?

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

Alex

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

<?php print $picture ?>

with

<?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.

YOU ARE AN ABSOLUTE LIFE-SAVER!

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

:)

Alex

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

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

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.

Thanks for this. It's key.

i have the same problem , i did exactly what you said in the above posts , but my problem didn't resolve
http://promotepeshawar.org/node/81

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

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

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.

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?

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); ?>

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

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)

Here's why it wasn't working for me. Maybe someone will find this useful: http://drupal.org/node/1070102

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

Thanks Kenny — I never would have figured that out.