Active
Project:
Node and Comments Form Settings
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Oct 2010 at 11:08 UTC
Updated:
7 May 2011 at 07:28 UTC
hi,
i am using AJAX Comments 6.x-1.x-dev & Node and Comments Form Settings 6.x-1.x-dev
please see screenshots..
at '0 ajax comments.png' is my ajax settings
at '1 comment settings.png' is my comment settings
at '2 node form settings.png' is my node form settings
now when open the page & create a new comment, all works well (see '3 comment.png')
but as i edit my previous comment it shows me (see '4 edit.png')
now when i create new comment again it still shows, comment author name which is disabled in setting & 'preview' button which is also disabled.(see '5 new comment.png').
& if i refresh the page it works well, but then all this cycle repeat again
so what is the problem??
please help me...
| Comment | File | Size | Author |
|---|---|---|---|
| 5 new comment.png | 12.7 KB | imDhaval | |
| 4 edit.png | 13.69 KB | imDhaval | |
| 3 comment.png | 10.37 KB | imDhaval | |
| 2 node form settings.png | 24.01 KB | imDhaval | |
| 1 comment settings.png | 47.62 KB | imDhaval |
Comments
Comment #1
imDhaval commentedanyone???
Comment #2
cuteapoot commentedI had a similar problem on my site where I could post once using AJAX and then it would throw an error every time. I found this bit in modules/nodeformsettings/commentformsettings/commentformsettings.module:
So I figured that AJAX comments seem to handle this function just fine. I looked in ajax_settings.module and found some code that seemed to do the same thing in a better way. So I ended up switching this code (commentformsettings.module starting at line 103):
With this code from ajax_settings.module (starting at line 113):
It seemed to fix everything, and I was still able to add comments without AJAX Comments without breaking Comment Form Settings at all.
I would make a patch, but I'm pretty much a novice when it comes to Drupal. However, I think this code might be helpful for future versions of the module itself. Of course, the ajax code in there would have to be conditional or something, but it seems pretty close to what you would need.
Comment #3
lelizondo commentedI never used ajax comments before, but I'll give it a try to your method.
Comment #4
lelizondo commented