Here is a patch. Let me know what you think!

Files: 
CommentFileSizeAuthor
#16 ctools_comment_panels-1693352-14.patch7.63 KBosopolar
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch ctools_comment_panels-1693352-14.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
#10 comment_panels-1693352-10.patch7.63 KBpfaocle
PASSED: [[SimpleTest]]: [MySQL] 67 pass(es).
[ View ]
#5 0001-Adding-comment-reply-as-ctools-task 1.patch8.17 KBpwaterz
FAILED: [[SimpleTest]]: [MySQL] Fetch test patch: failed to retrieve [0001-Adding-comment-reply-as-ctools-task 1.patch] from [drupal.org].
[ View ]
#3 0001-Adding-comment-reply-as-ctools-task.patch16.98 KBpwaterz
PASSED: [[SimpleTest]]: [MySQL] 67 pass(es).
[ View ]
#2 0001-Adding-comment-reply-as-ctools-task.patch8.21 KBpwaterz
PASSED: [[SimpleTest]]: [MySQL] 67 pass(es).
[ View ]
#1 0001-Adding-comment-reply-as-ctools-task.patch8.1 KBpwaterz
PASSED: [[SimpleTest]]: [MySQL] 67 pass(es).
[ View ]
0001-Adding-comment-reply-as-ctools-task.patch8.1 KBpwaterz
PASSED: [[SimpleTest]]: [MySQL] 67 pass(es).
[ View ]

Comments

StatusFileSize
new8.1 KB
PASSED: [[SimpleTest]]: [MySQL] 67 pass(es).
[ View ]

Found a bug, new patch

StatusFileSize
new8.21 KB
PASSED: [[SimpleTest]]: [MySQL] 67 pass(es).
[ View ]

Fixing another issue :)

StatusFileSize
new16.98 KB
PASSED: [[SimpleTest]]: [MySQL] 67 pass(es).
[ View ]

Made some more changes.

Status:Active» Needs review

Marking as needs review. We've tested it and it works.

StatusFileSize
new8.17 KB
FAILED: [[SimpleTest]]: [MySQL] Fetch test patch: failed to retrieve [0001-Adding-comment-reply-as-ctools-task 1.patch] from [drupal.org].
[ View ]

Cleaned up the patch a bit

Status:Needs review» Needs work

The last submitted patch, 0001-Adding-comment-reply-as-ctools-task 1.patch, failed testing.

Status:Needs work» Needs review

Status:Needs review» Needs work

The last submitted patch, 0001-Adding-comment-reply-as-ctools-task 1.patch, failed testing.

Any conclussion to this? Is the patch committed? Can we use it safely?

StatusFileSize
new7.63 KB
PASSED: [[SimpleTest]]: [MySQL] 67 pass(es).
[ View ]

Thanks for this patch! I've amended comment_reply_form.inc a little to avoid some warnings (checking $comment object) and also refer to $context[0] for the ..._admin_title:

+function ctools_comment_reply_form_content_type_render($subtype, $conf, $panel_args, $context) {
+
+  $comment = ($context[1]->identifier == 'No context') ? NULL : clone($context[1]->data);
+  $block = new stdClass();
+  $block->module = 'comments';
+  if ($comment) $block->delta  = $comment->cid;
+  $block->title = t('Add comment');
+  $node = $context[0]->data;
+
+  module_load_include('inc', 'comment', 'comment.pages');
+  $block->content = comment_reply($node, ($comment ? $comment->cid : NULL));
+
+  return $block;
+}
+
+function ctools_comment_reply_form_content_type_admin_title($subtype, $conf, $context) {
+  return t('"@s" comment form', array('@s' => $context[0]->identifier));
+}

Status:Needs work» Needs review

The patch works. We have been using it for a while now.

Status:Needs review» Reviewed & tested by the community

I can also confirm that this patch works as expected.

I have not gone line by line to ensure the code is right, just confirming functionality.

When the patch is applied--- ensure that there is a newline added to the end of the file. Drupal coding standards ftw.

Status:Reviewed & tested by the community» Fixed

Committed and pushed. Thanks for the patch!

Woo!

Status:Fixed» Needs review
StatusFileSize
new7.63 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch ctools_comment_panels-1693352-14.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

'No context' is translateable. So it should be t('No context'):

<?php
$comment
= ($context[1]->identifier == t('No context')) ? NULL : clone($context[1]->data);
?>

I modified the patch.

Status:Needs review» Needs work

Not sure if I should start a new issue of post here, but I have just updated to the latest Ctools dev to test this out. When I Add Content > Comment > Comment Reply Form, the output is the same as the standard comment form, with the node or comment you are replying to above the form itself. There should be an option to disable the node/comment view, so I can output just the form.

For example, I may want the form itself on the right, and the node/comment view on the left. The current panel is just lumping everything together. The current panel may be better called "Rendered Comment Reply Page" or something of that effect, and a new form-only panel added.

What this does is allow you to convert the comment page to a panel. If you would like more layers of abstractions, I invite you to submit a patch with more ctools content types with it broken apart.

Status:Needs work» Fixed

@osopolar,

You should create a new issue for the above problem. This has already been merged and fixed.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.