Active
Project:
Comment form above comments
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2009 at 14:11 UTC
Updated:
8 Apr 2011 at 00:41 UTC
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
Comment #1
akongz commentedI got same problem here...
How to fix this..?
Thanks
Comment #2
bryancasler commentedI third this issue.
Comment #3
bflora commentedAlso having this problem.
Comment #4
yngens commentedsubscribe
Comment #5
rjbrown99 commentedI 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:
... while the Ajax Comments module (via the comment bonus API) does this in the template:
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 :)
Comment #6
SewFresh commentedI can't seem to get the the comment form to the top no matter what I rearrange >_<
using ajax comments 1.8