Closed (fixed)
Project:
Author Pane
Version:
5.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2009 at 23:09 UTC
Updated:
14 Jul 2009 at 03:10 UTC
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
Comment #1
michelleWhat are you using to display it? Advanced Forum? Or did you embed the theme function manually?
Michelle
Comment #2
Taliesan commentedWe 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?
Comment #3
michelleIf 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
Comment #4
Taliesan commentedOk - I'll try that.
Thanks!
Comment #5
Taliesan commentedI'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?
Comment #6
michelleIt sounds like you aren't passing the theme function a fully loaded user object. Can you paste the code you are using?
Michelle
Comment #7
Taliesan commentedI 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?
Comment #8
michelleOk, 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
Comment #9
Taliesan commentedWorked!
Many thanks. =)
Comment #10
michelleGreat!
Michelle