Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
mburak CreditAttribution: mburak commentedOne 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).
Comment #2
rjbrown99 CreditAttribution: rjbrown99 commentedIs 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.
Comment #3
ivrh CreditAttribution: ivrh commentedThis 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>"
Comment #4
Gabriel R. CreditAttribution: Gabriel R. commentedAre Ajax Comments using their own form instead of altering the Drupal comment form?
Comment #5
digibrill CreditAttribution: digibrill commentedMy comments appear, look like they posted, go to moderation, and disappear on page refresh. But still not getting moderation message.
Comment #6
muschpusch CreditAttribution: muschpusch commentedThis should be fixed in the current dev for drupal 7
Comment #8
gooddev CreditAttribution: gooddev commentedI still have the same issue. What is the solution for this problem?
Comment #9
burshyn CreditAttribution: burshyn commenteddev.tim, I had a problem when I redefined the theme template and added an extra div for
$content['comments'].