For anonymous users, I'm expecting to get the "Your comment has been queued for moderation by site administrators and will be published after approval" but I'm not seeing it. It's just refreshing the page and that's it. Is this the expected behaviour? I need to show a message to the user.

Comments

mburak’s picture

One thing to add is that when it's validating it works fine showing the validation messages without any refresh but on submission it seems to be refreshing and it's adding a weird number to the page (like ?497272447=1 after the original url).

rjbrown99’s picture

Is this still an issue? Have you fixed this or moved on to something else? I'd like to close out the ticket if this isn't an active request.

ivrh’s picture

This is still an issue. I can track response via FireBug console, but message doesn't display:
{"status":true,"data":"\u003cdiv class=\"messages status\"\u003e\nYour comment has been queued for moderation by site administrators and will be published after approval.\u003c\/div\u003e\n\u003cdiv class=\"comment-new-success\"\u003e\u003c\/div\u003e\u003cscript type=\"text\/javascript\"\u003ejQuery.extend(Drupal.settings, {\"basePath\":\"\\\/\",\"ckeditor\":{\"peregrine_image\":true},\"pg\":{\"module_path\":\"\\\/sites\\\/all\\\/modules\\\/peregrine\\\/pg\"},\"ahah\":{\"ajax-comments-submit\":{\"url\":\"\\\/ajax_comments\\\/js\",\"event\":\"click\",\"keypress\":null,\"wrapper\":\"comment-form-content\",\"selector\":\"#ajax-comments-submit\",\"effect\":\"ajaxCommentsSubmit\",\"method\":\"before\",\"progress\":{\"type\":\"bar\",\"message\":\"Please wait...\"},\"button\":{\"op\":\"Post Comment\"}},\"ajax-comments-preview\":{\"url\":\"\\\/ajax_comments\\\/js\",\"event\":\"click\",\"keypress\":null,\"wrapper\":\"comment-preview\",\"selector\":\"#ajax-comments-preview\",\"effect\":\"ajaxCommentsPreview\",\"method\":\"append\",\"progress\":{\"type\":\"1bar\",\"message\":\"Please wait...\"},\"button\":{\"op\":\"Preview Comment\"}}}});\u003c\/script\u003e"}

This is JSON response:
"<div class="messages status"> Your comment has been queued for moderation by site administrators and will be published after approval.</div> <div class="comment-new-success"></div><script type="text/javascript">jQuery.extend(Drupal.settings, {"basePath":"\/","ckeditor":{"peregrine_image":true},"pg":{"module_path":"\/sites\/all\/modules\/peregrine\/pg"},"ahah":{"ajax-comments-submit":{"url":"\/ajax_comments\/js","event":"click","keypress":null,"wrapper":"comment-form-content","selector":"#ajax-comments-submit","effect":"ajaxCommentsSubmit","method":"before","progress":{"type":"bar","message":"Please wait..."},"button":{"op":"Post Comment"}},"ajax-comments-preview":{"url":"\/ajax_comments\/js","event":"click","keypress":null,"wrapper":"comment-preview","selector":"#ajax-comments-preview","effect":"ajaxCommentsPreview","method":"append","progress":{"type":"1bar","message":"Please wait..."},"button":{"op":"Preview Comment"}}}});</script>"

Gabriel R.’s picture

Are Ajax Comments using their own form instead of altering the Drupal comment form?

digibrill’s picture

Version: 6.x-1.x-dev » 7.x-1.0-alpha1

My comments appear, look like they posted, go to moderation, and disappear on page refresh. But still not getting moderation message.

muschpusch’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
Status: Active » Fixed

This should be fixed in the current dev for drupal 7

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gooddev’s picture

Issue summary: View changes

I still have the same issue. What is the solution for this problem?

burshyn’s picture

dev.tim, I had a problem when I redefined the theme template and added an extra div for $content['comments'].