Closed (fixed)
Project:
DruBB
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
26 May 2009 at 06:17 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
See screenshot.

| Comment | File | Size | Author |
|---|---|---|---|
| #7 | nodecomment-472916-1.patch | 5.83 KB | tom_o_t |
| #5 | nodecomment-472916_0.patch | 5.48 KB | tom_o_t |
| #2 | nodecomment-472916.patch | 3.24 KB | tom_o_t |
Comments
Comment #1
tom_o_t commentedAssigning task to self
Comment #2
tom_o_t commentedAttached is a patch with my initial pass at this functionality. Includes a patch to nodecomment.module and nodecomment.view_default.inc
The topic review only shows up when comments are being added on a separate page to the forum (configured at /admin/content/node-type/forum in the comment settings section).
still todo:
move some of the html code that wraps the "topic review" into a theming function
add css to the div containing the topic review to set a height: 200px; and overflow-y: scroll;
I'd love to hear feedback on what I have so far though.
Comment #3
merlinofchaos commentedCode style: Using tabs instead of spaces.
While our default will obviously include this display, we should probably check to see if this display exists. If not, we should fallback (maybe to displaying nothing). If the display does not exist, I think this will throw an error.
Also note that if we're responding directly to the post rather than another topic, I believe we'll be displaying the main forum post twice:
Why is a sort being added to the defaults? (Or maybe that's to the first display) -- either way, the display adds the sort automatically based upon comment settings so that it can work with/without threading. This will override that, I believe.
Comment #4
tom_o_t commentedThanks for the feedback.
I'll tidy up the code and add a setting to turn on the 'topic review'. If enabled, the topic review will remove the duplicate node that's displayed above the comment form (the node that's being replied to).
Comment #5
tom_o_t commentedHere's a second attempt at the patch:
Let me know what you think. If it's OK then I'll commit this add a setting to DruBB so that 'topic review' is enabled by default for the forum content type.
Comment #6
merlinofchaos commentedWhile minor, I don't see much value in a define for a boolean value.
The setting should be node_comment_topic_review for namespace reasons.
Also need to check hook_node_type_info (or whatever that's called) which responds to changes in node type info to make sure our variables are moved or deleted as necessary.
Otherwise, this looks good!
Comment #7
tom_o_t commentedOkay - here it is
Comment #8
merlinofchaos commentedCommitted!