For me this module - thanks for all the work, i was waiting for this comment option for a while - does not work with ajax comments ( i use the zen theme).
I get this message:
warning: array_shift() [function.array-shift]: The argument should be an array in ***/sites/all/modules/ajax_comments/ajax_comments.module on line 120.

Comments

akongz’s picture

I got same problem here...

How to fix this..?

Thanks

bryancasler’s picture

I third this issue.

bflora’s picture

Also having this problem.

yngens’s picture

subscribe

rjbrown99’s picture

I do not have the stated array_shift problems, but if you want this to work with ajax_comments you need to look at your comment-wrapper.tpl.php file. At least in my case, the theme default comment-wrapper.tpl.php did this:

<?php print $content; ?>

... while the Ajax Comments module (via the comment bonus API) does this in the template:

  <?php print $comments; ?>
  <?php print $pager; ?>
  <?php if ($comment_form): ?>
    <h2 class="title"><?php print t('Post new comment'); ?></h2>
    <div>
      <?php print $comment_form; ?>
    </div>
  <?php endif; ?>

In the case of this module, there is a new variable $form created that has the output of the comment_box_form() call. You will need to print $form somewhere. Or to just save yourself some time just move the print $comment_form stuff above the print $comments :)

SewFresh’s picture

I can't seem to get the the comment form to the top no matter what I rearrange >_<
using ajax comments 1.8