Pl. excuse me is this has got to with my installation and is not a bug...

Here is what I am experiencing. User's picture is not resized. Looking through the code and putting some debug statement, i found that there is a custom code (function theme_advanced_forum_user_picture()), which is supposed to resize the picture.

However that picture resize function, which is supposed be called by the function advanced_forum_preprocess_author_paneis never called.

The condition if ($variables['template_suggestion'] == 'advf-author-pane') { always returns true. I tried to print the array $variable and found that it doesn't have any setting for $variables['template_suggestion'].

I tried commenting that line which tests for $variables['template_suggestion'] and everything works fine. But looking at the comment above this piece of code i realize the validation is supposed to ensure that only this instance of picture display gets impacted. If that is the case, I am not sure what is missing in my case that the variable $variables['template_suggestion'] is not set.

Comments

michelle’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

I really don't know how that's possible unless you changed the code that calls the theme function. Please confirm you have this exact line twice (once for nodes, once for comments) in your copy of advanced_forum.module:

$variables['author_pane'] = theme('author_pane', $variables['account'], advanced_forum_path_to_images(), 'advf-author-pane');

Michelle

michelle’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further info provided.

Michelle

zigma’s picture

sorry about not getting back earlier.

Those two lines are present for both node and comment.

I can see $variable[template_file] set to "advf-author-pane". But $variables['template_suggestion'] is not set at all.