When using the imagecache profile module (http://drupal.org/project/imagecache_profiles) usually the avatars get displayed the way the admin configured the display size in imagecache. This works great on drupal 6 when using the default garland theme.

But on newswire the avatars on comments still show up with the big profile image instead the small image size preconfigured for comments.

How would I need to change the theme so that it picks up the corresponding imagecache sizes?

Comments

Jeff Burnz’s picture

Apologies but I have no ability to test a solution, but for a test remove the "function phptemplate_user_picture" from template.php (its the last function in template.php) as this may be overriding what imagecache_profile is tying to do (I have never used the module so I am guessing a tad here...).

portait’s picture

Thank you, that did work. :)

agssan’s picture

hi portait,

I am also using imagecache profile module with this theme... I was wondering if your member profile page (my account), user picture is right aligned? mine is and I dont know why.... any idea jmburnz?

Thanks!
Agssan

venusrising’s picture

I did try to remove the function "function phptemplate_user_picture" when I did ( I am also using Devel Themer Module at the moment) I get the error:

Fatal error: Uncaught exception 'ReflectionException' with message 'Function phptemplate_user_picture() does not exist' in...

I re-added the function and the errors goes away. The corresponding watchdog log says:

call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'phptemplate_user_picture' was given in /home/xxxxx/html/sites/all/modules/devel/devel_themer.module on line 384.

I will see what else I can find.

venusrising’s picture

Okay what you can do to fix the above issues is clear the cache tables. You can do this one of two way if you have the issue.

1. Keep an admin page open if using the admin_theme So you can still see the clear cache link and use that when you get the temporary WSOD OR
2. Go to Phymyadmin and clear DO NOT DROP the cache tables.

The theme is now using the Image_Cache Presets as expected.

xsean’s picture

may i know what is this warning? after i login and go to my account page, it show the warning below:

warning: Parameter 1 to phptemplate_user_picture() expected to be a reference, value given in C:\xampplite\test\includes\theme.inc on line 617.

venusrising’s picture

Did anyone ever get this working with Newswire?

Jeff Burnz’s picture

Just remove the "function phptemplate_user_picture" from template.php and it will work, otherwise upgrade to the latest version where this is fixed.

You'll probably get a warning but then just clear the theme registry, if you have Admin Menu installed this is easy.

venusrising’s picture

Yes it works by deleting as I did before but was wondering if it was fixed in the theme so IC works without removing variable. I saw the new release after this post.
Thanks

venusrising’s picture

For those of us working with the older theme, is there a way to fix this like in the new version?

venusrising’s picture

Status: Active » Closed (works as designed)