Hi,

Forgive my ignorance, but my understanding is that Author Pane is able to be displayed next to each post, like here:
http://www.webmaster-forums.net/webmasters-corner/apaddedcell-article-go...

I'm only able to get the block to display and I'm wondering what I'm doing wrong. I have copied the files into the root of the theme directory. I assume there's a very obvious answer, like I'm missing turning on a check box on a menu somewhere.

Any help would be greatly appreciated!

Thanks,

Tal.
www.riseandruin.com

Comments

michelle’s picture

Status: Active » Postponed (maintainer needs more info)

What are you using to display it? Advanced Forum? Or did you embed the theme function manually?

Michelle

Taliesan’s picture

We are not using Advanced Forum.

I copied the indicated files into the root of our theme directory. Do I need to change something in the files to reference our theme name?

michelle’s picture

If you're not using Advanced Forum, then you need to put the call to the theme function wherever it is you are wanting the Author Pane to appear.

Michelle

Taliesan’s picture

Ok - I'll try that.

Thanks!

Taliesan’s picture

I've dropped the PHP code into the content template for Forum Topic. All I'm getting is 'Anon' at the start of each post. I assume this is because my theme isn't tied into the variables called on by Author Pane directly?

michelle’s picture

It sounds like you aren't passing the theme function a fully loaded user object. Can you paste the code you are using?

Michelle

Taliesan’s picture

I used the code straight out of your development documentation. I tried several variants on the theme() function call, changing the values I thought could have data, but none of them did.

How can we access the fully loaded user object for a user that's replying to the current comment?

michelle’s picture

Ok, that's the problem, then. Only the second two paramaters are optional. You must pass it a user object or it doesn't know what user to make the author pane for.

I'm not 100% sure but I think the variable is $comment->uid. So you'd want:

$account = user_load(array('uid' => $comment->uid));

Michelle

Taliesan’s picture

Worked!

Many thanks. =)

michelle’s picture

Status: Postponed (maintainer needs more info) » Fixed

Great!

Michelle

Status: Fixed » Closed (fixed)

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