By WildCatzPhreak on
I'm interested in sprucing up my forums. The first thing I want to do is add avatars. I downloaded avatar selection module and was able to successfully upload an avatar and display it in my profile, but the forums don't display the avatar. Did I do something wrong or did I download the wrong avatar module?
Comments
There are two settings
Display picture in post (= the first post in a thread) and Display picture in comments (=every other post in the thread). Are these both turned on?
Gareth
Another way
If you only want avatars in forums and not on all the other nodes, you can call the theme function directly in node-forum.tpl.php rather than using the $picture variable. That's what I did in advanced forum.
Michelle
--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.
Sorry to hijack the thread...
...but I'm using advanced forum and still have the control under these two Drupal settings. What I'd like to be able to do is override just the "use picture in posts" setting to turn this on - I want the picture to appear in the first post of the page on the forum, but not in articles, books, or other content types. Can you please suggest the syntax to do this?
Many Thanks,
Gareth
...
If you only want it on forum top posts, uncheck both of those in the theme config and then edit the advf-forum-post.tpl.php to only show on the top post and not the comments.
Michelle
--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.
Not exactly..
"Normal" articles (everything non-forum): No picture for author, but author pictures in comments.
"forum" posts - pictures in everything.
I'm happy for the site settings as they stand, but just need to override the picture display in the top post. Any chance of a code snippet for this?
Many thanks,
Gareth
I don't understand
By default, advforum puts avatars in all posts regardless of your theme settings. So just check pictures in comments in your theme and you have exactly what you stated there. Am I missing something?
Michelle
--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.
I'm not getting the picture in the first post in a thread
And I can't get it here unless I get pictures in every other post on the site; which is what I don't want!!!
I'm fully willing to believe I've ticked the worng box or pressed the wrong button; but I've tried every combination I can find and this is where I'm at!
Thanks,
Gareth
advanced forum
Did you check out the advanced forum module from Michelle?
Yes,
I'm using it heavily, it's working well, and I'mprobably #1 on Michelle's "avoid" list at the moment.... However, this function does not seem to be available by default which is why I'm after a snippet to override it.
solution
here is snipplet to show avatars on forums and not in other node pages:
1. open file themes/engines/phptemplate/phptemplate.engine
2. found string
3. replace with
enjoy!