Project:Comment form above comments
Version:6.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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

#1

I got same problem here...

How to fix this..?

Thanks

#2

I third this issue.

#3

Also having this problem.

#4

subscribe

#5

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 :)

#6

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

nobody click here