I'm using author pane without adv forum, much to my sadness (since I have to use the functionality of OG Forum, and it doesn't play nice with advforum), and I've got a custom forum node I'm working on. In the author area I'm using this code:
$current_user = user_load(array('uid' => $userid));
print theme('author_pane', $current_user)
It seems to display my author pane just fine... pulls up the username, picture, groups, status etc and displays it the way I expected, but a bunch of errors pop up
warning: Missing argument 2 for theme_author_pane() in mylocalpath\modules\author_pane\author_pane.module on line 107.
warning: Missing argument 3 for theme_author_pane() in mylocalpath\modules\author_pane\author_pane.module on line 107.
I checked out the readme, and I assume this refers to the optional image_path and template_file parameters. Am I doing something wrong?
Comments
Comment #1
sansui commentedI added those parameters as null and the errors seem to go away. Is that the best way to go about it?
Comment #2
michelleFor the moment, that's fine. But that's actually a bug. Those paramaters are meant to be optional but I forgot PHP complains if they dont' have a default value set. I'll fix it before the next release. Thanks for catching it.
Michelle
Comment #3
michelleCommitted.
Michelle