Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
comment.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2006 at 00:40 UTC
Updated:
9 Apr 2007 at 20:23 UTC
Jump to comment: Most recent file
Comments
Comment #1
RobRoy commentedAlso, that cid arg part is bad. How should we pull that?
Comment #2
RobRoy commentedCool, thanks to hunmonk I got a better direction on this. It looks like a biggie, but it's really not. I just removed the 2nd arg from comment_render and un-indented a huge chunk of code because AFAIK it isn't being used anymore.
This patch pretty much just moves comments to use the new content array and cleans up some super outdated comment/node code that is related to that, therefore it's in the same patch. This is important for modifying where comments are rendered.
Trivial demo, just set the weight to -100 in nodeapi 'alter' to show comments on top of a node now! Before, you'd have had to modify core or do some other nastiness to do so.
Pretty please review my patch! :)
Comment #3
RobRoy commentedNow it has UNIX line endings.
Comment #4
webchickI'd love to see this in core, but unfortunately it's an API change which we can't have this late in the release cycle. :( Marking postponed.
Comment #5
RobRoy commentedBless your heart. I'll make sure to get this in for...ugh, 6.0?
Comment #6
RobRoy commentedUpdating status. This patch is old, so don't hold it against me!
Comment #7
neclimdulSimplified patch. This patch retains the same comment_render function however that may need to happen.
Problems caused by this patch that need to be addressed:
A walk through of the rendering process:
Since the body is rendered in node_build_content() before the theme function is called comments are always added before the links.
Assuming this patch where to be commited(which I believe it should) either links should be handled differently of the theme function should be changed to handle this case. Currently I'd lean towards handling the links different but not heavily and would like some feedback.
Comment #8
RobRoy commentedEfforts should be focused on Eaton's new node rendering patch at http://drupal.org/node/134478.
Comment #9
RobRoy commentedEfforts should be focused on Eaton's new node rendering patch at http://drupal.org/node/134478.