Closed (works as designed)
Project:
Newswire
Version:
6.x-3.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2009 at 09:07 UTC
Updated:
14 Oct 2010 at 05:20 UTC
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
Comment #1
Jeff Burnz commentedApologies 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...).
Comment #2
portait commentedThank you, that did work. :)
Comment #3
agssan commentedhi 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
Comment #4
venusrising commentedI 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.
Comment #5
venusrising commentedOkay 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.
Comment #6
xsean commentedmay 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.
Comment #7
venusrising commentedDid anyone ever get this working with Newswire?
Comment #8
Jeff Burnz commentedJust 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.
Comment #9
venusrising commentedYes 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
Comment #10
venusrising commentedFor those of us working with the older theme, is there a way to fix this like in the new version?
Comment #11
venusrising commented