Hey there--
Ok, I have a tricky question.
I understand that the posts in forums are actually simply comments, the same as a comment on any other node. Got it. Great. That's a nice trick in the code, and creating an entirely different look is easy via CSS.
Great. Good. Fine.
I also understand how to set the order (most recent first or last) on comments and how to designate whether they're threaded or not.
Again, great, good fine.
BUT, what if I want the comments on forums to order in a different way than the comments on other nodes? Is this possible at all?
Because I really want a reverse order on the forums (most recent comment first), but on other nodes, like blog entries etc, I want chronological order (most recent last).
Any ideas?
Comments
flatcomment.module found in
flatcomment.module found in the repository may help with this.
nope
Not quite sure what the purpose of that module is--non-threaded views arranged chronologically are built into Drupal.
Anyway, that's not what I'm looking for. I installed it and while it would be fine if I wanted some comments to run threaded and others not, that's not my desire.
What I need is a way to have comments in forum posts to run MOST RECENT ----> LEAST RECENT, but comments on, say, blog entries to run LEAST RECENT ----> MOST RECENT.
Since there's only one setting for ordering comments, you can have one set running one way and one running the other. Flatcomment follows the system settings for chronology, so unfortunately it's not the solution.
Any ideas anyone?
Looking for tha same sollution
I was actualy wondering the same thing...
I want comments on page nodes to go most recent on top
and forum nodes comments to go most recent bellow, as in a proper forum....
Looking forward to get help!
Drupal guys: I love what you do by the way!
open your mind open the source
express yourself, share your tools
Not really possible. Drupal
Not really possible. Drupal 6 fixes this I believe.
With 5, it's coded for *all* comment listings while 6, it's per node type.
I was looking for a solution
I was looking for a solution for this but couldn't find any posts. I'm quite new to drupal (just working on my first site) so if there is a better way let me know but this is what I did
The function comment_render() is responsible for rendering the comments on a node, so I made a copy of this which rather than use the site defaults for ordering and mode took them in as a parameter.
Added this code to my custom functions module (just an alteration of comment_render())
I'm using the Advanced Forum module which makes themeing the modules a bit easier. In the forum template we want to use our new function rather than comment_render so at the end of the forum-thread.tpl.php put the following
This will render the comments using our new function then blank the comment variable so that the comments won't be posted again (a tip I read somewhere by Michelle (I think)). Assigning the comment variable to NULL was not working for me so I had to hack the node module to not display comments for forums but I'm not sure why it didn't work. So hopefully it should work for you guys