AJAX Comments seems doesn't work with comment forms in a panel.
I have overriden node using Panels in my site. But, the comment form doesn't affected by AJAX Comments.
I figured out this problem might be come from the comment form id. By default, Drupal gives "comment-form" as comment form id, but comment forms in Panels have "panels-comment-form" id.

I hope this can be solved in your next release. Thanks

Comments

neochief’s picture

Yes, I think you've described a correct reason. I'll see how it can be fixed.

Flying Drupalist’s picture

Subscribe

bsod’s picture

Subscribe

bsod’s picture

Any progress on this issue?

Stan.Ezersky’s picture

Subscribe

FJY’s picture

Subscribe

neochief’s picture

Version: 6.x-1.6 » 6.x-1.x-dev

Today I was digging into this issue. I must say that it's not a "change-id-and-everything-will-work" issue. They implemented a form like separate thing, and it require more work to link existing ahah functionality with this form. Another hard thing is that comments and form is not a part of same context in panel, I need to modify planty of selectors either so comment replies inserts in correct place.

raiyne’s picture

Subscribe

witzel’s picture

I love this module, but i need panels and views. It would be great if these three worked together! When I create a view, the "create comment" and "reply" link don't work with ajax.

ayalon’s picture

same here

thehong’s picture

Component: Miscellaneous » Code
Category: feature » bug

I see this hack in ajax_comments.js: $('#panels-comment-form').attr('id', 'comment-form');
This may break theming styles.

thomasmuirhead’s picture

I stuck this in ajax_comments.js but it didn't work. Am I doing it wrong?

Ajax-comments to work with panels would be amazing. Anything I can do to help? (apart from coding unfortunately)

raiyne’s picture

I can offer no help in development but it would be a godsend if Ajax-comments worked with panels.

CarbonPig’s picture

Subscribe - Would be Great

hasc’s picture

Hi,

I propably found a work around to use it with panels.

The view:
I created a view and within that i created a display of type "Content pane" with "Row style: Node" and the Argument "Node: Nid". I verified that the correct (single) node is displayed using the "Live preview".

The panel:
Then i created a variant for the systems default panel "Node template" and defined a selecion rule matching the desired node type (in my case story). First I played with the arguments input field and manually set a specific node id. When i viewed the node everthing worked fine together with ajax_comments.
Last step was to pass the node id dynamically as argument to the view. I have pathauto module activated. Somehow it worked by just activating the "Send arguments" checkbox within the settings of the pane.

I have to do some final tests but so far everthing seems to work fine.

Hope this helps.

Regards,
hasc

neochief’s picture

Important note to add to previous comment is to use full node display, with it's comment thread and form, not the comments form pane given by Panels module.

vinoth.3v’s picture

Hey

It works Well.

But is any possibilities to display only node comments display (excluding other node elements title, teaser/body) etc.
Is any row style available for the views?

samhassell’s picture

subscribe. I'm going to need that functionality (#17) for an upcoming project, will take a look at the code if nothing else comes up.

Artem Beloglazov’s picture

subscribe

gilcpd’s picture

subscribing

raiyne’s picture

Does anyone know if this is active?

Hiroaki’s picture

I really want to see this working on my panel + Organic group website. ;)

Subscribing

Hiroaki’s picture

here is what I get when trying to enable panel page for node_view (for use with Organic Groups Panel)

Page manager module is unable to enable node/%node because some other module already has overridden with comment_bonus_api_node_page_view.

anil614sagar’s picture

+1 Subscribing. Not working with panels.

llamatrix’s picture

Category: bug » support

+1 Subscribing

roalty’s picture

Old ajax_comments module works fine. But new one with comment_bonus_api don't working with panels node override.

+1 Subscribing. Not working with panels.

mrgoltra’s picture

+subscribing.

Fa-sum’s picture

Subscribing

ionchannels’s picture

Since most people are using panels, you should probably mention this on the main module page with lots of asterisks and bold type. This module also disabled my node-view panel altogether.

neochief’s picture

ionchannels, this module doesn't do anything to panels—neither good, nor bad.

STINGER_LP’s picture

Subscribe

jcmarco’s picture

There is a patch that solves the panel compatibility for almost two months waiting for people to test it and validate it.
#672722: Add compatibility with panels

Please test it

cbassig’s picture

+1

Apfel007’s picture

the patch work with the error (overriding the node/view of comments_bonus).
But all comment form are open now, and no ajax is added.

cancerian7’s picture

any progress on this issue?

Omniweb’s picture

Version: 6.x-1.x-dev » 6.x-1.8

Panels 6.x-3.7 + AJAX Comments 6.x-1.8

Add these lines into ajax_comments.js line 13

$('.pane-node-comment-form').addClass('box');
$('.pane-node-comment-form .pane-content').addClass('content');
$('.pane-node-comment-form .pane-content').removeClass('pane-content');
var action = $('.pane-node-comment-form form').attr('action');
$('.pane-node-comment-form form').attr('action',action.replace('node','comment/reply'));

It works for me.

henrijs.seso’s picture

#36 does not work. why would you replace node with comment/reply in URL? Anyway, these are just cosmetic changes and does not address issue at all.

#32 does not work too.

PI_Ron’s picture

subscribing

davethedruper’s picture

Has anyone seen this post? http://drupal.org/node/423292#comment-3714538 I'm not sure if it's the same issue.

nicktech’s picture

subscribing -- I can also confirm that #32 does not work.

jthomasbailey’s picture

subscribing

gigantortron’s picture

subscribing

vstmusic’s picture

suscribing

obiwankaynobi’s picture

subbing.

rjbrown99’s picture

I'm more than happy to review a patch for inclusion in the module. If any of you subscribers to this can roll a patch to fix it, please attach it here and let's get some folks to test it out. I'm not using panels myself so it isn't a priority for me personally to fix/enhance support for it but again I'm more than happy to apply a tested patch. Just trying to provide some encouragement :)

bryancasler’s picture

subscribe

svilen’s picture

#36 fix works for AJAX Comments 6.x-1.8
Thank you Xandle.

tugis’s picture

Subscribing

jcisio’s picture

Recent version of AJAX_comments requires comment_bonus_api that is not compatible with Panels #672722: Add compatibility with panels (I even can't enable the node_view page in Panels). So no hope here :( but at comment_bonus_api.

arcall’s picture

Any development on this ?

llamatrix’s picture

Subscribing

bsandor’s picture

Subscribe

cfox612’s picture

+1 subscribe

Using panels, views, and wysiwyg (although I've tried with rich text disabled, same issue). It keeps throwing an error:

warning: array_shift() [function.array-shift]: The argument should be an array in /website/sites/all/modules/ajax_comments/ajax_comments.module on line 119.