By kyouens on
Hi,
I'm working on theming my forum and I'm having a hard time getting the user picture to display for the first post in a given thread. I'm using the flatforum module. It seems to me that the difficults is that the first post is designated a "post" and the rest are "comments". The user pictures are displaying fine on the comments. Does anyone know how to make this happen? I have enabled user pictures in posts and comments in the theme settings section.
Comments
Odd. It doesn't seem to
Odd. It doesn't seem to work with any of the default themes either. I do see forum topic posts (i.e. the first post that makes a new topic) showing user images in some other sites, e.g. http://www.mobilepokernow.com/forum. Does anyone have any idea how to do this? It looks odd when all the forum posts except the first have a user avatar.
It's because the first posts
It's because the first posts are treated as nodes and not comments. The nodes and comments are both two separate themes. For mobile poker now I themed the nodes as well as the comments.
Can you provide any details
Can you provide any details on how you were able to make the first posts display the pictures and not have it impact the other non-forum node content?
I have implemented the "Flatforum" module along with enabling user pictures. I see the user pictures in all relevant posts except for the first ones. It's quite frustrating and any tips/advice you can give would be helpful as I'm not a PHP coder and don't quite know what to edit for the first posts to show the pictures.
Thanks!
Instead of editing
Instead of editing node.tpl.php you create another file called node-forum.tpl.php and edit that. Any type of node you have can be themed this way. For example you can theme all your 'story' nodes by doing node-story.tpl.php. Hope that helps.
First post theming
Hi,
the same problem for me, but not just with the avatar, but I want theming the first post differently form the answers. It is confusing for the visitors that the starting post looks like the others...
Any solution for this? I have a nicely edited node-forum.tpl.php but since I'm not a PHP guy, I would like to ask for your kind help.
node-forum.tpl.php
Thanks for pointing me in the right direction. I've been having a bear of a time with the PHP code and can't yet get it to work. What I curently have is below:
The above is a merging of the flatforum code with the friendselectric code. The images display correctly on all forum comments, but they do not display on the first post of a given topic.
Any ideas on what to edit in the above?
Thanks again for the assist.
Fixed
i'm beginning to think that I'm fairly dense. Here was the fix:
Navigate to "Administration/Themes/Global Settings" and enable the checkbox next to the items desired on "Display post information on". I already had the checkboxes for "User pictures in posts" and "User pictures in comments".
I thought I'd post back the solution that worked for me in case anyone else was looking for it.
Thanks again to all who helped.
This seems to do it...
add this to your node.tpl.php
http://drupal.org/node/106192
and then you won't get pictures on all the rest of your pages