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

sansui’s picture

I added those parameters as null and the errors seem to go away. Is that the best way to go about it?

michelle’s picture

Title: Missing argument 2, Missing argument 3, when calling theme('author_pane', $current_user) » Default optional theme paramaters to null
Category: support » bug

For 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

michelle’s picture

Status: Active » Fixed

Committed.

Michelle

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.