Closed (won't fix)
Project:
Advanced Forum
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2009 at 08:48 UTC
Updated:
20 Oct 2009 at 14:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
michelleI've been away from the queue for a while. Have you figured this out?
If you don't have a preset, that bit of code to use imagecache doesn't run so I'm at a loss as to what the problem could be. If it's still a problem, let me know and I'll give you some debug code to try.
Michelle
Comment #2
aaron commentedthat happens for me as well.
looks like in two places, you have:
Setting that to
resolves the issue.
patch attached.
Comment #3
michelle@aaron: Thanks for trying but that patch makes no sense. The original theme function call is correct. You don't pass in the imagecache preset name into the template name parameter. The only way that could possibly work is if, by sheer coincidence, you called your imagecache preset the same thing as the template name.
Michelle
Comment #4
aaron commentedLet's trace the code, then.
As the module is currently written:
This calls theme_author_pane(), which calls template_preprocess_author_pane(&$variables), with the third variable of $picture_preset being set to 'advf-author-pane'. In that function, we see:
This sets $preset to 'advf-author-pane'. Then it calls theme_author_pane_user_picture(), again setting the $picture_preset to $preset. There, again, we see
which sets its local $preset to 'advf-author-pane'. Later, it calls
which rightfully sets $picture to our $account->picture (not creating the url yet, as we want to go through imagecache). Then we see
Which now calls, in effect, theme('imagecache', 'advf-author-pane', $account->picture). Which, unless you've by chance created an imagecache preset named 'advf-author-pane', returns a meaningless url.
The patch at #2 still stands, and corrects the problem.
Comment #5
aaron commentedFor clarification, look at:
You mentioned a 'template name parameter', which I don't see. Perhaps that's in another version of the module, but something got changed?
Comment #6
michelleAh, I see the problem. You're using the wrong version of Author Pane. AF 1.x needs AP 1.x. AP 2.x is still in development and is meant to be used with AF 2.x.
Michelle
Comment #7
jahwe2000 commentedah, the 2.x version slipped through in the plugin manager and caused all this... thank you for tracking this down, now it works again :)
Comment #8
michelleAh, yeah, that would do it. It's easy to slip. I accidentally installed views 3 twice on my site. Luckily there's no database changes so I could downgrade. :)
Michelle